Template:EDOs: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
Change regex rule for more complex wart notation |
||
| Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{legend|}}}|1=[[EDO]]s: |0=EDOs: }}{{#rreplace: {{{1|}}}|/(\d+)(\ | <includeonly>{{#switch: {{{legend|}}}|1=[[EDO]]s: |0=EDOs: }}{{#rreplace: {{{1|}}}|/(\d+)([\w\*†′″]*)/|[[\1edo|\1\2]]}}</includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 16:47, 13 October 2026
| This template should not be substituted. |
The EDOs template takes a collection of numbers and creates links to individual edo pages from it. Alphanumeric characters (e.g. edo) immediately after a number are included in the link, as well as asterisk (*), slash (/), dagger (†), prime (′) and double-prime (″) to help with fraction notation and extended wart notation.
Usage
- You type
{{EDOs| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}{{EDOs| 1 2 3 4 5 6 7 8 9 10 11 }}{{EDOs| 1edo, 2edo, up to 99edo }}
- You get (rendered)
- To include a legend, type
{{EDOs|legend=0| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}{{EDOs|legend=1| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
- So you get (rendered)
Technical notes
This template calls Extension: RegexFunctions to match the strings.