Difference between revisions of "Template:Version/doc"

From TerraFirmaCraft Wiki
Jump to: navigation, search
 
m
 
Line 1: Line 1:
 
{{doc/start}}
 
{{doc/start}}
Because this template is used on the main page, it must be modified by an [[Minecraft Wiki:List of administrators|Administrator or Bureaucrat]]. If you have noticed that the version has changed but this template hasn't been updated, it is best to leave a note on an Administrator talk page or the [[Minecraft Wiki:Admin noticeboard|Admin noticeboard]].
+
This template is for displaying the current version number, as well as providing the version for download links. For just displaying the version, a direct <nowiki>{{version}}</nowiki> will work. For download links, use <nowiki>{{version|download=1}}</nowiki>.
  
To update the version number, modify the vardefines at the top of the template.
+
'''Standard:''' {{version}}
  
== Current version ==
+
'''Download:''' {{version|download=1}}
{| style="background-color: transparent" cellpadding="0" cellspacing="0"
+
| Current PC Classic version:            || &nbsp;<big>'''{{v|classic=1}}'''</big>
+
|-
+
| Current PC Classic server version:     || &nbsp;<big>'''{{v|classic=1|server=1}}'''</big>
+
|-
+
| Current PC version:              || &nbsp;<big>'''{{v}}'''</big>
+
|-
+
| Current PC server version:        || &nbsp;<big>'''{{v|server=1}}'''</big>
+
|-
+
| Current Android version:            || &nbsp;<big>'''{{v|android=1}}'''</big>
+
|-
+
| Current iOS version:            || &nbsp;<big>'''{{v|ios=1}}'''</big>
+
|-
+
| Current Weekly version:        || &nbsp;<big>'''{{v|weekly=1}}'''</big>
+
|-
+
| Current Weekly server version: || &nbsp;<big>'''{{v|weekly=1|server=1}}'''</big>
+
|}
+
 
+
== Usage ==
+
* To output the current PC Classic version, simply put <code><nowiki>{{v|classic=1}}</nowiki></code>
+
* To output the current PC Classic server version, simply put <code><nowiki>{{v|classic=1|server=1}}</nowiki></code>
+
* To output the current PC version, simply put <code><nowiki>{{v}}</nowiki></code>
+
* To output the current PC server version, simply put <code><nowiki>{{v|server=1}}</nowiki></code>
+
* To output the current Android version, simply put <code><nowiki>{{v|android=1}}</nowiki></code>
+
* To output the current iOS version, simply put <code><nowiki>{{v|ios=1}}</nowiki></code>
+
* To output the current Weekly version, simply put <code><nowiki>{{v|weekly=1}}</nowiki></code>
+
* To output the current Weekly server version, simply put <code><nowiki>{{v|weekly=1|server=1}}</nowiki></code>
+
 
+
=== Usage in tables ===
+
When used in a table, the template will compare the version you specify with the latest version, and mark the cell green if it is the latest version, and red if it isn't.
+
 
+
To make the template use table mode, simply put the version you want.
+
 
+
For example, <code><nowiki>{{v|1.0.0}}</nowiki></code>
+
 
{{doc/end}}<noinclude>
 
{{doc/end}}<noinclude>
 
</noinclude>
 
</noinclude>

Latest revision as of 16:19, 17 September 2015

This template is for displaying the current version number, as well as providing the version for download links. For just displaying the version, a direct {{version}} will work. For download links, use {{version|download=1}}.

Standard: 0.79.29.922

Download: 79-29