Difference between revisions of "Template:Release list"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> == Usage == A list of all game releases for which release data exists in the wiki. (This may skip some minor releases.) To get the version number of the nth rel...")
 
Line 4: Line 4:
 
A list of all game releases for which release data exists in the wiki.  (This may skip some minor releases.)
 
A list of all game releases for which release data exists in the wiki.  (This may skip some minor releases.)
  
To get the version number of the nth release, use <code>{{Release list|n}}</code>.
+
The first piece of data is the number of releases in the list.  After that, each release is listed in turn.  So, to get the version number of the nth release, use <code>{{Release list|n-1}}</code>.
  
 
== Example ==
 
== Example ==
Line 10: Line 10:
 
The following shorthand:
 
The following shorthand:
 
<pre>
 
<pre>
{{Release list|2}}
+
{{Release list|3}}
 
</pre>
 
</pre>
  
 
Produces:
 
Produces:
  
{{Release list|2}}
+
{{Release list|3}}
  
 
[[Category:Release data templates]]
 
[[Category:Release data templates]]
  
 
</noinclude><includeonly>{{p{{{1}}}
 
</noinclude><includeonly>{{p{{{1}}}
 +
|34
 
|1.2
 
|1.2
 
|1.3
 
|1.3

Revision as of 04:35, 3 March 2019

Usage

A list of all game releases for which release data exists in the wiki. (This may skip some minor releases.)

The first piece of data is the number of releases in the list. After that, each release is listed in turn. So, to get the version number of the nth release, use Template:Pn-1.

Example

The following shorthand:

{{Release list|3}}

Produces:

1.3