Template:MarkOptionTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
</pre>
</pre>
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifeq:{{{options|}}}||<!-- print  stdoption
{{#ifeq:{{{options|}}}||<!-- print  stdoption -->
  --><li class="rc-option rc-standard">{{{stdoption|}}}</li><!--
  <li class="rc-option rc-standard">{{{stdoption|}}}</li>
-->|{{#ifexpr:<!--
  |{{#ifexpr:
  -->{{#arraymap:{{{options|}}}|;|xx<!--
      {{#arraymap:{{{options|}}}|;|xx
    -->|{{#ifeq:{{{stdoption|}}}|xx|1|0}}<!--
        |{{#ifeq:{{{stdoption|}}}|xx|1|0}}
    -->| +  
        | +  
  }} > 0      <!-- standard option is selected
      }} > 0      <!-- standard option is selected -->
-->|<li class="rc-option rc-selected ">{{{stdoption|}}}</li><!--
    |<li class="rc-option rc-selected ">{{{stdoption|}}}</li>
-->|<li class="rc-option rc-standard">{{{stdoption|}}}</li><!--
    |<li class="rc-option rc-standard">{{{stdoption|}}}</li>
-->}}
  }}
}}</includeonly>
}}</includeonly>

Revision as of 12:49, 22 June 2018

returns a list element with a different representation for selected/nonselected options
parameters:
1)stdoption
2) options (the selected option list