Template:DisplayItemInMatrixTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (1 revision imported) |
||
(5 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"><!-- | |<td class="rc-matrix-data"><!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{text|}}}||| <!-- display text --> | ||
<p>{{{ | <p>{{{text|}}}</p><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{list|}}}||| <!-- display list, list assumes text for title display --> | ||
<ol> | <ol> | ||
{{#arraymap:{{{ | {{#arraymap:{{{list|}}}|;|xx|<li>xx</li>|}}</ol><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{standardoption|}}}{{{other|}}}||| | ||
<ul class="rc-option"><!-- | <ul class="rc-option"><!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{standardoption|}}}|<!-- display other --> | ||
|{{#arraymap:{{{ | |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}} | ||
| {{#arraymap:{{{ | | {{#arraymap:{{{standardoption|}}}|;|xx | ||
|{{ | |{{#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>|}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- |
Latest revision as of 12:24, 21 November 2021
title standardoption option other text list