Template:IFDOs

Revision as of 19:30, 9 March 2024 by BudjarnLambeth (talk | contribs) (Created template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#regex: |/(\d+)(\D+)?/|\1\2}} This template takes a collection of numbers and creates links to individual ifdo pages from it.

Usage examples

You type
  • {{IFDOs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
  • {{IFDOs|1 2 3 4 5 6 7 8 9 10 11}}
  • {{IFDOs|1 ifdo, 2 ifdo, up to 99 ifdo 00}}
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 ifdo, 2 ifdo, up to 99 ifdo 00|/(\d+)(\D+)?/|\1\2}} - disputable if leading zeros should be removed
To include a legend, type
  • {{IFDOs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
So you get (rendered)
  • ifdos: {{#regex: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11|/(\d+)(\D+)?/|\1\2}}

Technical notes

See also