Template:Addon Version/doc: Difference between revisions

change the syntax a bit
No edit summary
 
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 ==
Line 9: Line 18:
| {{Addon Version|{{Version}}}}
| {{Addon Version|{{Version}}}}
|-
|-
| <code><nowiki>{{Addon Version|0.85.2|compatible}}</nowiki></code>
| <code><nowiki>{{Addon Version|0.85.2}}</nowiki></code>
| {{Addon Version|0.85.2|compatible}}
| {{Addon Version|0.85.2|compatible}}
|-
|-
| <code><nowiki>{{Addon Version|0.83.0}}</nowiki></code>
| <code><nowiki>{{Addon Version|0.83.0|incompatible}}</nowiki></code>
| {{Addon Version|0.83.0}}
| {{Addon Version|0.83.0|incompatible}}
|}
|}