|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| {{#if: {{{legend|}}} | [[ZPI]]s: }}{{#regex: {{{1|}}}|/(\d+)(\D+)?/|[[\zpi|\1]]\2}}<noinclude> | | {{#if: {{{legend|}}}|[[ZPI]]s: }}{{#rreplace: {{{1|}}}|/(\d+)(\D+)?/|[[\zpi|\1]]\2}}<noinclude> |
| This template takes a collection of numbers and creates links to individual [[zpi]] pages from it.
| | {{documentation}} |
| | |
| == Usage examples ==
| |
| | |
| ; You type:
| |
| * <code><nowiki>{{ZPIs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}</nowiki></code>
| |
| * <code><nowiki>{{ZPIs|1 2 3 4 5 6 7 8 9 10 11}}</nowiki></code>
| |
| * <code><nowiki>{{ZPIs|1 afdo, 2 afdo, up to 99 afdo 00}}</nowiki></code>
| |
| | |
| ; You get (rendered):
| |
| * {{ZPIs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
| |
| * {{ZPIs|1 2 3 4 5 6 7 8 9 10 11}}
| |
| * {{ZPIs|1 zpi, 2 zpi, up to 99 zpi 00}} - disputable if leading zeros should be removed
| |
| | |
| ; To include a legend, type:
| |
| * <code><nowiki>{{ZPIs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}</nowiki></code>
| |
| | |
| ; So you get (rendered):
| |
| * {{ZPIs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
| |
| | |
| == Technical notes ==
| |
| * [https://www.mediawiki.org/wiki/Extension:Regex_Fun MediaWiki: Extension: Regex Fun]
| |
| | |
| == See also ==
| |
| * [[Template: EDOs]]
| |
| * [[Template: Optimal ET sequence]]
| |
|
| |
|
| [[Category:Formatting templates]] | | [[Category:Formatting templates]] |
|
| |
| </noinclude> | | </noinclude> |