Difference between revisions of "Template:Version"
From Captain of Industry Wiki
Thadius856 (talk | contribs) (Update to use variable from Template:patch2date, little better code handling, adding a date param for manual override which will remain purposely undocumented) |
Thadius856 (talk | contribs) (forgot to migrate the names in a few template calls) |
||
Line 5: | Line 5: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if: {{{ver|}}} | <!-- | -->{{#if: {{{ver|}}} | <!-- | ||
-->{{ | -->{{version2date|{{{ver}}}}}<!-- | ||
-->[[Patch notes/{{{ver}}}|{{{ver}}}]]<!-- | -->[[Patch notes/{{{ver}}}|{{{ver}}}]]<!-- | ||
-->{{#if: {{{nodate|}}} || <!-- | -->{{#if: {{{nodate|}}} || <!-- | ||
Line 16: | Line 16: | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if: {{ | -->{{#if: {{version2date|{{{ver|}}}}} |  ({{version2date|{{{ver|}}}}}) }}<!-- | ||
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 13:01, 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}} -->Template:Version2dateBeta 0.3.10 (Template:Version2date)
- {{version|ver=Alpha 0.2.6}} -->Template:Version2dateAlpha 0.2.6 (Template:Version2date)
- {{version|ver=Alpha 0.2.6|nodate=yes}} -->Template:Version2dateAlpha 0.2.6 (Template:Version2date)
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.)