Template:Version: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
   -->| 6 = <!--current major-->goodrel/current{{Version/Current<!--
   -->| 6 = <!--current major-->goodrel/current{{Version/Current<!--
       -->|rel={{{release}}}<!--
       -->|rel={{{release}}}<!--
       -->{{#if:{{{major|}}}|<!--TRUE: empty-->|maj=fail|<!--FALSE: not empty-->|maj={{{major}}} }}<!--
       -->{{#if:{{{major|}}}|<!--TRUE: empty-->|maj=fail|<!--FALSE: not empty-->|maj={{{major|}}} }}<!--
       -->{{#if:{{{minor|}}}|<!--TRUE: empty-->|min=fail|<!--FALSE: not empty-->|min={{{minor}}} }}<!--
       -->{{#if:{{{minor|}}}|<!--TRUE: empty-->|min=fail|<!--FALSE: not empty-->|min={{{minor|}}} }}<!--
       -->{{#if:{{{suppress|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|sup={{{suppress}}} }}<!--
       -->{{#if:{{{suppress|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|sup={{{suppress|}}} }}<!--
       -->}}<!--
       -->}}<!--
   -->|<!--old major-->goodrel/old{{Version/Old<!--
   -->|<!--old major-->goodrel/old{{Version/Old<!--
       -->|rel={{{release}}}<!--
       -->|rel={{{release}}}<!--
       -->{{#if:{{{major|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|maj={{{major}}} }}<!--
       -->{{#if:{{{major|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|maj={{{major|}}} }}<!--
       -->{{#if:{{{minor|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|min={{{minor}}} }}<!--
       -->{{#if:{{{minor|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|min={{{minor|}}} }}<!--
       -->{{#if:{{{suppress|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|sup={{{suppress}}} }}<!--
       -->{{#if:{{{suppress|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|sup={{{suppress|}}} }}<!--
       -->}}<!--
       -->}}<!--
   -->}}<!--
   -->}}<!--
-->|<!--bad release-->badrel{{Version/Old<!--
-->|<!--bad release-->badrel{{Version/Old<!--
   -->|rel={{{release}}}<!--
   -->|rel={{{release}}}<!--
   -->{{#if:{{{major|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|maj={{{major}}} }}<!--
   -->{{#if:{{{major|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|maj={{{major|}}} }}<!--
   -->{{#if:{{{minor|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|min={{{minor}}} }}<!--
   -->{{#if:{{{minor|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|min={{{minor|}}} }}<!--
   -->{{#if:{{{suppress|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|sup={{{suppress}}} }}<!--
   -->{{#if:{{{suppress|}}}|<!--TRUE: empty-->|<!--FALSE: not empty-->|sup={{{suppress|}}} }}<!--
   -->}}<!--
   -->}}<!--
-->}}</includeonly><noinclude><!--
-->}}</includeonly><noinclude><!--

Revision as of 21:24, 11 May 2018

Example

0.6.{{{minor}}} {{{suppress}}} goodrel/current

Version: {{{1}}}.{{{2}}}

Usage

The Version template is meant to be used at the top of articles (or just above the first heading) to indicate the version of Medieval Engineers the page was created from. If you are updating a page, do not update the version until you have confirmed that all information on the page is also up-to-date.

{{Version <!-- Do not change the version until the entire page is up-to-date -->
|release=<number>|major=<number>|minor=<number>}}
  • The code above can be pasted into your page and edited.
  • The minor attribute can be left out and it will not be displayed.
  • suppress=true can be added to suppress old version categorization.
  • Category:Old_Version is added conditionally.

ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.


Example Source

{{Version <!-- Do not change the version until the entire page is up-to-date -->
|release=0|major=6}}