Template:EDTs/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
Improvement |
||
| Line 1: | Line 1: | ||
{{Dochead}}{{substitute|no|}} | {{Dochead}}{{substitute|no|}} | ||
The '''EDTs''' template takes a collection of numbers and creates links to individual [[edt]] pages from it. Alphabetic characters (e.g. <code>edt</code>) immediately after a number are included in the link. | |||
=== Usage examples === | === Usage examples === | ||
| Line 6: | Line 6: | ||
* <code><nowiki>{{EDTs| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code> | * <code><nowiki>{{EDTs| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code> | ||
* <code><nowiki>{{EDTs| 1 2 3 4 5 6 7 8 9 10 11 }}</nowiki></code> | * <code><nowiki>{{EDTs| 1 2 3 4 5 6 7 8 9 10 11 }}</nowiki></code> | ||
* <code><nowiki>{{EDTs| | * <code><nowiki>{{EDTs| 1edt, 2edt, up to 99edt }}</nowiki></code> | ||
; You get (rendered): | ; You get (rendered): | ||
* {{EDTs| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }} | * {{EDTs| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }} | ||
* {{EDTs| 1 2 3 4 5 6 7 8 9 10 11 }} | * {{EDTs| 1 2 3 4 5 6 7 8 9 10 11 }} | ||
* {{EDTs| | * {{EDTs| 1edt, 2edt, up to 99edt }} | ||
; To include a legend, type: | ; To include a legend, type: | ||
| Line 22: | Line 22: | ||
=== Technical notes === | === Technical notes === | ||
This template calls [[mw: Extension: RegexFunctions|Extension: RegexFunctions]] to match the strings. | |||
=== See also === | === See also === | ||
Revision as of 17:24, 13 October 2026
| This template should not be substituted. |
The EDTs template takes a collection of numbers and creates links to individual edt pages from it. Alphabetic characters (e.g. edt) immediately after a number are included in the link.
Usage examples
- You type
{{EDTs| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}{{EDTs| 1 2 3 4 5 6 7 8 9 10 11 }}{{EDTs| 1edt, 2edt, up to 99edt }}
- You get (rendered)
- To include a legend, type
{{EDTs|legend=0| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}{{EDTs|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.