Template:EDFs: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
BudjarnLambeth (talk | contribs)
Created template
 
BudjarnLambeth (talk | contribs)
Line 24: Line 24:


== See also ==
== See also ==
* [[Template: EDFs]]
* [[Template: EDTs]]
* [[Template: EDOs]]
* [[Template: EDOs]]
* [[Template: Optimal ET sequence]]
* [[Template: Optimal ET sequence]]

Revision as of 20:17, 9 March 2024

{{#regex: |/(\d+)(\D+)?/|\1\2}} This template takes a collection of numbers and creates links to individual edf pages from it.

Usage examples

You type
  • {{EDFs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
  • {{EDFs|1 2 3 4 5 6 7 8 9 10 11}}
  • {{EDFs|1 edf, 2 edf, up to 99 edf 00}}
You get (rendered)
  • {{#regex: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11|/(\d+)(\D+)?/|\1\2}}
  • {{#regex: 1 2 3 4 5 6 7 8 9 10 11|/(\d+)(\D+)?/|\1\2}}
  • {{#regex: 1 edf, 2 edf, up to 99 edf 00|/(\d+)(\D+)?/|\1\2}} - disputable if leading zeros should be removed
To include a legend, type
  • {{EDFs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
So you get (rendered)
  • edfs: {{#regex: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11|/(\d+)(\D+)?/|\1\2}}

Technical notes

See also