Difference between revisions of "Template:Number table sorting"
Jump to navigation
Jump to search
test>MSGJ (add format=no option per request of User:OwenBlacker) |
test>MSGJ (rewrite by Droll to fix sorting of negative numbers) |
||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}} | {{#if:{{{1|}}} | ||
| − | |<span style="{{#ifeq:{{{debug|}}}|yes|border:1px solid|display:none}}"> | + | |<span style="{{#ifeq:{{{debug|}}}|yes |
| − | + | |border:1px solid | |
| − | + | |display:none | |
| − | + | }}">{{Number table sorting/{{#ifexpr:{{formatnum:{{{1}}}|R}}<0 | |
| + | |negative | ||
| + | |positive | ||
| + | }} | ||
| + | |1={{#expr:abs {{formatnum:{{{1}}}|R}}}} | ||
| + | }}</span>{{{prefix|}}}{{#ifeq:{{{quiet|}}}|yes | ||
| + | |<!--Null--> | ||
| + | |{{#ifeq:{{{format}}}|no | ||
| + | |{{{1}}} | ||
| + | |{{formatnum:{{{1}}}}} | ||
| + | }} | ||
| + | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add cats and interwikis to the /doc subpage, not here! --> | <!-- Add cats and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Revision as of 08:57, 31 August 2011
File:Test Template Info-Icon - Version (2).svg Template documentation[create]
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |