Difference between revisions of "MagazineName"
From Sega Retro
Line 3: | Line 3: | ||
==Use== | ==Use== | ||
<pre> | <pre> | ||
− | {{MagazineName|<name>|<issueno>| | + | {{MagazineName|<name>|<issueno>|nomagname=|noissuename=|nodate=}} |
</pre> | </pre> | ||
If "dateonly" is set to yes, only the release date will be returned. | If "dateonly" is set to yes, only the release date will be returned. | ||
Line 18: | Line 18: | ||
{{MagazineName|dmuk|12|dateonly=yes}} | {{MagazineName|dmuk|12|dateonly=yes}} | ||
</noinclude><includeonly><div style="display:none;"> | </noinclude><includeonly><div style="display:none;"> | ||
− | {{#vardefine:name|{{{1}}}}}{{#vardefine: | + | {{#vardefine:name|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}} |
− | |||
{{MagazineNameUS}} | {{MagazineNameUS}} | ||
{{MagazineNameJP}} | {{MagazineNameJP}} | ||
Line 40: | Line 39: | ||
{{MagazineNameBR}} | {{MagazineNameBR}} | ||
{{MagazineNameAR}} | {{MagazineNameAR}} | ||
− | </div>{{#ifeq:{{{ | + | </div>{{#ifeq:{{{nomagname}}}|yes||{{#var:magname}}}} {{#ifeq:{{{noissuename}}}|yes||{{#var:issuename}}}} {{#ifeq:{{{nopubdate}}}|yes||{{#var:pubdate}}}}</includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude> |
Revision as of 06:11, 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>|nomagname=|noissuename=|nodate=}}
If "dateonly" is set to yes, only the release date will be returned.
Example
{{MagazineName|dmuk|12}}
Gives
{{MagazineName|dmuk|12|dateonly=yes}}
Gives