Difference between revisions of "User:Trang Oul/Sandbox/Template:Property/Signed"
< User:Trang Oul | Sandbox | Template:Property
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#ifexpr: {{{1}}} >= 0 | {{{3}}} | {{#ifexpr: {{{2}}} <= 0 | {{{4}}} | {{{5}}} }} }}</includeonly>") |
|||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#ifexpr: {{{1}}} >= 0 | + | <noinclude> |
| + | === Usage === | ||
| + | <code><nowiki>{{Property/Signed|value1|value2|label_if_positive|label_if_negative|label_if_mixed}}</nowiki></code> | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | <code><nowiki>{{Property/Signed|1|2|+|-|±}}</nowiki></code> → {{User:Trang Oul/Sandbox/Template:Property/Signed|1|2|+|-|±}} | ||
| + | |||
| + | <code><nowiki>{{Property/Signed|0|2|+|-|±}}</nowiki></code> → {{User:Trang Oul/Sandbox/Template:Property/Signed|0|2|+|-|±}} | ||
| + | |||
| + | <code><nowiki>{{Property/Signed|-2|-1|+|-|±}}</nowiki></code> → {{User:Trang Oul/Sandbox/Template:Property/Signed|-2|-1|+|-|±}} | ||
| + | |||
| + | <code><nowiki>{{Property/Signed|-2|0|+|-|±}}</nowiki></code> → {{User:Trang Oul/Sandbox/Template:Property/Signed|-2|0|+|-|±}} | ||
| + | |||
| + | <code><nowiki>{{Property/Signed|-2|1|+|-|±}}</nowiki></code> → {{User:Trang Oul/Sandbox/Template:Property/Signed|-2|1|+|-|±}} | ||
| + | |||
| + | </noinclude><includeonly>{{#ifexpr: {{{1}}} >= 0 | ||
| {{{3}}} | | {{{3}}} | ||
| {{#ifexpr: {{{2}}} <= 0 | | {{#ifexpr: {{{2}}} <= 0 | ||
Revision as of 23:09, 3 November 2026
Usage
{{Property/Signed|value1|value2|label_if_positive|label_if_negative|label_if_mixed}}
Examples
{{Property/Signed|1|2|+|-|±}} → +
{{Property/Signed|0|2|+|-|±}} → +
{{Property/Signed|-2|-1|+|-|±}} → -
{{Property/Signed|-2|0|+|-|±}} → -
{{Property/Signed|-2|1|+|-|±}} → ±