Template:EDTs/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
Update
 
(9 intermediate revisions by 3 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 ===
; You type:
; You type:
* <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 edt, 2 edt, up to 99 edt 00}}</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 edt, 2 edt, up to 99 edt 00}} &ndash; disputable if leading zeros should be removed
* {{EDTs| 1edt, 2edt, up to 99edt }}


; To include a legend, type:
; To include a legend, type:
* <code><nowiki>{{EDTs|legend=0| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code>
* <code><nowiki>{{EDTs|legend=1| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code>
* <code><nowiki>{{EDTs|legend=1| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code>


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


=== Technical notes ===
=== Technical notes ===
* [https://www.mediawiki.org/wiki/Extension:Regex_Fun MediaWiki: Extension: Regex Fun]
This template calls [[mw: Extension: RegexFunctions|Extension: RegexFunctions]] to match the strings.


=== See also ===
=== See also ===
* [[Template:EDFs]]
* [[Template: Optimal ET sequence]]
* [[Template:EDOs]]
* [[Template: EDOs]]
* [[Template:Optimal ET sequence]]
* [[Template: EDFs]]
* [[Template: EDs]]