Difference between revisions of "Template:Infobox number/range"
Jump to navigation
Jump to search
imported>Pppery |
imported>Pppery |
||
| Line 1: | Line 1: | ||
<div style="text-align:center;font-size:smaller;white-space:nowrap;"> <!-- | <div style="text-align:center;font-size:smaller;white-space:nowrap;"> <!-- | ||
| − | --> {{#ifexpr:{{{1|-1}}} < 300 | {{for nowiki | + | --> {{#ifexpr:{{{1|-1}}} < 300 | {{for nowiki| |<nowiki>[[{{#expr: (floor({{{number}}} div {{{factor}}})) * {{{factor}}}+({{{1}}}*{{{factor}}} div 10)}} (number)|{{#switch:{{{1}}}|-1={{#ifexpr:(floor({{{number}}} div 10)) = 0|-1|←}}|10=→|#default={{#expr:(floor({{{number}}} div {{{factor}}})) * {{{factor}}}+({{{1}}}*{{{factor}}} div 10)}}}}]]</nowiki>|-1|0|1|2|3|4|5|6|7|8|9|10|number={{max|{{{1|-1}}}|0}}|factor={{#ifexpr:{{{1|-1}}} < 270|10|100}}}}}}</div><!-- |
--><div style="text-align:center;font-size:smaller;white-space:nowrap;"> <!-- | --><div style="text-align:center;font-size:smaller;white-space:nowrap;"> <!-- | ||
-->[[List of numbers]] — [[Integer]]s <!-- | -->[[List of numbers]] — [[Integer]]s <!-- | ||
Revision as of 21:31, 14 October 2018
This sub-template of Template:Infobox number puts a navbox type list in the number navbox so that one can easily go to nearby numbers.
Usage
Nobody should need to use this template by itself, it is part of Template:Infobox number.
It creates this part of the box:Examples
| 4: | 7: | 9: |
| 10: | 14: | 19: |
| 23: | 45: | 88: |
| 100: | 120: | 199: |
| 270: | 290: | 299: |
| 500: |
832: |
999: |
| 1000: |
1400: |
9999: |
| 10200: |
15999: |
99999: |
| 102000: |
159999: |
999999: |
| 1020000: |
1599999: |
9999999: |
See also
id:Templat:Angka/range mk:Шаблон:Number/range
| The above documentation is transcluded from Template:Infobox number/range/doc. (edit | history) 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. |