Difference between revisions of "Template:Version"

From Mystcraft
Jump to: navigation, search
m (1 revision: Importing the temp wikia wiki used for initial sketchwork)
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACE}}|DF2014|{{#ifexist: Category:Version {{{1}}}|[[Category:Version {{{1}}}]]<small><sup>[[:Category:Version {{{1}}}|v{{{1}}}]]</sup></small>|[[Category:Unknown version]]<small><sup>v{{{1}}}[[:Category:Unknown version|?????]]</sup></small>}}|<small><sup>v{{{1}}}</sup></small>}}</includeonly><noinclude>
+
<includeonly>{{#ifexist: :Category:Version {{{1}}}|<small><sup>[[:Category:Version {{{1}}}|v{{{1}}}]]</sup></small>|<small><sup>[[:Category:Unknown version|v{{{1}}}]]</sup></small>}}</includeonly><noinclude>
 
{{shortcut|Template:V}}
 
{{shortcut|Template:V}}
  
 
==Usage==
 
==Usage==
  
<pre><nowiki>Example.<small><sup>[[:Category:Version 0.10.15.16|v0.10.15.16]]</sup></small></nowiki></pre>
+
<pre><nowiki>Example.{{version|0.10.15.16}}</nowiki></pre>
  
 
gives
 
gives
  
  Example.<small><sup>[[:Category:Version 0.10.15.16|v0.10.15.16]]</sup></small>
+
  Example.{{#ifexist:Category:Version {{{1}}}|<small><sup>[[:Category:Version {{{1}}}|v{{{1}}}]]</sup></small>|<small><sup>[[:Category:Unknown version|v{{{1}}}]]</sup></small>}}
  
 
This template is intended for use when a statement is appropriate for a particular version (bug reports, functionality that is likely to undergo change). Place it after the final punctuation of the sentence or paragraph it refers to.  This also includes the page into a category for that version. Please double check that it links to the correct category.
 
This template is intended for use when a statement is appropriate for a particular version (bug reports, functionality that is likely to undergo change). Place it after the final punctuation of the sentence or paragraph it refers to.  This also includes the page into a category for that version. Please double check that it links to the correct category.

Revision as of 06:30, 29 July 2015

Shortcut:
Template:V

Usage

Example.{{version|0.10.15.16}}

gives

Example.v{{{1}}}

This template is intended for use when a statement is appropriate for a particular version (bug reports, functionality that is likely to undergo change). Place it after the final punctuation of the sentence or paragraph it refers to. This also includes the page into a category for that version. Please double check that it links to the correct category.

If tracking the version number is a hassle, you can use {{current}} to tag information you know is true for the current version. Make sure to subst it.

This template is modeled off of the equivalent from the Dwarf Fortress wiki.