Difference between revisions of "Template:Version"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Prefix the header part of the link with "v".)
(Changed the use of the second argument and provided another example.)
Line 1: Line 1:
[[Version History#v{{{1}}}|{{{2|version {{{1}}}}}}]]<noinclude>
+
[[Version History#v{{{1}}}|{{{2|version }}}{{{1}}}]]<noinclude>
  
 
== Template ==
 
== Template ==
<pre><nowiki>{{version|0.17}}</nowiki></pre>
+
{| class="wikitable"
<pre><nowiki>{{version|0.17|link text here}}</nowiki></pre>
+
|-
 +
! Usage || Produces
 +
|-
 +
| <pre><nowiki>{{version|0.17}}</nowiki></pre> || {{version|0.17}}
 +
|-
 +
| <pre><nowiki>{{version|0.17|}}</nowiki></pre> || {{version|0.17|}}
 +
|-
 +
| <pre><nowiki>{{version|0.17|prefix text here}}</nowiki></pre> || {{version|0.17|prefix text here}}
 +
|}
  
In the first example, the link text will be "version 0.17".
 
 
</noinclude>
 
</noinclude>

Revision as of 17:21, 28 September 2012

[[Version History#v{{{1}}}|version {{{1}}}]]

Template

Usage Produces
{{version|0.17}}
version 0.17
{{version|0.17|}}
0.17
{{version|0.17|prefix text here}}
prefix text here 0.17