Help us get to over 8,756 articles in 2024.

If you know of a magician not listed in MagicPedia, start a New Biography for them. Contact us at magicpediahelp@gmail.com

Template:GeniiIssuePrev: Difference between revisions

From Magicpedia, the free online encyclopedia for magicians by magicians.
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{GeniiVolumeNumber|{{#ifexpr:{{{2}}} = 1 | {{#expr:{{{1}}}-1}} | {{{1}}} }} 
<includeonly>Genii {{#time:Y F|{{#explode:{{{1}}}| |1}} {{#explode:{{{1}}}| |2}} -1 month }}</includeonly><noinclude>  
|{{#ifexpr:{{{2}}} = 1 | 12 | {{#expr:{{{2}}}-1}} }}
}}</includeonly><noinclude>  


This template returns the Previous Genii issue
This template returns the Prev Genii issue


Does not play nicely with "subst:"
Does not play nicely with "subst:"
   
   
; Syntax<nowiki>:</nowiki>
; Syntax<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>GeniiIssuePrev|</tt>''volume''| ''number''<tt>}}</tt>
: <tt><nowiki>{{</nowiki>GeniiIssuePrev|</tt>''Genii October 1962''<tt>}}</tt>
   
   
; Examples<nowiki>:</nowiki>
; Examples<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>GeniiIssuePrev<nowiki>|3|1}}</nowiki></tt> returns [[{{GeniiIssuePrev|3|1}}]]  
: <tt><nowiki>{{</nowiki>GeniiIssuePrev<nowiki>|Genii 1952 November }}</nowiki></tt> returns [[{{GeniiIssueNext|Genii November 1952}}]]  
: <tt><nowiki>{{</nowiki>GeniiIssuePrev<nowiki>|6|8}}</nowiki></tt> returns [[{{GeniiIssuePrev|6|8}}]]  
: <tt><nowiki>{{</nowiki>GeniiIssuePrev<nowiki>|Genii 1952 December }}</nowiki></tt> returns [[{{GeniiIssueNext|Genii December 1952}}]]  
: <tt><nowiki>{{</nowiki>GeniiIssuePrev<nowiki>|11|12}}</nowiki></tt> returns [[{{GeniiIssuePrev|11|12}}]]
: <tt><nowiki>{{</nowiki>GeniiIssuePrev<nowiki>|Genii 2000 January }}</nowiki></tt> returns [[{{GeniiIssueNext|Genii January 2000}}]]  
: <tt><nowiki>{{</nowiki>GeniiIssuePrev<nowiki>|9|12}}</nowiki></tt> returns [[{{GeniiIssuePrev|9|12}}]]  
    
    
</noinclude>
</noinclude>

Revision as of 17:39, 14 May 2013


This template returns the Prev Genii issue

Does not play nicely with "subst:"

Syntax:
{{GeniiIssuePrev|Genii October 1962}}
Examples:
{{GeniiIssuePrev|Genii 1952 November }} returns Genii 1952 December
{{GeniiIssuePrev|Genii 1952 December }} returns Genii 1953 January
{{GeniiIssuePrev|Genii 2000 January }} returns Genii 2000 February