Difference between revisions of "Template:Segmented control"

From Co-Optitude Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
 
+
{{#vardefine:i|1}}{{#while:
* {{{1|}}}
+
|{{#if:{{{{{#var:i}}|}}}|true}}
* {{{2|}}}
+
| <nowiki />* {{{{{#var:i}}|}}}
* {{{3|}}}
+
{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} }}
  
 
<div class="rsToggleContainer">
 
<div class="rsToggleContainer">

Revision as of 16:40, 28 March 2020

Usage example:

{{SegmentedControl
  |Title;Wiki page name
  |Image.png;Title;Wiki page name
  |Selected title;
  |etc}}