Template:DisplayItemInMatrixTemplate: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude> <pre> title standardoption option other text list </pre> </noinclude><includeonly><!--check on content--> {{#ifeq:{{{?standardoption|}}}{{{?option|}}}{{{?other|}}}...") |
m (1 revision imported) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
text | text | ||
list | list | ||
</pre> | </pre>[[Category:ModelComparison]] | ||
</noinclude><includeonly><!--check on content--> | </noinclude><includeonly><!--check on content--> | ||
{{#ifeq:{{{ | {{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{text|}}}{{{list|}}}||<td></td> | ||
|< | |<td class="rc-matrix-data"><!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{text|}}}||| <!-- display text --> | ||
<p>{{{text|}}}</p><!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{list|}}}||| <!-- display list, list assumes text for title display --> | ||
<ol> | |||
<ol | {{#arraymap:{{{list|}}}|;|xx|<li>xx</li>|}}</ol><!-- | ||
{{#arraymap:{{{ | |||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{standardoption|}}}{{{other|}}}||| | ||
<ul class="rc-option"><!-- | |||
<ul class="rc- | -->{{#ifeq:{{{standardoption|}}}|<!-- display other --> | ||
-->{{#ifeq:{{{ | |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}} | ||
|{{#arraymap:{{{ | | {{#arraymap:{{{standardoption|}}}|;|xx | ||
| {{#arraymap:{{{ | |{{#ifeq:{{{option|}}}||<!-- print stdoption --> | ||
|{{ | <li class="rc-option rc-standard">xx</li> | ||
|{{#ifexpr: | |||
{{#arraymap:{{{option|}}}|;|qq|{{#ifeq:xx|qq|1|0}} | + }} > 0 <!-- standard option is selected --> | |||
|<li class="rc-option rc-selected ">xx</li> | |||
|<li class="rc-option rc-standard">xx</li> | |||
}} | |||
}} | |||
|}}<!-- | |}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{other|}}}|| | ||
|{{#arraymap:{{{ | |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></ul><!-- | --></ul><!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></ | --></td><!-- | ||
-->}} | -->}} | ||
</includeonly> | </includeonly> |
Latest revision as of 12:24, 21 November 2021
title standardoption option other text list