Difference between revisions of "MagazineName"

From Sega Retro

Line 1: Line 1:
<noinclude>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.
+
<includeonly><div style="display:none;">
 +
{{#vardefine:name|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:magname|}}
 +
{{#ifeq:{{#var: magname}}||{{MagazineNameUK}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameUS}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameJP}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameFR}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameDE}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameES}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameIT}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameAU}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameBR}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameAR}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameNL}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNamePT}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameGR}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameDK}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameSE}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNamePL}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameAT}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameFI}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameCZ}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameNZ}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameKR}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameTW}}{{
 +
#ifeq:{{#var: magname}}||{{MagazineNameTH}}{{
 +
#ifeq:{{#var: magname}}||{{TVName}}{{
 +
#ifeq:{{#var: magname}}||{{OnlineRatingTest|{{#var: name}}}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}
 +
</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>
 +
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==
 
==Use==
Line 46: Line 74:
 
|<pre>{{MagazineName|dmuk|12|noissuename=yes|nopubdate=yes}}</pre>
 
|<pre>{{MagazineName|dmuk|12|noissuename=yes|nopubdate=yes}}</pre>
 
|}
 
|}
Returns {{MagazineName|dmuk|12|noissuename=yes|nopubdate=yes}}
+
Returns {{MagazineName|dmuk|12|noissuename=yes|nopubdate=yes}}[[Category:Sega Retro templates]]</noinclude>
 
 
</noinclude><includeonly><div style="display:none;">
 
{{#vardefine:name|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}{{#vardefine:magname|}}
 
 
 
{{#ifeq:{{#var: magname}}||{{MagazineNameUK}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameUS}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameJP}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameFR}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameDE}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameES}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameIT}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameAU}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameBR}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameAR}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameNL}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNamePT}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameGR}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameDK}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameSE}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNamePL}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameAT}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameFI}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameCZ}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameNZ}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameKR}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameTW}}|}}
 
{{#ifeq:{{#var: magname}}||{{MagazineNameTH}}|}}
 
{{#ifeq:{{#var: magname}}||{{TVName}}|}}
 
{{#ifeq:{{#var: magname}}||{{OnlineRatingTest|{{#var: name}}}}|}}
 
</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 13:23, 21 August 2017

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