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:GeniiVolumeNumber: Difference between revisions

From Magicpedia, the free online encyclopedia for magicians by magicians.
Jump to navigation Jump to search
(Created page with "<includeonly2>Genii {{#if:{{{1|}}} |{{#switch:{{{1}}} |1=1936 |2=1937 |3=1938 }} </includeonly><noinclude> This template returns the Genii article page name for the ...")
 
mNo edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly2>Genii {{#if:{{{1|}}}
<includeonly>Genii {{#ifexpr:({{{1}}} < 36)
  |{{#switch:{{{1}}}
|{{#switch:{{{2}}}
   |1=1936
  |1={{#expr:1935+{{{1}}}}} September
   |2=1937
  |2={{#expr:1935+{{{1}}}}} October
   |3=1938
  |3={{#expr:1935+{{{1}}}}} November
}}
  |4={{#expr:1935+{{{1}}}}} December
</includeonly><noinclude>  
  |5={{#expr:1936+{{{1}}}}} January 
  |6={{#expr:1936+{{{1}}}}} February
  |7={{#expr:1936+{{{1}}}}} March
  |8={{#expr:1936+{{{1}}}}} April
  |9={{#expr:1936+{{{1}}}}} May
  |10={{#expr:1936+{{{1}}}}} June
  |11={{#expr:1936+{{{1}}}}} July
  |12={{#expr:1936+{{{1}}}}} August}}
  |{{#ifexpr:({{{1}}} < 49)
  |{{#switch:{{{2}}}
  |1={{#expr:1936+{{{1}}}}} January
  |2={{#expr:1936+{{{1}}}}} February
  |3={{#expr:1936+{{{1}}}}} March
   |4={{#expr:1936+{{{1}}}}} April
  |5={{#expr:1936+{{{1}}}}} May
  |6={{#expr:1936+{{{1}}}}} June
  |7={{#expr:1936+{{{1}}}}} July
  |8={{#expr:1936+{{{1}}}}} August
  |9={{#expr:1936+{{{1}}}}} September
  |10={{#expr:1936+{{{1}}}}} October
  |11={{#expr:1936+{{{1}}}}} November
  |12={{#expr:1936+{{{1}}}}} December}}
|{{#switch:{{{2}}}
  |1={{#expr:1937+{{{1}}}}} January
   |2={{#expr:1937+{{{1}}}}} February
   |3={{#expr:1937+{{{1}}}}} March
  |4={{#expr:1937+{{{1}}}}} April
  |5={{#expr:1937+{{{1}}}}} May
  |6={{#expr:1937+{{{1}}}}} June
  |7={{#expr:1937+{{{1}}}}} July
  |8={{#expr:1937+{{{1}}}}} August
  |9={{#expr:1937+{{{1}}}}} September
  |10={{#expr:1937+{{{1}}}}} October
  |11={{#expr:1937+{{{1}}}}} November
  |12={{#expr:1937+{{{1}}}}} December}}
}}}}</includeonly><noinclude>  


This template returns the Genii article page name for the volume number   
This template returns the Genii article page name for the volume number   
Line 14: Line 49:
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber|</tt>''volume''| ''number''<tt>}}</tt>
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber|</tt>''volume''| ''number''<tt>}}</tt>
   
   
; Examples for all standard English month names<nowiki>:</nowiki>
; Examples<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|1|2}}</nowiki></tt> returns {{GeniiVolumeNumber|1|2}}  
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|1|2}}</nowiki></tt> returns [[{{GeniiVolumeNumber|1|2}}]]
 
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|6|3}}</nowiki></tt> returns [[{{GeniiVolumeNumber|6|3}}]]
<includeonly>
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|10|4}}</nowiki></tt> returns [[{{GeniiVolumeNumber|10|4}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|20|5}}</nowiki></tt> returns [[{{GeniiVolumeNumber|20|5}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|30|6}}</nowiki></tt> returns [[{{GeniiVolumeNumber|30|6}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|35|6}}</nowiki></tt> returns [[{{GeniiVolumeNumber|35|6}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|36|6}}</nowiki></tt> returns [[{{GeniiVolumeNumber|36|6}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|40|7}}</nowiki></tt> returns [[{{GeniiVolumeNumber|40|7}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|47|7}}</nowiki></tt> returns [[{{GeniiVolumeNumber|47|7}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|48|7}}</nowiki></tt> returns [[{{GeniiVolumeNumber|48|7}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|49|2}}</nowiki></tt> returns [[{{GeniiVolumeNumber|49|2}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|50|1}}</nowiki></tt> returns [[{{GeniiVolumeNumber|50|1}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|60|7}}</nowiki></tt> returns [[{{GeniiVolumeNumber|60|7}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|70|7}}</nowiki></tt> returns [[{{GeniiVolumeNumber|70|7}}]]
: <tt><nowiki>{{</nowiki>GeniiVolumeNumber<nowiki>|75|7}}</nowiki></tt> returns [[{{GeniiVolumeNumber|75|7}}]]
</noinclude>
</noinclude>

Latest revision as of 18:56, 29 April 2013


This template returns the Genii article page name for the volume number

Does not play nicely with "subst:"

Syntax:
{{GeniiVolumeNumber|volume| number}}
Examples:
{{GeniiVolumeNumber|1|2}} returns Genii 1936 October
{{GeniiVolumeNumber|6|3}} returns Genii 1941 November
{{GeniiVolumeNumber|10|4}} returns Genii 1945 December
{{GeniiVolumeNumber|20|5}} returns Genii 1956 January
{{GeniiVolumeNumber|30|6}} returns Genii 1966 February
{{GeniiVolumeNumber|35|6}} returns Genii 1971 February
{{GeniiVolumeNumber|36|6}} returns Genii 1972 June
{{GeniiVolumeNumber|40|7}} returns Genii 1976 July
{{GeniiVolumeNumber|47|7}} returns Genii 1983 July
{{GeniiVolumeNumber|48|7}} returns Genii 1984 July
{{GeniiVolumeNumber|49|2}} returns Genii 1986 February
{{GeniiVolumeNumber|50|1}} returns Genii 1987 January
{{GeniiVolumeNumber|60|7}} returns Genii 1997 July
{{GeniiVolumeNumber|70|7}} returns Genii 2007 July
{{GeniiVolumeNumber|75|7}} returns Genii 2012 July