Template:Version: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
m (1 revision)
 
(No difference)

Latest revision as of 17:02, 14 October 2011

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}

Template-info.png Documentation

Because this template is used on the main page, it must be modified by an 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.

To update the version number, modify the vardefines at the top of the template.

Current version

Current Classic version: 0.30}}{{#vardefine:classic-server|1.1.2}}{{#vardefine:beta|1.8.1}}{{#vardefine:beta-server|1.8.1}}{{#vardefine:pocket|0.1}}{{#vardefine:pre|1.9pre4}}{{#vardefine:pre-server|1.9pre4}}{{#var:classic}}
Current Classic server version: 0.30}}{{#vardefine:classic-server|1.1.2}}{{#vardefine:beta|1.8.1}}{{#vardefine:beta-server|1.8.1}}{{#vardefine:pocket|0.1}}{{#vardefine:pre|1.9pre4}}{{#vardefine:pre-server|1.9pre4}}{{#var:classic-server}}
Current Beta version: 0.30}}{{#vardefine:classic-server|1.1.2}}{{#vardefine:beta|1.8.1}}{{#vardefine:beta-server|1.8.1}}{{#vardefine:pocket|0.1}}{{#vardefine:pre|1.9pre4}}{{#vardefine:pre-server|1.9pre4}}{{#var:beta}}
Current Beta server version: 0.30}}{{#vardefine:classic-server|1.1.2}}{{#vardefine:beta|1.8.1}}{{#vardefine:beta-server|1.8.1}}{{#vardefine:pocket|0.1}}{{#vardefine:pre|1.9pre4}}{{#vardefine:pre-server|1.9pre4}}{{#var:beta-server}}
Current Pocket version: 0.30}}{{#vardefine:classic-server|1.1.2}}{{#vardefine:beta|1.8.1}}{{#vardefine:beta-server|1.8.1}}{{#vardefine:pocket|0.1}}{{#vardefine:pre|1.9pre4}}{{#vardefine:pre-server|1.9pre4}}{{#var:pocket}}
Current Pre-release version: 0.30}}{{#vardefine:classic-server|1.1.2}}{{#vardefine:beta|1.8.1}}{{#vardefine:beta-server|1.8.1}}{{#vardefine:pocket|0.1}}{{#vardefine:pre|1.9pre4}}{{#vardefine:pre-server|1.9pre4}}{{#var:pre}}
Current Pre-release server version: 0.30}}{{#vardefine:classic-server|1.1.2}}{{#vardefine:beta|1.8.1}}{{#vardefine:beta-server|1.8.1}}{{#vardefine:pocket|0.1}}{{#vardefine:pre|1.9pre4}}{{#vardefine:pre-server|1.9pre4}}{{#var:pre-server}}

Usage

  • To output the current Classic version, simply put {{v|c=1}}
  • To output the current Classic server version, simply put {{v|c=1|s=1}}
  • To output the current Beta version, simply put {{v|b=1}}
  • To output the current Beta server version, simply put {{v|b=1|s=1}}
  • To output the current Pocket version, simply put {{v|p=1}}
  • To output the current Pre-release version, simply put {{v|pre=1}}
  • To output the current Pre-release server version, simply put {{v|pre=1|s=1}}

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 |t=1 plus the version you want.

For example, {{v|b=1|t=1|B1.3_01}}

The above documentation is transcluded from Template:Version/doc. (edit | history)