Difference between revisions of "MagazineName"

From Sega Retro

Line 2: Line 2:
  
 
==Use==
 
==Use==
<pre>
+
{|
{{MagazineName|<name>|<issueno>|nomagname=|noissuename=|nodate=}}
+
|<pre>{{MagazineName|<name>|<issueno>|nomagname=|noissuename=|nopubdate=}}</pre>
</pre>
+
|}
If "dateonly" is set to yes, only the release date will be returned.
+
By default this returns a long string - parts can be omitted using the |no(x) fields.
  
==Example==
+
==Examples==
<pre>{{MagazineName|dmuk|12}}</pre>
+
{|
 +
|<pre>{{MagazineName|dmuk|12}}</pre>
 +
|}
 +
Returns {{MagazineName|dmuk|12}}
  
Gives
 
{{MagazineName|dmuk|12}}
 
  
<pre>{{MagazineName|dmuk|12|dateonly=yes}}</pre>
+
{|
 +
|<pre>{{MagazineName|dmuk|12|nomagname=yes}}</pre>
 +
|}
 +
Returns {{MagazineName|dmuk|12|nomagname=yes}}
 +
 
 +
 
 +
{|
 +
|<pre>{{MagazineName|dmuk|12|noissuename=yes}}</pre>
 +
|}
 +
Returns {{MagazineName|dmuk|12|noissuename=yes}}
 +
 
 +
 
 +
{|
 +
|<pre>{{MagazineName|dmuk|12|nopubdate=yes}}</pre>
 +
|}
 +
Returns {{MagazineName|dmuk|12|nopubdate=yes}}
 +
 
 +
 
 +
{|
 +
|<pre>{{MagazineName|dmuk|12|nomagname=yes|nopubdate=yes}}</pre>
 +
|}
 +
Returns {{MagazineName|dmuk|12|nomagname=yes|nopubdate=yes}}
 +
 
 +
 
 +
{|
 +
|<pre>{{MagazineName|dmuk|12|nomagname=yes|noissuename=yes}}</pre>
 +
|}
 +
Returns {{MagazineName|dmuk|12|nomagname=yes|noissuename=yes}}
 +
 
 +
{|
 +
|<pre>{{MagazineName|dmuk|12|noissuename=yes|nopubdate=yes}}</pre>
 +
|}
 +
Returns {{MagazineName|dmuk|12|noissuename=yes|nopubdate=yes}}
  
Gives
 
{{MagazineName|dmuk|12|dateonly=yes}}
 
 
</noinclude><includeonly><div style="display:none;">
 
</noinclude><includeonly><div style="display:none;">
 
{{#vardefine:name|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}
 
{{#vardefine:name|{{{1}}}}}{{#vardefine:issueno|{{{2}}}}}

Revision as of 06:40, 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=|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