<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/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://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3APseudo_image%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Pseudo_image/doc&amp;action=history"/>
	<updated>2026-06-21T12:24:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Pseudo_image/doc&amp;diff=479058&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Pseudo_image/doc&amp;diff=479058&amp;oldid=prev"/>
		<updated>2021-07-16T05:32:15Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&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 ''(though it will might use its own args in preference for debug purposes)'' 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 ''used'' 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|''a bunch of stuff to draw the diagram as divs''}}}}&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 ''query=(field name)'' and return the desired field for use within the template.  The field names presently supported are:&lt;br /&gt;
&lt;br /&gt;
* ''thumb'' - returns the value &amp;quot;yes&amp;quot; if there a |thumb| or |thumbnail| is given.&lt;br /&gt;
* ''frame'' - returns &amp;quot;yes&amp;quot; if there is a |frame|&lt;br /&gt;
* ''px'' - returns the horizontal pixel size ### if there is a |###px| or |###x##px|&lt;br /&gt;
* ''xpx'' - returns the vertical pixel size ### if there is a |##x###px| or |x###px|&lt;br /&gt;
* ''float'' - returns ''left'', ''right'', ''center'', ''none'' if any one of these is present&lt;br /&gt;
* ''vertical'' - returns ''baseline'',''middle'',''sub'',''super'',''text-top'',''text-bottom'',''top'', or ''bottom'' if any of these is present&lt;br /&gt;
* ''caption'' - returns the first field that isn'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't happen anyway.&lt;br /&gt;
* If two different values are given for the same field (''Pseudo image|thumb|left|right|center|'', whichever comes later as they're listed above should dominate, but let's call it &amp;quot;undefined&amp;quot;, i.e. don'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'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>Zoran</name></author>
	</entry>
</feed>