Difference between revisions of "Template:Version/doc"

From Captain of Industry Wiki
Jump to: navigation, search
m (typo)
(add extra sample output, clarification)
 
Line 1: Line 1:
;Description
;Description
:This template allows for easier and more compact linking of patch note pages. It also auto-categorizes pages that use it into the following categories:
: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 the current version]]
::• [[:Category:Citations to previous versions]]
::• [[:Category:Citations to previous versions]]
Line 13: Line 13:
;Sample Output
;Sample Output
:{{t|version|2=ver=Beta 0.3.10}} --> {{version|ver=Beta 0.3.10}}
:{{t|version|2=ver=Beta 0.3.10}} --> {{version|ver=Beta 0.3.10}}
:{{t|version|2=ver=Alpha 0.2.6}} --> {{version|ver=Alpha 0.2.6}}
:{{t|version|2=ver=Alpha 0.2.6|3=nodate=yes}} --> {{version|ver=Alpha 0.2.6|nodate=yes}}
:{{t|version|2=ver=Alpha 0.2.6|3=nodate=yes}} --> {{version|ver=Alpha 0.2.6|nodate=yes}}
<includeonly>[[Category:Linking templates|{{PAGENAME}}]]</includeonly><!--
<includeonly>[[Category:Linking templates|{{PAGENAME}}]]</includeonly><!--
--><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
--><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:08, 16 January 2022

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}} --> Beta 0.3.10 (2022-01-15)
{{version|ver=Alpha 0.2.6}} --> Alpha 0.2.6 (2021-09-27)
{{version|ver=Alpha 0.2.6|nodate=yes}} --> Alpha 0.2.6