Template:V: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{doc}}[[Category:Templates]]
{{doc}}[[Category:Templates]]
<includeonly>
<includeonly><onlyinclude>[[Version history/Alpha{{#if:{{{1|}}}|#{{{1|}}} {{Version Name|{{{1|}}}}}{{!}}{{{1|}}}{{#if:{{{short|}}}||&nbsp;{{Version Name|{{{1|}}}}}}}|{{!}}unknown version}}]]</onlyinclude></includeonly>
<onlyinclude>{{#if:{{{1|}}}|[[Version history/Alpha#{{{1|}}} {{Version Name|{{{1|}}}}}{{!}}{{{1|}}}{{#if:{{{short|}}}||&nbsp;{{Version Name|{{{1|}}}}}}}]]|an [[Version history/Alpha{{!}}unknown version]]}}</onlyinclude>
</includeonly>

Revision as of 19:18, 16 June 2022

Documentation

This template is a shorthand to display a version number/name linking to the appropriate changelog on Version history/Alpha, for use in Changelog sections of pages for example.

Syntax

{{v|<version>|numonly/nameonly}}

Examples

{{v}} produces: unknown version

{{v|0.10.0.0}} produces: [[Version history/Alpha

  1. 0.10.0.0 |0.10.0.0 ]]

{{v|0.10.5.0}} produces: [[Version history/Alpha

  1. 0.10.5.0 Downtime Update|0.10.5.0 Downtime Update]]

{{v|0.10.5.0|numonly}} produces: [[Version history/Alpha

  1. 0.10.5.0 Downtime Update|0.10.5.0 Downtime Update]]

{{v|0.10.5.0|nameonly}} produces: [[Version history/Alpha

  1. 0.10.5.0 Downtime Update|0.10.5.0 Downtime Update]]