Template:EDTs/doc: Difference between revisions

No edit summary
Update
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Dochead}}
{{Dochead}}{{substitute|no|}}
This template takes a collection of numbers and creates links to individual [[edt]] pages from it.
The '''EDTs''' template takes a collection of numbers and creates links to individual [[edt]] pages from it. Alphanumeric characters (e.g. <code>edt</code>) immediately after a number are included in the link, as well as asterisk (<code>*</code>), slash (<code>/</code>), dagger (<code>†</code>), prime (<code>′</code>) and double-prime (<code>″</code>) to help with fraction notation and extended [[wart notation]].  


=== 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| 1, 3 and 12, but notably not 7 }}</nowiki></code>
* <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| 1, 3 and 12, but notably not 7 }}
* {{EDTs| 1edt, 2edt, up to 99edt }}


; To include a legend, type:
; To include a legend, type:
Line 18: Line 18:


; So you get (rendered):
; So you get (rendered):
* {{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 }}
* {{EDTs|legend=1| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}


=== Technical notes ===
=== Technical notes ===
* [[Mw: Extension: RegexFunctions|Extension: RegexFunctions]]
This template calls [[mw: Extension: RegexFunctions|Extension: RegexFunctions]] to match the strings.


=== See also ===
=== See also ===