Difference between revisions of "Template:Check version"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
m (+logic to mark unchecked articles;)
Line 1: Line 1:
<includeonly>{{{1}}}[[Category:Check version]][[Category:Check version/{{#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.
+
<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/{{#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''}}
 
* Show the version number in the text: {{tlx|Check version|''version number''}}
 
* Hide the version number in the text: {{tlx|Check version|{{!}}''version number''}}
 
* Hide the version number in the text: {{tlx|Check version|{{!}}''version number''}}
  
When creating a new subcategory only add {{Tl|Check version/Cat}} to it.
+
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.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 23:08, 18 September 2013

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.