Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Template:R"
(new) |
(finalized) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude>__NOTOC__ | ||
==Purpose== | ==Purpose== | ||
− | + | Template '''R''' to display a standardized '''r'''ange given. | |
− | == | + | ==Parameters== |
− | + | *1st: character to choose the range parameter name like 'n' (for {{Vn}}-range), 'k' (for {{Vk}}-range) or any other character/word | |
− | * | + | *2nd: start of range as number (including this number) |
− | + | *3rd: end of range as number (including this number) | |
− | * | ||
− | |||
+ | ==Notes== | ||
+ | *If 'start' and 'end' are equal the output is given as: '''<1st param.> = <start>'''. | ||
+ | *All three parameters have to be given, there's no errorhandling. | ||
+ | *For most used ranges there're shorter templates for {{Vn}}- and {{Vk}}-ranges, see [[Template:Rn]] and [[Template:Rk]]. | ||
− | + | ==Examples== | |
− | *<nowiki>{{ | + | *<nowiki>{{R|n|1|1000}}</nowiki> gives {{R|n|1|1000}} |
− | *<nowiki>{{ | + | *<nowiki>{{R|k|1000|1000}}</nowiki> gives {{R|k|1000|1000}} |
− | + | *<nowiki>{{R|Z|1|1}}</nowiki> gives {{R|Z|1|1}} | |
− | + | *<nowiki>{{R|base|101|199}}</nowiki> gives {{R|base|101|199}} | |
− | + | [[Category:Templates]]</noinclude><includeonly>{{#ifeq:{{{2}}}|{{{3}}}|'''{{V|{{{1}}}}} = {{{2}}}'''|'''{{V|{{{1}}}}} = {{{2}}} - {{{3}}}'''}}</includeonly> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:15, 31 July 2024
Purpose
Template R to display a standardized range given.
Parameters
- 1st: character to choose the range parameter name like 'n' (for n-range), 'k' (for k-range) or any other character/word
- 2nd: start of range as number (including this number)
- 3rd: end of range as number (including this number)
Notes
- If 'start' and 'end' are equal the output is given as: <1st param.> = <start>.
- All three parameters have to be given, there's no errorhandling.
- For most used ranges there're shorter templates for n- and k-ranges, see Template:Rn and Template:Rk.
Examples
- {{R|n|1|1000}} gives n = 1 - 1000
- {{R|k|1000|1000}} gives k = 1000
- {{R|Z|1|1}} gives Z = 1
- {{R|base|101|199}} gives base = 101 - 199