Template:IFDOs: Difference between revisions
Jump to navigation
Jump to search
Created template |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{legend|}}} | [[ifdo]]s: }}{{# | {{#if: {{{legend|}}} | [[ifdo]]s: }}{{#rreplace: {{{1|}}}|/(\d+)(\D+)?/|[[\1ifdo|\1]]\2}}<noinclude> | ||
{{documentation}} | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:58, 5 April 2025
This template takes a collection of numbers and creates links to individual ifdo pages from it.
Usage examples
- You type
{{IFDOs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
{{IFDOs|1 2 3 4 5 6 7 8 9 10 11}}
{{IFDOs|1 ifdo, 2 ifdo, up to 99 ifdo 00}}
- You get (rendered)
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
- 1 2 3 4 5 6 7 8 9 10 11
- 1 ifdo, 2 ifdo, up to 99 ifdo 00 - disputable if leading zeros should be removed
- To include a legend, type
{{IFDOs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
- So you get (rendered)