Template:EDFs: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
No edit summary
Line 2: Line 2:
This template takes a collection of numbers and creates links to individual [[edf]] pages from it.
This template takes a collection of numbers and creates links to individual [[edf]] pages from it.


== Usage examples ==
{{doc}}
 
; You type:
* <code><nowiki>{{EDFs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}</nowiki></code>
* <code><nowiki>{{EDFs|1 2 3 4 5 6 7 8 9 10 11}}</nowiki></code>
* <code><nowiki>{{EDFs|1 edf, 2 edf, up to 99 edf 00}}</nowiki></code>
 
; You get (rendered):
* {{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}} - disputable if leading zeros should be removed
 
; To include a legend, type:
* <code><nowiki>{{EDFs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code>
 
; So you get (rendered):
* {{EDFs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
 
== Technical notes ==
* [https://www.mediawiki.org/wiki/Extension:Regex_Fun MediaWiki: Extension: Regex Fun]
 
== See also ==
* [[Template: EDTs]]
* [[Template: EDOs]]
* [[Template: Optimal ET sequence]]


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 01:27, 22 May 2024

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

Template:Doc