Difference between revisions of "Template:Segmented control"

From Co-Optitude Wiki
Jump to navigation Jump to search
Line 14: Line 14:
 
{{#while:|{{{{{#var:i}}|}}} }}
 
{{#while:|{{{{{#var:i}}|}}} }}
 
   |<nowiki/>
 
   |<nowiki/>
 +
* Count {{#var:i}} ({{#var:segmentCount}}) - arg = {{{{{#var:i}}|}}}
 
   {{#vardefine:segmentCount|{{#var:i}}}}
 
   {{#vardefine:segmentCount|{{#var:i}}}}
 
   {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
 
   {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
 
}}
 
}}
 +
 
* Segment count is {{#var:segmentCount}}
 
* Segment count is {{#var:segmentCount}}
 
<div class="rsToggleContainer" style="text-align: center;">
 
<div class="rsToggleContainer" style="text-align: center;">

Revision as of 18:37, 28 March 2020

Usage example:

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