Template:EDFs: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
Feature
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#if: {{{legend|}}}|[[edf]]s:&nbsp;}}{{#regex: {{{1|}}}|/(\d+)(\D+)?/|[[\1edf|\1]]\2}}<noinclude>
<includeonly>{{#switch: {{{legend|}}}|1=[[EDF]]s:&nbsp;|0=EDFs:&nbsp;}}{{#rreplace: {{{1|}}}|/(\d+)(\D+)?/|[[\1edf|\1]]\2}}</includeonly><noinclude>
This template takes a collection of numbers and creates links to individual [[edf]] pages from it.
{{Documentation}}
 
{{doc}}


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 07:30, 12 October 2025

Template documentation[view] [edit] [history] [purge]
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)
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

See also