Template:EDFs/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
Update
 
(8 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 [[EDF]] pages from it.
The '''EDFs''' template takes a collection of numbers and creates links to individual [[edf]] pages from it. Alphanumeric characters (e.g. <code>edf</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>{{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 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>
* <code><nowiki>{{EDFs| 1edf, 2edf, up to 99edf }}</nowiki></code>


; You get (rendered):
; 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 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
* {{EDFs| 1edf, 2edf, up to 99edf }}


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


; So you get (rendered):
; So you get (rendered):
* {{EDFs|legend=1| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
* {{EDFs|legend=0| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
* {{EDFs|legend=1| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}


=== Technical notes ===
=== Technical notes ===
* [http://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:EDTs]]
* [[Template: Optimal ET sequence]]
* [[Template:EDOs]]
* [[Template: EDOs]]
* [[Template:Optimal ET sequence]]
* [[Template: EDTs]]
* [[Template: EDs]]