Difference between revisions of "Template:Segmented control"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
{{#vardefine:i|1}}{{#while: | {{#vardefine:i|1}}{{#while: | ||
|{{#if:{{{{{#var:i}}|}}}|true}} | |{{#if:{{{{{#var:i}}|}}}|true}} | ||
− | | <nowiki />* {{{{{#var:i}}|}}} | + | | <nowiki /> |
+ | * {{{{{#var:i}}|}}} | ||
{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} }} | {{#vardefine:i|{{#expr:{{#var:i}}+1}} }} }} | ||
Revision as of 16:41, 28 March 2020
Usage example:
{{SegmentedControl |Title;Wiki page name |Image.png;Title;Wiki page name |Selected title; |etc}}