Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ver/doc: Difference between revisions

Template page
Content deleted Content added
Doc for Template:Ver
 
Update doc for three states
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
Stamps a page or content area with the game version it was written for, and flags it when the game moves on.
Stamps a page or content area with the game version it was written for, and flags it relative to the current '''stable''' release ([[Module:GameVersion]]).


== Usage ==
== States ==
Compared against the latest stable release ({{#invoke:GameVersion|stable}}):
Place right after a heading, or beside a specific value:
* '''Equal''' → green <span class="ver-ok">✓&nbsp;badge</span> — current.
<pre>{{Ver|0.8.1}}</pre>
* '''Newer''' → blue <span class="ver-beta">β&nbsp;badge</span> — beta / preview content; filed into [[:Category:Beta content]]. Flips to green automatically once that version becomes stable.
* '''Older''' → red <span class="ver-stale">⚠&nbsp;badge</span> outdated; filed into [[:Category:Content outdated as of {{#invoke:GameVersion|stable}}]].
* '''Missing''' → red <span class="ver-stale">⚠&nbsp;?</span> — filed into [[:Category:Content with unknown version]].


Comparison is true semver (numeric per segment), so <code>0.10.0</code> &gt; <code>0.9.0</code>.
* If the version matches the current game version ([[Module:GameVersion]]) → a green <span class="ver-ok">✓&nbsp;badge</span>.
* If it is anything else a red <span class="ver-stale">⚠&nbsp;badge</span> '''and''' the page is filed into [[:Category:Content outdated as of {{#invoke:GameVersion|current}}|Content outdated as of {{#invoke:GameVersion|current}}]].


== Usage ==
When [[Module:GameVersion]] is bumped on a new release, every stamp re-evaluates automatically — no manual sweep. Watch the tracking category for the review queue.
<pre>{{Ver|0.8.0}}</pre>

Place right after a heading, beside a specific value, or wire a <code>version</code> field into an infobox.
== Where to place ==
* '''Whole page''': one stamp near the top, or wire a <code>version</code> field into the infobox.
* '''Section / value''': inline next to the figure that depends on game data (reward formulas, spawn budgets, prices).


== Parameters ==
== Parameters ==
; <code>{{{1}}}</code>
; <code>{{{1}}}</code>
: The game version the content was authored/verified for, e.g. <code>0.8.1</code>. Omitting it renders a <code>?</code> and flags the page as outdated.
: The game version the content was authored/verified for, e.g. <code>0.8.0</code>.


== See also ==
== See also ==
* [[Module:GameVersion]] — the single source of truth for the current version.
* [[Module:GameVersion]] — single source of truth for stable + beta versions.
<includeonly>[[Category:Maintenance templates]]</includeonly>
<includeonly>[[Category:Maintenance templates]]</includeonly>

Latest revision as of 22:26, 2 June 2026

Template:Documentation subpage Stamps a page or content area with the game version it was written for, and flags it relative to the current stable release (Module:GameVersion).

States

Compared against the latest stable release (0.8.0):

Comparison is true semver (numeric per segment), so 0.10.0 > 0.9.0.

Usage

{{Ver|0.8.0}}

Place right after a heading, beside a specific value, or wire a version field into an infobox.

Parameters

{{{1}}}
The game version the content was authored/verified for, e.g. 0.8.0.

See also