Difference between revisions of "Template:Version/doc"

From Captain of Industry Wiki
Jump to: navigation, search
(Creation)
 
(add extra sample output, clarification)
 
(One intermediate revision by the same user not shown)
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 6: Line 6:
;Dependencies
;Dependencies
:{{tl|CurrentVersion}} set to the current version of the game
:{{tl|CurrentVersion}} set to the current version of the game
:{{tl|version2date}} updated with the release date of each version of the game
:{{tl|patch2date}} updated with the release date of each version of the game


;Syntax
;Syntax
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