Template:V/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


==Syntax==
==Syntax==
<code><nowiki>{{v|<version>}}</nowiki></code>
<code><nowiki>{{v|<version>|numonly/nameonly}}</nowiki></code>


==Examples==
==Examples==
<code><nowiki>{{v}}</nowiki></code> produces: {{v}}
<code><nowiki>{{v}}</nowiki></code> produces: {{v}}
<code><nowiki>{{v|0.10.0.0}}</nowiki></code> produces: {{v|0.10.0.0}}


<code><nowiki>{{v|0.10.5.0}}</nowiki></code> produces: {{v|0.10.5.0}}
<code><nowiki>{{v|0.10.5.0}}</nowiki></code> produces: {{v|0.10.5.0}}


<code><nowiki>{{v|0.10.5.0|short=yes}}</nowiki></code> produces: {{v|0.10.5.0|short=yes}}
<code><nowiki>{{v|0.10.5.0|numonly}}</nowiki></code> produces: {{v|0.10.5.0|numonly}}
 
<code><nowiki>{{v|0.10.5.0|nameonly}}</nowiki></code> produces: {{v|0.10.5.0|nameonly}}
{{doc/end}}
{{doc/end}}

Latest revision as of 14:42, 17 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: 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

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.