Template:EDOs

From TD Xenharmonic Wiki
Jump to navigation Jump to search

{{#rreplace: |/(\d+)(\D+)?/|\1\2}}

This template takes a collection of numbers and creates links to individual edo pages from it.

Usage examples[edit]

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|1 edo, 2 edo, up to 99 edo 00}}
You get (rendered)
  • {{#rreplace: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11|/(\d+)(\D+)?/|\1\2}}
  • {{#rreplace: 1 2 3 4 5 6 7 8 9 10 11|/(\d+)(\D+)?/|\1\2}}
  • {{#rreplace: 1 edo, 2 edo, up to 99 edo 00|/(\d+)(\D+)?/|\1\2}} - disputable if leading zeros should be removed

Technical notes[edit]

Replaced by Extension:RegexFunctions on this wiki because Regex Fun is not available