{{#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
- Determine the range of FPC versions the information presented is/was valid. The text may contain exemptions à la “… (introduced in version 42).”
- Place
{{version|123456789|20301|30204}}
at the top (with adjusted version numbers of course).
- The first parameter is the (previous) revision number. You can retrieve it via the “Permanent Link” tool URL.
- The first parameter is the minimum version. It is an integer in the style of the
FPC_fullVersionmacro. - The second parameter is the maximum version. It may not exceed the latest stable release number.
- The first parameter is the minimum version. It is an integer in the style of the