Difference between revisions of "MagazineName"

From Sega Retro

Line 22: Line 22:
 
{{#vardefine:fullname|}}
 
{{#vardefine:fullname|}}
 
{{#switch: {{#var:name}}
 
{{#switch: {{#var:name}}
| dmuk={{#vardefine:fullname|[[Dreamcast Magazine (UK)|Dreamcast Magazine]]
+
{{MagazineNameUS}}
{{#switch: {{#var:issueNo}}
+
{{MagazineNameJP}}
|1|={{#vardefine:fulldate|<nowiki>#</nowiki>1 (1999-09)}}
+
{{MagazineNameUK}}
|2|={{#vardefine:fulldate|<nowiki>#</nowiki>2 (1999-10-21)}}
+
{{MagazineNameFR}}
|3|={{#vardefine:fulldate|<nowiki>#</nowiki>3 (1999-11-25)}}
+
{{MagazineNameDE}}
|4|={{#vardefine:fulldate|<nowiki>#</nowiki>4 (1999-12-23)}}
+
{{MagazineNameES}}
|5|={{#vardefine:fulldate|<nowiki>#</nowiki>5 (2000-01-27)}}
+
{{MagazineNameIT}}
|6|={{#vardefine:fulldate|<nowiki>#</nowiki>6 (2000-02-24)}}
+
{{MagazineNameNL}}
|7|={{#vardefine:fulldate|<nowiki>#</nowiki>7 (2000-03-23)}}
+
{{MagazineNamePT}}
|8|={{#vardefine:fulldate|<nowiki>#</nowiki>8 (2000-04-28)}}
+
{{MagazineNameGR}}
|9|={{#vardefine:fulldate|<nowiki>#</nowiki>9 (2000-05-18)}}
+
{{MagazineNameDK}}
|10|={{#vardefine:fulldate|<nowiki>#</nowiki>10 (2000-06-15)}}
+
{{MagazineNameSE}}
|11|={{#vardefine:fulldate|<nowiki>#</nowiki>11 (2000-07-xx)}}
+
{{MagazineNamePL}}
|12|={{#vardefine:fulldate|<nowiki>#</nowiki>12 (2000-08-10)}}
+
{{MagazineNameAT}}
|13|={{#vardefine:fulldate|<nowiki>#</nowiki>13 (2000-09-07)}}
+
{{MagazineNameCZ}}
|14|={{#vardefine:fulldate|<nowiki>#</nowiki>14 (2000-10-05)}}
+
{{MagazineNameAU}}
|15|={{#vardefine:fulldate|<nowiki>#</nowiki>15 (200x-xx-xx)}}
+
{{MagazineNameNZ}}
|16|={{#vardefine:fulldate|<nowiki>#</nowiki>16 (200x-xx-xx)}}
+
{{MagazineNameBR}}
|17|={{#vardefine:fulldate|<nowiki>#</nowiki>17 (200x-xx-xx)}}
+
{{MagazineNameAR}}
|18|={{#vardefine:fulldate|<nowiki>#</nowiki>18 (200x-xx-xx)}}
 
|19|={{#vardefine:fulldate|<nowiki>#</nowiki>19 (200x-xx-xx)}}
 
|20|={{#vardefine:fulldate|<nowiki>#</nowiki>20 (200x-xx-xx)}}
 
|21|={{#vardefine:fulldate|<nowiki>#</nowiki>21 (200x-xx-xx)}}
 
|22|={{#vardefine:fulldate|<nowiki>#</nowiki>22 (200x-xx-xx)}}
 
|23|={{#vardefine:fulldate|<nowiki>#</nowiki>23 (200x-xx-xx)}}
 
|24|={{#vardefine:fulldate|<nowiki>#</nowiki>24 (200x-xx-xx)}}
 
|25|={{#vardefine:fulldate|<nowiki>#</nowiki>25 (200x-xx-xx)}}
 
|26|={{#vardefine:fulldate|<nowiki>#</nowiki>26 (200x-xx-xx)}}
 
|27|={{#vardefine:fulldate|<nowiki>#</nowiki>27 (200x-xx-xx)}}
 
|28|={{#vardefine:fulldate|<nowiki>#</nowiki>28 (200x-xx-xx)}}
 
|29|={{#vardefine:fulldate|<nowiki>#</nowiki>29 (200x-xx-xx)}}
 
|30|={{#vardefine:fulldate|<nowiki>#</nowiki>30 (2001-12-27)}}
 
|31|={{#vardefine:fulldate|<nowiki>#</nowiki>31 (2002-01-31)}}
 
|32|={{#vardefine:fulldate|<nowiki>#</nowiki>32 (2002-02-28)}}
 
|33|={{#vardefine:fulldate|<nowiki>#</nowiki>33 (2002-03-28)}}
 
|34|={{#vardefine:fulldate|<nowiki>#</nowiki>34 (2002-04-25)}}
 
 
}}
 
}}
 
|#default=
 
|#default=
}}</div>{{#ifeq:{{{dateonly}}}|yes||{{#var:fullname}}}} {{#var:fulldate}}</includeonly>
+
}}</div>{{#ifeq:{{{dateonly}}}|yes||{{#var:fullname}}}} {{#var:fulldate}}</includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude>

Revision as of 04:07, 23 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



|#default=

}}
{{MagazineName|dmuk|12|dateonly=yes}}

Gives



|#default=

}}