Difference between revisions of "Template:Version"
From Captain of Industry Wiki
Thadius856 (talk | contribs) (Undo revision 1445 by Thadius856 (talk)) Tag: Undo |
Thadius856 (talk | contribs) (whitespace fix... hacky, but it should work) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#ifeq: {{{ver|}}} | {{CurrentVersion|{{{ver|}}}}} |<!-- | -->{{#if: {{NAMESPACE}} || <!-- | ||
-->{{#ifeq: {{{ver|}}} | {{CurrentVersion|{{{ver|}}}}} |<!-- | |||
-->[[Category:Citations to the current version]] |<!-- | |||
-->[[Category:Citations to previous versions]]<!-- | |||
-->}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->{{#if: {{{ver|}}} | <!-- | -->{{#if: {{{ver|}}} | <!-- | ||
-->{{patch2date|{{{ver}}}}}<!-- | -->{{patch2date|{{{ver}}}}}<!-- | ||
-->[[Patch notes/{{{ver}}}|{{{ver}}}]]<!-- | --> [[Patch notes/{{{ver}}}|{{{ver}}}]]<!-- | ||
-->{{#if: {{{nodate|}}} || <!-- | -->{{#if: {{{nodate|}}} || <!-- | ||
-->{{#if: {{#var:patch_date}} | <!-- | -->{{#if: {{#var:patch_date}} | <!-- |
Latest revision as of 13:24, 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:
- 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
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.)
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.)