Template:V/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Created page with "{{doc/start}} This template is a shorthand to display a version number linking to the appropriate changelog on Version history/Alpha, for use in Changelog sections of page...")
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
This template is a shorthand to display a version number linking to the appropriate changelog on [[Version history/Alpha]], for use in Changelog sections of pages for example.
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==
==Syntax==
<nowiki>{{v|<version>}}</nowiki>
<code><nowiki>{{v|<version>|numonly/nameonly}}</nowiki></code>
==Example==
 
<nowiki>{{v|0.10.5.0}}</nowiki> produces: {{v|0.10.5.0}}
==Examples==
<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|numonly}}</nowiki></code> produces: {{v|0.10.5.0|numonly}}


<nowiki>{{v}}</nowiki> produces: {{v}}
<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.