Difference between revisions of "Template:Addon Version/doc"
From TerraFirmaCraft Plus Wiki
(Created page with "This template makes a table row which background is set according to whether the version is equal to the current version (which is set in Template:Version). == Example ==...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This template makes a table row which background is set according to whether the version is equal to the current version (which is set in [[Template:Version]]). | This template makes a table row which background is set according to whether the version is equal to the current version (which is set in [[Template:Version]]). | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Parameter | ||
+ | ! Meaning | ||
+ | |- | ||
+ | | 1 || A version number (e.g. 0.85.2). Defaults to "?" | ||
+ | |- | ||
+ | | 2 || "incompatible" if this addon is incompatible with the current version. | ||
+ | |} | ||
== Example == | == Example == | ||
{| class="wikitable" | {| class="wikitable" | ||
+ | ! Code | ||
+ | ! Result | ||
+ | |- | ||
+ | | <code><nowiki>{{Addon Version|{{Version}}}}</nowiki></code> | ||
| {{Addon Version|{{Version}}}} | | {{Addon Version|{{Version}}}} | ||
|- | |- | ||
− | | {{Addon Version|0.83.0}} | + | | <code><nowiki>{{Addon Version|0.85.2}}</nowiki></code> |
+ | | {{Addon Version|0.85.2|compatible}} | ||
+ | |- | ||
+ | | <code><nowiki>{{Addon Version|0.83.0|incompatible}}</nowiki></code> | ||
+ | | {{Addon Version|0.83.0|incompatible}} | ||
|} | |} |
Latest revision as of 22:29, 11 August 2021
This template makes a table row which background is set according to whether the version is equal to the current version (which is set in Template:Version).
Parameter | Meaning |
---|---|
1 | A version number (e.g. 0.85.2). Defaults to "?" |
2 | "incompatible" if this addon is incompatible with the current version. |
Example
Code | Result |
---|---|
{{Addon Version|{{Version}}}}
|
0.89.1 |
{{Addon Version|0.85.2}}
|
0.85.2 |
{{Addon Version|0.83.0|incompatible}}
|
0.83.0 |