Template:Ver/doc: Difference between revisions
Template page
More actions
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 |
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 ({{#invoke:GameVersion|stable}}): |
|||
| ⚫ | |||
* '''Equal''' → green <span class="ver-ok">✓ badge</span> — current. |
|||
| ⚫ | |||
* '''Newer''' → blue <span class="ver-beta">β badge</span> — beta / preview content; filed into [[:Category:Beta content]]. Flips to green automatically once that version becomes stable. |
|||
| ⚫ | |||
* '''Missing''' → red <span class="ver-stale">⚠ ?</span> — filed into [[:Category:Content with unknown version]]. |
|||
Comparison is true semver (numeric per segment), so <code>0.10.0</code> > <code>0.9.0</code>. |
|||
* If the version matches the current game version ([[Module:GameVersion]]) → a green <span class="ver-ok">✓ badge</span>. |
|||
| ⚫ | |||
== 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. |
|||
| ⚫ | |||
| ⚫ | |||
== 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. |
: The game version the content was authored/verified for, e.g. <code>0.8.0</code>. |
||
== See also == |
== See also == |
||
* [[Module:GameVersion]] — |
* [[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):
- Equal → green ✓ badge — current.
- Newer → blue β badge — beta / preview content; filed into Category:Beta content. Flips to green automatically once that version becomes stable.
- Older → red ⚠ badge — outdated; filed into Category:Content outdated as of 0.8.0.
- Missing → red ⚠ ? — filed into Category:Content with unknown version.
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
- Module:GameVersion — single source of truth for stable + beta versions.