Template:AFDOs: Difference between revisions
Jump to navigation
Jump to search
Created AFDOs template similar to EDOs template |
|||
Line 7: | Line 7: | ||
* <code><nowiki>{{AFDOs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}</nowiki></code> | * <code><nowiki>{{AFDOs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}</nowiki></code> | ||
* <code><nowiki>{{AFDOs|1 2 3 4 5 6 7 8 9 10 11}}</nowiki></code> | * <code><nowiki>{{AFDOs|1 2 3 4 5 6 7 8 9 10 11}}</nowiki></code> | ||
* <code><nowiki>{{AFDOs|1 | * <code><nowiki>{{AFDOs|1 afdo, 2 afdo, up to 99 afdo 00}}</nowiki></code> | ||
; You get (rendered): | ; You get (rendered): | ||
* {{AFDOs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}} | * {{AFDOs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}} | ||
* {{AFDOs|1 2 3 4 5 6 7 8 9 10 11}} | * {{AFDOs|1 2 3 4 5 6 7 8 9 10 11}} | ||
* {{AFDOs|1 | * {{AFDOs|1 afdo, 2 afdo, up to 99 afdo 00}} - disputable if leading zeros should be removed | ||
; To include a legend, type: | ; To include a legend, type: |
Revision as of 19:25, 9 March 2024
{{#regex: |/(\d+)(\D+)?/|\1\2}} This template takes a collection of numbers and creates links to individual afdo pages from it.
Usage examples
- You type
{{AFDOs|1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}
{{AFDOs|1 2 3 4 5 6 7 8 9 10 11}}
{{AFDOs|1 afdo, 2 afdo, up to 99 afdo 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 afdo, 2 afdo, up to 99 afdo 00|/(\d+)(\D+)?/|\1\2}} - disputable if leading zeros should be removed
- To include a legend, type
{{AFDOs| legend=1 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }}
- So you get (rendered)
Technical notes
See also