<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APseudo_image%2Fdoc</id>
	<title>Module:Pseudo image/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APseudo_image%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Pseudo_image/doc&amp;action=history"/>
	<updated>2026-04-10T21:19:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Pseudo_image/doc&amp;diff=144543&amp;oldid=prev</id>
		<title>imported&gt;Wnt: Let&#039;s call it an alpha, since I&#039;m actually trying it out at Abortion</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Pseudo_image/doc&amp;diff=144543&amp;oldid=prev"/>
		<updated>2013-05-09T05:53:19Z</updated>

		<summary type="html">&lt;p&gt;Let&amp;#039;s call it an alpha, since I&amp;#039;m actually trying it out at &lt;a href=&quot;/index.php?title=Abortion&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Abortion (page does not exist)&quot;&gt;Abortion&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{module rating|alpha}}&lt;br /&gt;
This module is supposed to take all the normal File:/Image: parameters from the call to a parent template &amp;#039;&amp;#039;(though it will might use its own args in preference for debug purposes)&amp;#039;&amp;#039; and return them back one by one for use by a template.  Most important, it figures out by a process of elimination which of these is the caption.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This is designed to be used with a template like [[:Template:Pseudo image]] which receives the parameters that &amp;#039;&amp;#039;used&amp;#039;&amp;#039; to go to a File: or Image: thumbnail.  For example,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;[[File:Abortionmethods.png|thumb|right|220px|Example: chart of abortion times]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is replaced in the template by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{Pseudo image|thumb|right|220px|link=:File:Abortionmethods.png|Example: chart of abortion times|image={{#invoke:Block diagram|main|&amp;#039;&amp;#039;a bunch of stuff to draw the diagram as divs&amp;#039;&amp;#039;}}}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The current division of labor in the process is that the [[Template:Pseudo image]] accepts this call, and outputs the graphics, while this module is limited to sorting out the parameters.  Therefore, calls to the module itself accept an extra parameter &amp;#039;&amp;#039;query=(field name)&amp;#039;&amp;#039; and return the desired field for use within the template.  The field names presently supported are:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;thumb&amp;#039;&amp;#039; - returns the value &amp;quot;yes&amp;quot; if there a |thumb| or |thumbnail| is given.&lt;br /&gt;
* &amp;#039;&amp;#039;frame&amp;#039;&amp;#039; - returns &amp;quot;yes&amp;quot; if there is a |frame|&lt;br /&gt;
* &amp;#039;&amp;#039;px&amp;#039;&amp;#039; - returns the horizontal pixel size ### if there is a |###px| or |###x##px|&lt;br /&gt;
* &amp;#039;&amp;#039;xpx&amp;#039;&amp;#039; - returns the vertical pixel size ### if there is a |##x###px| or |x###px|&lt;br /&gt;
* &amp;#039;&amp;#039;float&amp;#039;&amp;#039; - returns &amp;#039;&amp;#039;left&amp;#039;&amp;#039;, &amp;#039;&amp;#039;right&amp;#039;&amp;#039;, &amp;#039;&amp;#039;center&amp;#039;&amp;#039;, &amp;#039;&amp;#039;none&amp;#039;&amp;#039; if any one of these is present&lt;br /&gt;
* &amp;#039;&amp;#039;vertical&amp;#039;&amp;#039; - returns &amp;#039;&amp;#039;baseline&amp;#039;&amp;#039;,&amp;#039;&amp;#039;middle&amp;#039;&amp;#039;,&amp;#039;&amp;#039;sub&amp;#039;&amp;#039;,&amp;#039;&amp;#039;super&amp;#039;&amp;#039;,&amp;#039;&amp;#039;text-top&amp;#039;&amp;#039;,&amp;#039;&amp;#039;text-bottom&amp;#039;&amp;#039;,&amp;#039;&amp;#039;top&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;bottom&amp;#039;&amp;#039; if any of these is present&lt;br /&gt;
* &amp;#039;&amp;#039;caption&amp;#039;&amp;#039; - returns the first field that isn&amp;#039;t any one of the preceding.  Note: as a convenience, it also ignores blank fields and picks a later nonblank field instead, though that shouldn&amp;#039;t happen anyway.&lt;br /&gt;
* If two different values are given for the same field (&amp;#039;&amp;#039;Pseudo image|thumb|left|right|center|&amp;#039;&amp;#039;, whichever comes later as they&amp;#039;re listed above should dominate, but let&amp;#039;s call it &amp;quot;undefined&amp;quot;, i.e. don&amp;#039;t do this. ;)&lt;br /&gt;
* Note that this module ignores fields like alt=, link= etc. for determining the caption because they are not unlabeled fields, but should actually return the values if queried anyway.  But there&amp;#039;s no obvious reason not to use those as simply &amp;lt;nowiki&amp;gt;{{{alt|}}},{{{link|}}}&amp;lt;/nowiki&amp;gt; etc. without #invoking anyway.&lt;/div&gt;</summary>
		<author><name>imported&gt;Wnt</name></author>
	</entry>
</feed>