Template:EDFs: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{#if: {{{legend|}}}|[[ | {{#if: {{{legend|}}}|[[EDF]]s: }}{{#regex: {{{1|}}}|/(\d+)(\D+)?/|[[\1edf|\1]]\2}}<noinclude> | ||
This template takes a collection of numbers and creates links to individual [[ | This template takes a collection of numbers and creates links to individual [[EDF]] pages from it. | ||
{{ | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:00, 31 October 2024
{{#regex: |/(\d+)(\D+)?/|\1\2}} This template takes a collection of numbers and creates links to individual EDF pages from it.
| This template should not be substituted. |
This template takes a collection of numbers and creates links to individual edf pages from it.
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| 1, 3 and 12, but notably not 7 }}
- You get (rendered)
- {{#regex: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 |/(\d+)(\D+)?/|\1\2}}
- {{#regex: 1 2 3 4 5 6 7 8 9 10 11 |/(\d+)(\D+)?/|\1\2}}
- {{#regex: 1, 3 and 12, but notably not 7 |/(\d+)(\D+)?/|\1\2}}
- 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)
- EDFs: {{#regex: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 |/(\d+)(\D+)?/|\1\2}}
- EDFs: {{#regex: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 |/(\d+)(\D+)?/|\1\2}}