Difference between revisions of "Template:Version"

From Captain of Industry Wiki
Jump to: navigation, search
(Creation)
 
(Add nodate param, fix a typo)
Line 6: Line 6:
-->{{#if: {{{ver|}}} | <!--
-->{{#if: {{{ver|}}} | <!--
   -->version [[Patch notes/{{{ver}}}{{!}}{{{ver|}}}]]<!--
   -->version [[Patch notes/{{{ver}}}{{!}}{{{ver|}}}]]<!--
   -->&nbsp;({{patch2date|{{{ver|1}}}}})<!--
   -->{{#if: {{{nodate|}}} || &nbsp;({{patch2date|{{{ver|}}}}}) }}<!--
-->}}</includeonly><!--
-->}}</includeonly><!--
--><noinclude>
--><noinclude>

Revision as of 12:32, 16 January 2022

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Description
This template allows for easier and more compact linking of patch note pages in inline text. It also auto-categorizes pages that use it into the following hidden categories:
Category:Citations to the current version
Category:Citations to previous versions
Dependencies
{{CurrentVersion}} set to the current version of the game
{{patch2date}} updated with the release date of each version of the game
Syntax
{{version|ver=version#|nodate=yes (optional)}}
Sample Output
{{version|ver=Beta 0.3.10}} -->version Beta 0.3.10 ()
{{version|ver=Alpha 0.2.6}} -->version Alpha 0.2.6 ()
{{version|ver=Alpha 0.2.6|nodate=yes}} -->version Alpha 0.2.6
The above text is transcluded from Template:Version/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Version/doc. (View all subpages of this page.)