Template:MarkOptionTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
(Created page with "<noinclude><pre> returns a list element with a different representation for selected/nonselected options parameters: 1)stdoption 2) options (the selected option list </pre> </...")
 
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 5: Line 5:
2) options (the selected option list
2) options (the selected option list
</pre>
</pre>
</noinclude><includeonly><!--
</noinclude><includeonly>
-->{{#ifexpr:{{#arraymap:{{{options|}}}|;|xx|{{#ifeq:{{{stdoption|}}}|xx|1|+}} > 0 <!--
{{#ifeq:{{{options|}}}||<!-- print  stdoption -->
-->|<li style="font-weight: bold;">{{{stdoption|}}}</li><!--
  <li class="rc-option rc-standard">{{{stdoption|}}}</li>
-->|<li style="color:DimGray;font-style: italic;">{{{stdoption|}}}</li><!--
  |{{#ifexpr:
-->}}<!--
      {{#arraymap:{{{options|}}}|;|xx
--></includeonly>
        |{{#ifeq:{{{stdoption|}}}|xx|1|0}}
        | +  
      }} > 0       <!-- standard option is selected -->
    |<li class="rc-option rc-selected ">{{{stdoption|}}}</li>
    |<li class="rc-option rc-standard">{{{stdoption|}}}</li>
  }}
}}</includeonly>

Latest revision as of 16:52, 17 November 2021

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