Difference between revisions of "Template:Check version"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{{1}}}{{{1}}}</includeonly><noinclude>Adds the page to the Category:Check version to check in a future version if this feature/bu...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{{1}}}[[Category:Check version|{{{1}}}]]</includeonly><noinclude>Adds the page to the [[:Category:Check version]] to check in a future version if this feature/bug is still missing/existing. Has the version number as the parameter.
+
<includeonly>{{{1}}}{{#ifexpr: {{Check version/Rev|{{#if: {{{1}}}|{{{1}}}|{{{2}}}}}}} {{#switch: {{{d|p}}}|f=<=|p=<}} {{Check version/Rev}}|<sup>[''[[:Category:Check version/{{#if: {{{1}}}|{{{1}}}|{{{2}}}}}|outdated]]'']</sup>[[Category:Unchecked version]]}}[[Category:Check version/{{Check version/ver|{{Check version/Rev|{{#if: {{{1}}}|{{{1}}}|{{{2}}}}}}}}}]]</includeonly><noinclude>Adds the page to the [[:Category:Check version]] and ''Category:Check version/{{{1}}}'' to check in a future version if this feature/bug is still missing/existing. Either set the first or the second parameter. When the first parameter is set, it will also show the version number.
  
 +
* Show the version number in the text: {{tlx|Check version|''version number''}}
 +
* Hide the version number in the text: {{tlx|Check version|{{!}}''version number''}}
 +
 +
An optional parameter named <tt>''d''</tt> determines if this is a fact which references to the future, when set to <tt>''f''</tt>, (e.g. <code><nowiki>In version {{Check version|1.7.0.1|d=f}} the unicorn won't crash after 42 seconds</nowiki></code>) or the past/present, which is the default or when set to <tt>''p''</tt>, (e.g. <code><nowiki>Currently {{Check version||1.7.0.1|d=p}} the unicorn won't crash after 42 seconds</nowiki></code>).
 +
 +
Articles with outdated informations will be automatically added to [[:Category:Unchecked version]]. Every article gets categorised in [[:Category:Check version|Category:Check version/''version number'']]. When creating a new subcategory only add {{Tlx|Check version/Cat|''version number''}} to it.
 +
 +
This template shouldn't be used too often, because after every new version almost all entries need to be updated. For example in articles statements about themselves don't need to be marked with this template. It will most likely be updated anyway when someone tries to update that article, because it was modified in an update.
 +
 +
[[Category:Categorising templates]]
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:27, 12 March 2015

Adds the page to the Category:Check version and Category:Check version/{{{1}}} to check in a future version if this feature/bug is still missing/existing. Either set the first or the second parameter. When the first parameter is set, it will also show the version number.

  • Show the version number in the text: {{Check version|version number}}
  • Hide the version number in the text: {{Check version||version number}}

An optional parameter named d determines if this is a fact which references to the future, when set to f, (e.g. In version {{Check version|1.7.0.1|d=f}} the unicorn won't crash after 42 seconds) or the past/present, which is the default or when set to p, (e.g. Currently {{Check version||1.7.0.1|d=p}} the unicorn won't crash after 42 seconds).

Articles with outdated informations will be automatically added to Category:Unchecked version. Every article gets categorised in Category:Check version/version number. When creating a new subcategory only add {{Check version/Cat|version number}} to it.

This template shouldn't be used too often, because after every new version almost all entries need to be updated. For example in articles statements about themselves don't need to be marked with this template. It will most likely be updated anyway when someone tries to update that article, because it was modified in an update.