Difference between revisions of "MagazineName"
From Sega Retro
(should be faster...?) |
|||
Line 49: | Line 49: | ||
</noinclude><includeonly><div style="display:none;"> | </noinclude><includeonly><div style="display:none;"> | ||
− | {{#vardefine:name|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}} | + | {{#vardefine:name|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:magname|}} |
− | {{MagazineNameUS}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameUK}}|}} |
− | {{MagazineNameJP}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameUS}}|}} |
− | {{ | + | {{#ifeq:{{#var: magname}}||{{MagazineNameJP}}|}} |
− | {{MagazineNameFR}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameFR}}|}} |
− | {{MagazineNameDE}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameDE}}|}} |
− | {{MagazineNameES}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameES}}|}} |
− | {{MagazineNameIT}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameIT}}|}} |
− | {{MagazineNameNL}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameAU}}|}} |
− | {{MagazineNamePT}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameBR}}|}} |
− | {{MagazineNameGR}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameAR}}|}} |
− | {{MagazineNameDK}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameNL}}|}} |
− | {{MagazineNameSE}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNamePT}}|}} |
− | {{MagazineNamePL}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameGR}}|}} |
− | {{MagazineNameAT}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameDK}}|}} |
− | {{MagazineNameFI}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameSE}}|}} |
− | {{MagazineNameCZ}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNamePL}}|}} |
− | {{ | + | {{#ifeq:{{#var: magname}}||{{MagazineNameAT}}|}} |
− | {{MagazineNameNZ}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameFI}}|}} |
− | {{ | + | {{#ifeq:{{#var: magname}}||{{MagazineNameCZ}}|}} |
− | {{ | + | {{#ifeq:{{#var: magname}}||{{MagazineNameNZ}}|}} |
− | {{ | + | {{#ifeq:{{#var: magname}}||{{MagazineNameKR}}|}} |
− | {{MagazineNameTW}} | + | {{#ifeq:{{#var: magname}}||{{MagazineNameTW}}|}} |
</div>{{#ifeq:{{{nomagname}}}|yes||{{#var:magname}}}} {{#ifeq:{{{noissuename}}}|yes||{{#var:issuename}}}} {{#ifeq:{{{nopubdate}}}|yes||{{#ifeq:{{{noissuename}}}|yes||(}}{{#var:pubdate}}{{#ifeq:{{{noissuename}}}|yes||)}}}}{{#vardefine:magname||}}{{#vardefine:issuename||}}{{#vardefine:pubdate||}}</includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude> | </div>{{#ifeq:{{{nomagname}}}|yes||{{#var:magname}}}} {{#ifeq:{{{noissuename}}}|yes||{{#var:issuename}}}} {{#ifeq:{{{nopubdate}}}|yes||{{#ifeq:{{{noissuename}}}|yes||(}}{{#var:pubdate}}{{#ifeq:{{{noissuename}}}|yes||)}}}}{{#vardefine:magname||}}{{#vardefine:issuename||}}{{#vardefine:pubdate||}}</includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude> |
Revision as of 10:31, 5 July 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>|nomagname=|noissuename=|nopubdate=}} |
By default this returns a long string - parts can be omitted using the |no(x) fields.
Examples
{{MagazineName|dmuk|12}} |
Returns
()
{{MagazineName|dmuk|12|nomagname=yes}} |
Returns
()
{{MagazineName|dmuk|12|noissuename=yes}} |
Returns
{{MagazineName|dmuk|12|nopubdate=yes}} |
Returns
{{MagazineName|dmuk|12|nomagname=yes|nopubdate=yes}} |
Returns
{{MagazineName|dmuk|12|nomagname=yes|noissuename=yes}} |
Returns
{{MagazineName|dmuk|12|noissuename=yes|nopubdate=yes}} |
Returns