Template:Version: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#switch: {{{release}}} | 0 = <!--
{{#switch: {{{release}}} | 0 = <!--
--><!--good release-->{{#switch: {{{major}}} | 6 = <!--current-->{{#if: {{{minor|}}} | <!--minor exists--> {{Version/Current|{{{release}}}|{{{major}}}|{{{minor}}} }}| <!--minor doesn't exist-->{{Version/Current|{{{release}}}|{{{major}}} }} }}|<!--not current-->{{#if: {{{minor|}}} | <!--minor exists--> {{Version/Old|{{{release}}}|{{{major}}}|{{{minor}}} }}| <!--minor doesn't exist-->{{Version/Old|{{{release}}}|{{{major}}} }} }} }}<!--
--><!--good release-->{{#switch: {{{major}}} | 6 = <!--current-->{{#if: {{{minor|}}} | <!--minor exists--> {{Version/Current|{{{release}}}|{{{major}}}|{{{minor}}}|{{{suppress}}} }}| <!--minor doesn't exist-->{{Version/Current|{{{release}}}|{{{major}}}||{{{suppress}}} }} }}|<!--not current-->{{#if: {{{minor|}}} | <!--minor exists--> {{Version/Old|{{{release}}}|{{{major}}}|{{{minor}}}|{{{suppress}}} }}| <!--minor doesn't exist-->{{Version/Old|{{{release}}}|{{{major}}}||{{{suppress}}} }} }} }}<!--
-->|<!--bad release-->{{#if: {{{minor|}}} | <!--minor exists--> {{Version/Old|{{{release}}}|{{{major}}}|{{{minor}}} }}| <!--minor doesn't exist-->{{Version/Old|{{{release}}}|{{{major}}} }} }}
-->|<!--bad release-->{{#if: {{{minor|}}} | <!--minor exists--> {{Version/Old|{{{release}}}|{{{major}}}|{{{minor}}}|{{{suppress}}} }}| <!--minor doesn't exist-->{{Version/Old|{{{release}}}|{{{major}}} }} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
<!---->
<!---->
Line 17: Line 17:
*The ''minor'' attribute can be left out and it will not be displayed.
*The ''minor'' attribute can be left out and it will not be displayed.
*[[:Category:Old_Version]] is added conditionally.
*[[:Category:Old_Version]] is added conditionally.
*An optional parameter called suppress can be given any value to suppress the old page category tag.


==Example Source==
==Example Source==
<pre>{{Version <!-- Do not change the version until the entire page is up-to-date -->
<pre>{{Version <!-- Do not change the version until the entire page is up-to-date -->
|release=0|major=6|minor=X}}</pre>
|release=0|major=6|minor=X}}</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 17:48, 27 December 2017

Example

Version: 0.6

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.
  • Category:Old_Version is added conditionally.
  • An optional parameter called suppress can be given any value to suppress the old page category tag.

Example Source

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