Template:EDFs/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Dochead}}{{substitute|no|}} | {{Dochead}}{{substitute|no|}} | ||
The '''EDFs''' template takes a collection of numbers and creates links to individual [[edf]] pages from it. Alphabetic characters (e.g. <code>edf</code>) immediately after a number are included in the link. | |||
=== Usage examples === | === Usage examples === | ||
| Line 6: | Line 6: | ||
* <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| | * <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| | * {{EDFs| 1edf, 2edf, up to 99edf }} | ||
; 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:25, 13 October 2026
| This template should not be substituted. |
The EDFs template takes a collection of numbers and creates links to individual edf pages from it. Alphabetic characters (e.g. edf) immediately after a number are included in the link.
Usage examples
- You type
{{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| 1edf, 2edf, up to 99edf }}
- You get (rendered)
- To include a legend, type
{{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 }}
- So you get (rendered)
Technical notes
This template calls Extension: RegexFunctions to match the strings.