Template:Version

This is an old revision of Template:Version, edited by Kai Burghardt at . The current revision is 145479.

how about this

{{#iferror: {{#expr: {{{3|-1}}} < 0}} | <strong class="error">[[Template: version]]: Second parameter missing or negative.</strong></strong> |}}{{#iferror: {{#expr: {{{3|0}}} > {{FPC FULLVERSION}}}} | <strong class="error">[[Template: version]]: Specified second version has not been released yet.</strong> |}}

<indicator name="version">
[[Special: PermaLink/{{{1}}}|<span title="FPC ≥ {{{2}}} ∧ ≤ {{{3}}}">
{{#if: {{#expr: {{{3}}} = {{FPC FULLVERSION}}}}
    | ✔
    | ✘
}}
]]
</indicator>

Documentation

This template is an attempt to give users, i. e. readers of this wiki, a clue, whether the information presented on a page is (still) up-to-date.

Use

  1. Determine the range of FPC versions the information presented is/was valid. The text may contain exemptions à la “… (introduced in version 42).”
  2. Place
{{version|{{subst:REVISIONID:{{{PAGENAME}}}|20301|30204}}

at the top (with adjusted version numbers of course).

  1. The first parameter is the (previous) revision number.
    1. The first parameter is the minimum version. It is an integer in the style of the FPC_fullVersion macro.
    2. The second parameter is the maximum version. It may not exceed the latest stable release number.

See Also