Template:Unlock

From railML 2 Wiki
Revision as of 10:22, 26 March 2018 by RailML Coord Documentation (talk | contribs) (Created page with "<includeonly>{{#ifeq:{{{1}}}|{{current}}||{{{2}}}}}</includeonly><noinclude> ==Usage== This template hides content under the given version. If the current version, as visible...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template hides content under the given version. If the current version, as visible from template:current, becomes different from argument 1, then the text in argument 2 becomes visible. The template is intended to prepare content for upcoming versions.

Alternatively, use template:future to mark visible content as refering to upcoming versions.

Arguments

1: a version. If it is identical to {{current}} (currently 2.5), then the text in 2 is hidden 2: a text

dependencies

The template depends on template:current.

Examples

{{unlock|2.3|This text is hidden under version 2.3}}

delivers nothing under version 2.3. Under version 2.4 it will become visible

This text is hidden under version 2.3

{{unlock|2.2|This text is visible since version 2.3}}

delivers

This text is visible since version 2.3