Difference between revisions of "MagazineName"
From Sega Retro
Line 22: | Line 22: | ||
| dmuk={{#vardefine:fullname|[[Dreamcast Magazine (UK)|Dreamcast Magazine]] | | dmuk={{#vardefine:fullname|[[Dreamcast Magazine (UK)|Dreamcast Magazine]] | ||
{{#switch: {{#var:issueNo}} | {{#switch: {{#var:issueNo}} | ||
− | |1|={{#vardefine:fulldate|#1 (1999-09)}} | + | |1|={{#vardefine:fulldate|<nowiki>#</nowiki>1 (1999-09)}} |
− | |2|={{#vardefine:fulldate|#2 (1999-10-21)}} | + | |2|={{#vardefine:fulldate|<nowiki>#</nowiki>2 (1999-10-21)}} |
− | |3|={{#vardefine:fulldate|#3 (1999-11-25)}} | + | |3|={{#vardefine:fulldate|<nowiki>#</nowiki>3 (1999-11-25)}} |
− | |4|={{#vardefine:fulldate|#4 (1999-12-23)}} | + | |4|={{#vardefine:fulldate|<nowiki>#</nowiki>4 (1999-12-23)}} |
− | |5|={{#vardefine:fulldate|#5 (2000-01-27)}} | + | |5|={{#vardefine:fulldate|<nowiki>#</nowiki>5 (2000-01-27)}} |
− | |6|={{#vardefine:fulldate|#6 (2000-02-24)}} | + | |6|={{#vardefine:fulldate|<nowiki>#</nowiki>6 (2000-02-24)}} |
− | |7|={{#vardefine:fulldate|#7 (2000-03-23)}} | + | |7|={{#vardefine:fulldate|<nowiki>#</nowiki>7 (2000-03-23)}} |
− | |8|={{#vardefine:fulldate|#8 (2000-04-28)}} | + | |8|={{#vardefine:fulldate|<nowiki>#</nowiki>8 (2000-04-28)}} |
− | |9|={{#vardefine:fulldate|#9 (2000-05-18)}} | + | |9|={{#vardefine:fulldate|<nowiki>#</nowiki>9 (2000-05-18)}} |
− | |10|={{#vardefine:fulldate|#10 (2000-06-15)}} | + | |10|={{#vardefine:fulldate|<nowiki>#</nowiki>10 (2000-06-15)}} |
− | |11|={{#vardefine:fulldate|#11 (2000-07-xx)}} | + | |11|={{#vardefine:fulldate|<nowiki>#</nowiki>11 (2000-07-xx)}} |
− | |12|={{#vardefine:fulldate|#12 (2000-08-10)}} | + | |12|={{#vardefine:fulldate|<nowiki>#</nowiki>12 (2000-08-10)}} |
− | |13|={{#vardefine:fulldate|#13 (2000-09-07)}} | + | |13|={{#vardefine:fulldate|<nowiki>#</nowiki>13 (2000-09-07)}} |
− | |14|={{#vardefine:fulldate|#14 (2000-10-05)}} | + | |14|={{#vardefine:fulldate|<nowiki>#</nowiki>14 (2000-10-05)}} |
− | |15|={{#vardefine:fulldate|#15 (200x-xx-xx)}} | + | |15|={{#vardefine:fulldate|<nowiki>#</nowiki>15 (200x-xx-xx)}} |
− | |16|={{#vardefine:fulldate|#16 (200x-xx-xx)}} | + | |16|={{#vardefine:fulldate|<nowiki>#</nowiki>16 (200x-xx-xx)}} |
− | |17|={{#vardefine:fulldate|#17 (200x-xx-xx)}} | + | |17|={{#vardefine:fulldate|<nowiki>#</nowiki>17 (200x-xx-xx)}} |
− | |18|={{#vardefine:fulldate|#18 (200x-xx-xx)}} | + | |18|={{#vardefine:fulldate|<nowiki>#</nowiki>18 (200x-xx-xx)}} |
− | |19|={{#vardefine:fulldate|#19 (200x-xx-xx)}} | + | |19|={{#vardefine:fulldate|<nowiki>#</nowiki>19 (200x-xx-xx)}} |
− | |20|={{#vardefine:fulldate|#20 (200x-xx-xx)}} | + | |20|={{#vardefine:fulldate|<nowiki>#</nowiki>20 (200x-xx-xx)}} |
− | |21|={{#vardefine:fulldate|#21 (200x-xx-xx)}} | + | |21|={{#vardefine:fulldate|<nowiki>#</nowiki>21 (200x-xx-xx)}} |
− | |22|={{#vardefine:fulldate|#22 (200x-xx-xx)}} | + | |22|={{#vardefine:fulldate|<nowiki>#</nowiki>22 (200x-xx-xx)}} |
− | |23|={{#vardefine:fulldate|#23 (200x-xx-xx)}} | + | |23|={{#vardefine:fulldate|<nowiki>#</nowiki>23 (200x-xx-xx)}} |
− | |24|={{#vardefine:fulldate|#24 (200x-xx-xx)}} | + | |24|={{#vardefine:fulldate|<nowiki>#</nowiki>24 (200x-xx-xx)}} |
− | |25|={{#vardefine:fulldate|#25 (200x-xx-xx)}} | + | |25|={{#vardefine:fulldate|<nowiki>#</nowiki>25 (200x-xx-xx)}} |
− | |26|={{#vardefine:fulldate|#26 (200x-xx-xx)}} | + | |26|={{#vardefine:fulldate|<nowiki>#</nowiki>26 (200x-xx-xx)}} |
− | |27|={{#vardefine:fulldate|#27 (200x-xx-xx)}} | + | |27|={{#vardefine:fulldate|<nowiki>#</nowiki>27 (200x-xx-xx)}} |
− | |28|={{#vardefine:fulldate|#28 (200x-xx-xx)}} | + | |28|={{#vardefine:fulldate|<nowiki>#</nowiki>28 (200x-xx-xx)}} |
− | |29|={{#vardefine:fulldate|#29 (200x-xx-xx)}} | + | |29|={{#vardefine:fulldate|<nowiki>#</nowiki>29 (200x-xx-xx)}} |
− | |30|={{#vardefine:fulldate|#30 (2001-12-27)}} | + | |30|={{#vardefine:fulldate|<nowiki>#</nowiki>30 (2001-12-27)}} |
− | |31|={{#vardefine:fulldate|#31 (2002-01-31)}} | + | |31|={{#vardefine:fulldate|<nowiki>#</nowiki>31 (2002-01-31)}} |
− | |32|={{#vardefine:fulldate|#32 (2002-02-28)}} | + | |32|={{#vardefine:fulldate|<nowiki>#</nowiki>32 (2002-02-28)}} |
− | |33|={{#vardefine:fulldate|#33 (2002-03-28)}} | + | |33|={{#vardefine:fulldate|<nowiki>#</nowiki>33 (2002-03-28)}} |
− | |34|={{#vardefine:fulldate|#34 (2002-04-25)}} | + | |34|={{#vardefine:fulldate|<nowiki>#</nowiki>34 (2002-04-25)}} |
}} | }} | ||
|#default= | |#default= | ||
− | }} | + | }}</div>{{#ifeq:{{{dateonly}}}|yes||{{#var:fullname}}}} {{#var:fulldate}} |
− | </div>{{#ifeq:{{{dateonly}}}|yes||{{#var:fullname}}}} {{#var:fulldate}} |
Revision as of 14:49, 22 April 2016
This template generates a full name for a magazine, given a name and an issue number (either a number or a date). This saves having to look up precise release dates of magazines, and should greatly speed up the creation of lists of articles.
Use
{{MagazineName|<name>|<issueno>|dateonly=}}
If "dateonly" is set to yes, only the release date will be returned.
Example
{{MagazineName|dmuk|12}}
Gives
Dreamcast Magazine #12 (2000-08-10)
{{MagazineName|dmuk|12|dateonly=yes}}
Gives
#12 (2000-08-10)
Dreamcast Magazine #12 (2000-08-10)