Template:MarkOptionTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
2) options (the selected option list
2) options (the selected option list
</pre>
</pre>
</noinclude><includeonly><!--
</noinclude><includeonly>
-->{{#ifeq:<!--
{{#ifeq:{{{options|}}}| <!-- print  stdoption
  -->{{#arraymap:{{{options|}}}
  --><li style="color:DimGray;font-style: italic;">{{{stdoption|}}}</li><!--
      |;|xx
-->|{{#ifexpr:<!--
      |{{#ifeq:{{{stdoption|}}}|xx|1|0}}
  -->{{#arraymap:{{{options|}}}|;|xx<!--
  | +  
    -->|{{#ifeq:{{{stdoption|}}}|xx|1|0}}<!--
}} |1 <!--standard option is selected
    -->| +  
  }} > 0      <!-- standard option is selected
  -->|<li style="font-weight: bold;">{{{stdoption|}}}</li><!--
  -->|<li style="font-weight: bold;">{{{stdoption|}}}</li><!--
  -->|<li style="color:DimGray;font-style: italic;">{{{stdoption|}}}</li><!--
  -->|<li style="color:DimGray;font-style: italic;">{{{stdoption|}}}</li><!--
-->}}</includeonly>
-->}}<!--
}}</includeonly>

Revision as of 13:08, 27 August 2016

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