Template:DisplayItemTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(59 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<pre> | <pre> | ||
Note: this is a named fields template => fields has a prefix '?' | |||
Params: | |||
title | title | ||
standardoption | standardoption | ||
Line 7: | Line 9: | ||
comment | comment | ||
text | text | ||
list | |||
</pre> | </pre>[[Category:ReferenceCardStructure]] | ||
</noinclude><includeonly><!--check on content--> | </noinclude><includeonly><!--check on content--> | ||
{{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}{{{list|}}}|| | {{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}{{{list|}}}|| | ||
|<div | |<div class="rc-row"><!-- | ||
-->{{#ifeq:{{{text|}}}||| <!-- display text --> | -->{{#ifeq:{{{text|}}}||| <!-- display text --> | ||
<div | <div class="rc-title"> | ||
<p> | <p >{{{title|}}}</p> | ||
</div> | </div> | ||
<div | <div class="rc-data"> | ||
<p>{{{text|}}}</p> | <p>{{{text|}}}</p> | ||
</div><!-- | </div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{list|}}}||| <!-- display list --> | -->{{#ifeq:{{{list|}}}||| <!-- display list, list assumes text for title display --> | ||
<div | <div class="rc-title"><p></p></div> | ||
<div class="rc-data"> | |||
<ol class="rc-data"> | |||
<div | {{#arraymap:{{{list|}}}|;|xx|<li class="rc-data">xx</li>|}}</ol> | ||
< | |||
{{#arraymap:{{{list|}}}|;|xx|<li>xx</li>|}}</ | |||
</div><!-- | </div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{standardoption|}}}{{{other|}}}||| | ||
<div class="rc-title"> | |||
<p>{{{title|}}}</p> | |||
</div> | </div> | ||
<div class="rc-data"> | |||
<ul class="rc-option rc-data"><!-- | |||
-->{{#ifeq:{{{standardoption|}}}|<!-- display other --> | |||
|{{ | |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}} | ||
|{{#arraymap:{{{standardoption|}}}|;|xx | |||
|{{MarkOptionTemplate|stdoption=xx|options={{{option|}}} }} | |||
|}}<!-- | |||
-->{{#ifeq:{{{other|}}}|| | |||
--></ul> | |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}<!-- | ||
-->}}<!-- | |||
-->}}<!-- | |||
--></ul><!-- | |||
-->{{#ifeq:{{{text|}}}{{{ | --></div><!-- | ||
--><div | -->}}<!-- | ||
<p> | -->{{#ifeq:{{{comment|}}}|||<!-- check on title | ||
-->{{#ifeq:{{{text|}}}{{{standardoption|}}}{{{list|}}}{{{other|}}}|| <!-- | |||
--><div class="rc-title"> | |||
<p>{{{title|}}}</p> | |||
</div><!-- | </div><!-- | ||
-->|}}<!-- | -->|}}<!-- | ||
--><div | --><div class="rc-comment"> | ||
<p> | <p>Note: {{{comment|}}}</p> | ||
</div><!-- | </div><!-- | ||
-->}} | -->}} |
Latest revision as of 13:53, 17 November 2021
Note: this is a named fields template => fields has a prefix '?' Params: title standardoption option other comment text list