Template:EDs/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
Update
Line 1: Line 1:
{{Dochead}}{{substitute|no|}}
{{Dochead}}{{substitute|no|}}
This template takes a collection of numbers and an [[equave]] to create links to individual [[equal division]] pages from it.  
The '''EDs''' template takes a collection of numbers and an [[equave]] to create links to individual [[equal division]] pages from it. Alphanumeric characters (e.g. <code>ed5</code>) immediately after a number are included in the link, as well as asterisk (<code>*</code>), dagger (<code>†</code>), prime (<code>′</code>) and double-prime (<code>″</code>) to help with extended [[wart notation]].  


: '''Note:''' For [[edo]]s, [[edt]]s, and [[edf]]s, use [[Template: EDOs]], [[Template: EDTs]], and [[Template: EDFs]], respectively.  
{{Note| For [[edo]]s, [[edt]]s, and [[edf]]s, use [[Template: EDOs]], [[Template: EDTs]], and [[Template: EDFs]], respectively. }}


=== Usage examples ===
=== Usage examples ===
Line 8: Line 8:
* <code><nowiki>{{EDs|equave=5| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code>
* <code><nowiki>{{EDs|equave=5| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code>
* <code><nowiki>{{EDs|equave=5| 1 2 3 4 5 6 7 8 9 10 11 }}</nowiki></code>
* <code><nowiki>{{EDs|equave=5| 1 2 3 4 5 6 7 8 9 10 11 }}</nowiki></code>
* <code><nowiki>{{EDs|equave=5| 1, 3 and 12, but notably not 7 }}</nowiki></code>
* <code><nowiki>{{EDs|equave=5| 1ed5, 2ed5, up to 99ed5 }}</nowiki></code>


; You get (rendered):
; You get (rendered):
* {{EDs|equave=5| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
* {{EDs|equave=5| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
* {{EDs|equave=5| 1 2 3 4 5 6 7 8 9 10 11 }}
* {{EDs|equave=5| 1 2 3 4 5 6 7 8 9 10 11 }}
* {{EDs|equave=5| 1, 3 and 12, but notably not 7 }}
* {{EDs|equave=5| 1ed5, 2ed5, up to 99ed5 }}


; To include a legend, type:
; To include a legend, type:
Line 24: Line 24:


=== Technical notes ===
=== Technical notes ===
* [[Mw: Extension: RegexFunctions|Extension: RegexFunctions]]
This template calls [[mw: Extension: RegexFunctions|Extension: RegexFunctions]] to match the strings.


=== See also ===
=== See also ===

Revision as of 17:31, 13 October 2026

This template should not be substituted.

The EDs template takes a collection of numbers and an equave to create links to individual equal division pages from it. Alphanumeric characters (e.g. ed5) immediately after a number are included in the link, as well as asterisk (*), dagger (†), prime (′) and double-prime (″) to help with extended wart notation.

📝Note: For edos, edts, and edfs, use Template: EDOs, Template: EDTs, and Template: EDFs, respectively.

Usage examples

You type
  • {{EDs|equave=5| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
  • {{EDs|equave=5| 1 2 3 4 5 6 7 8 9 10 11 }}
  • {{EDs|equave=5| 1ed5, 2ed5, up to 99ed5 }}
You get (rendered)
To include a legend, type
  • {{EDs|equave=5|legend=0| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
  • {{EDs|equave=5|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.

See also