Difference between revisions of "MagazineName"

From Sega Retro

Line 9: Line 9:
 
</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.
</noinlcude><div style="display:none;">
+
</noinclude><div style="display:none;">
 
{{#vardefine:name|{{{name}}}}}{{#vardefine:issueNo|{{{issueno}}}}}
 
{{#vardefine:name|{{{name}}}}}{{#vardefine:issueNo|{{{issueno}}}}}
  
 
{{#vardefine:fullname|}}
 
{{#vardefine:fullname|}}
 
{{#switch: {{#var:name}}
 
{{#switch: {{#var:name}}
 
 
| dmuk={{#vardefine:fullname|[[Dreamcast Magazine (UK)|Dreamcast Magazine]]
 
| dmuk={{#vardefine:fullname|[[Dreamcast Magazine (UK)|Dreamcast Magazine]]
 
{{#switch: {{#var:issueNo}}
 
{{#switch: {{#var:issueNo}}
Line 52: Line 51:
 
|34|={{#vardefine:fulldate|#34 (2002-04-25)}}
 
|34|={{#vardefine:fulldate|#34 (2002-04-25)}}
 
}}
 
}}
 
+
|#default=
 
}}
 
}}
 
</div>{{#ifeq:{{{dateonly}}}|yes||{{#var:fullname}}}} {{#var:fulldate}}
 
</div>{{#ifeq:{{{dateonly}}}|yes||{{#var:fullname}}}} {{#var:fulldate}}

Revision as of 14:46, 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.


{{#switch: {{{name}}} | dmuk=

Dreamcast Magazine