|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| {{#if: {{{legend|}}} | [[edf]]s: }}{{#regex: {{{1|}}}|/(\d+)(\D+)?/|[[\1edf|\1]]\2}}<noinclude> | | <includeonly>{{#if: {{{legend|}}}|[[EDF]]s: }}{{#rreplace: {{{1|}}}|/(\d+)(\D+)?/|[[\1edf|\1]]\2}}</includeonly><noinclude> |
| This template takes a collection of numbers and creates links to individual [[edf]] pages from it.
| | {{documentation}} |
| | |
| == Usage examples ==
| |
| | |
| ; 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> |