Difference between revisions of "User:Trang Oul/Sandbox/Template:Range"
< User:Trang Oul | Sandbox
Jump to navigation
Jump to search
| Line 31: | Line 31: | ||
* -0 s: {{User:Trang Oul/Sandbox/Template:Range||-1|0|signed=1}} | * -0 s: {{User:Trang Oul/Sandbox/Template:Range||-1|0|signed=1}} | ||
* -- s {{User:Trang Oul/Sandbox/Template:Range||-2|-1|signed=1}} | * -- s {{User:Trang Oul/Sandbox/Template:Range||-2|-1|signed=1}} | ||
| − | </noinclude><includeonly>{{# | + | </noinclude><includeonly>{{#if: {{{1|}}} |
| {{#ifexpr: {{{signed|0}}} | | {{#ifexpr: {{{signed|0}}} | ||
| {{User:Trang Oul/Sandbox/Template:Signed number|{{{1}}}|signed=1}} | | {{User:Trang Oul/Sandbox/Template:Signed number|{{{1}}}|signed=1}} | ||
| {{{1}}} | | {{{1}}} | ||
}} | }} | ||
| − | | {{#ifexpr: {{{2}}} = {{{3}}} | + | | {{#ifexpr: {{{2}}} == {{{3}}} |
| {{#ifexpr: {{{signed|0}}} | | {{#ifexpr: {{{signed|0}}} | ||
| {{User:Trang Oul/Sandbox/Template:Signed number|{{{2}}}|signed=1}} | | {{User:Trang Oul/Sandbox/Template:Signed number|{{{2}}}|signed=1}} | ||
Revision as of 15:37, 3 November 2026
Usage: {{Range|[value]|[min]|[max]|[signed=0]}}
Examples:
value param:
- + us: 1
- 0 us: 0
- us: -1
min and max params, equal:
- + us: Expression error: Unexpected = operator.
- 0 us: Expression error: Unexpected = operator.
- us: Expression error: Unexpected = operator.
- + s: Expression error: Unexpected = operator.
- 0 s: Expression error: Unexpected = operator.
- s: Expression error: Unexpected = operator.
- ++ us: Expression error: Unexpected = operator.
- 0+ us: Expression error: Unexpected = operator.
- -+ us: -1
- -0 us: Expression error: Unexpected = operator.
- -- us Expression error: Unexpected = operator.
- ++ s: Expression error: Unexpected = operator.
- 0+ s: Expression error: Unexpected = operator.
- -+ s: Expression error: Unexpected = operator.
- -0 s: Expression error: Unexpected = operator.
- -- s Expression error: Unexpected = operator.