Template:Version/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(added "spoiler" to the syntax, as well as another example to show what happens if no version was inputted, but another optional parameter was)
(moved the example because it was bothering me, as well as fixing it because I'm a moron and forgot to check if I actually put in the right thing lol)
Line 13: Line 13:
----
----
<code><nowiki>{{Version|0.10.0.0|Outdated images}}</nowiki></code> gives: {{Version|0.10.0.0|Outdated Images}} {{clr}}
<code><nowiki>{{Version|0.10.0.0|Outdated images}}</nowiki></code> gives: {{Version|0.10.0.0|Outdated Images}} {{clr}}
----
<code><nowiki>{{Version|spoiler=yes}}</nowiki></code> gives: {{Version|spoiler=yes}} {{clr}}
----
----
<code><nowiki>{{Version|</nowiki>{{Current_version}}<nowiki>|Partially outdated images}}</nowiki></code> gives: {{Version|{{Current_version}}|Partially outdated images}} {{clr}}
<code><nowiki>{{Version|</nowiki>{{Current_version}}<nowiki>|Partially outdated images}}</nowiki></code> gives: {{Version|{{Current_version}}|Partially outdated images}} {{clr}}
Line 19: Line 21:
----
----
<code><nowiki>{{Version|0.8.2.3}}</nowiki></code> gives: {{Version|0.8.2.3}} {{clr}}
<code><nowiki>{{Version|0.8.2.3}}</nowiki></code> gives: {{Version|0.8.2.3}} {{clr}}
----
<code><nowiki>{{Version|spoiler=yes}}</nowiki></code> gives: {{Version|}} {{clr}}
----
----
<code><nowiki>{{Version|0.8.2.3|spoiler=yes|spoilersection=Examples}}</nowiki></code> gives: {{Version|0.8.2.3|spoiler=yes|spoilersection=Examples}} {{clr}}
<code><nowiki>{{Version|0.8.2.3|spoiler=yes|spoilersection=Examples}}</nowiki></code> gives: {{Version|0.8.2.3|spoiler=yes|spoilersection=Examples}} {{clr}}
{{doc/end}}
{{doc/end}}

Revision as of 03:37, 22 June 2022

Documentation

This template is used to more easily keep track of article versions, as well as other flags. It should be placed at the very start of an article.

All parameters are optional.
If using delete, stub, cleanup, or spoiler, "yes" must be added after an "=" sign, otherwise it might be interpreted as an "anonymous parameter". See examples below.

Syntax

{{ Version | <version number> | <what is outdated?> | delete = yes | deletenote = <why should the page be deleted?> | stub = yes | stubnote = <what needs to be added?> | cleanup = yes | cleanupnote = <what needs to be improved?> | spoiler = yes | spoilersection = <what section has spoilers?> }}

Examples


{{Version}} gives:

Data is potentially outdated
Last updated for an unknown version
The current game version is 1.4.6.0

{{Version|0.10.0.0|Outdated images}} gives:

Data is potentially outdated
Last updated for version 0.10.0.0
The current game version is 1.4.6.0
Notes: Outdated Images

{{Version|spoiler=yes}} gives:

Data is potentially outdated
Last updated for an unknown version
The current game version is 1.4.6.0

{{Version|1.4.6.0|Partially outdated images}} gives:

Data is up-to-date
Last updated for version 1.4.6.0
The current game version is 1.4.6.0
Notes: Partially outdated images

{{Version|1.4.6.0|Outdated images|spoiler=yes}} gives:

Data is up-to-date
Last updated for version 1.4.6.0
The current game version is 1.4.6.0
Notes: Outdated images

{{Version|0.8.2.3}} gives:

This page is a Legacy article
Features described on this page are no longer in the game.

{{Version|0.8.2.3|spoiler=yes|spoilersection=Examples}} gives:

This page is a Legacy article
Features described on this page are no longer in the game.

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