Template:V: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude>
{{doc}}[[Category:Templates]]
<includeonly>{{#if:{{{1|}}}|[[Version history/Alpha#{{{1}}}{{!}}{{{1}}}]]|[[Version history/Alpha{{!}}Unknown version]]}}</includeonly>
<includeonly><onlyinclude>[[Version History#{{#if:{{{1|}}}|{{{1}}} {{#if:{{Version Name|{{{1}}}}}|({{Version Name|{{{1}}}}})}}{{!}}{{#ifeq:{{{2}}}|nameonly||{{{1}}}}}{{#ifeq:{{{2}}}|numonly||{{#if:{{Version Name|{{{1}}}}}|{{#ifeq:{{{2}}}|nameonly||&nbsp;(}}{{Version Name|{{{1}}}}}{{#ifeq:{{{2}}}|nameonly||)}}}}}}|{{!}}unknown version}}]]</onlyinclude></includeonly>

Latest revision as of 19:59, 7 March 2023

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: 0.10.0.0

{{v|0.10.5.0}} produces: 0.10.5.0 (Downtime Update)

{{v|0.10.5.0|numonly}} produces: 0.10.5.0

{{v|0.10.5.0|nameonly}} produces: Downtime Update