Template:DisplayItemTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
text | text | ||
list | list | ||
</pre> | </pre>[[Category:ReferenceCardStructure]] | ||
</noinclude><includeonly><!--check on content--> | </noinclude><includeonly><!--check on content--> | ||
{{#ifeq:{{{ | {{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}{{{list|}}}|| | ||
|<div class="rc-row"><!-- | |<div class="rc-row"><!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{text|}}}||| <!-- display text --> | ||
<div class="rc-title"> | <div class="rc-title"> | ||
<p >{{{ | <p >{{{title|}}}</p> | ||
</div> | </div> | ||
<div class="rc-data"> | <div class="rc-data"> | ||
<p>{{{ | <p>{{{text|}}}</p> | ||
</div><!-- | </div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{list|}}}||| <!-- display list, list assumes text for title display --> | ||
<div class="rc-title"><p></p></div> | <div class="rc-title"><p></p></div> | ||
<div class="rc-data"> | <div class="rc-data"> | ||
<ol class="rc-data"> | <ol class="rc-data"> | ||
{{#arraymap:{{{ | {{#arraymap:{{{list|}}}|;|xx|<li class="rc-data">xx</li>|}}</ol> | ||
</div><!-- | </div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{standardoption|}}}{{{other|}}}||| | ||
<div class="rc-title"> | |||
<p>{{{title|}}}</p> | |||
</div> | </div> | ||
<div class="rc-data"> | <div class="rc-data"> | ||
<ul class="rc-option rc-data"><!-- | <ul class="rc-option rc-data"><!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{standardoption|}}}|<!-- display other --> | ||
|{{#arraymap:{{{ | |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}} | ||
|{{#arraymap:{{{ | |{{#arraymap:{{{standardoption|}}}|;|xx | ||
|{{MarkOptionTemplate|stdoption=xx|options={{{ | |{{MarkOptionTemplate|stdoption=xx|options={{{option|}}} }} | ||
|}}<!-- | |}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{other|}}}|| | ||
|{{#arraymap:{{{ | |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 47: | Line 47: | ||
--></div><!-- | --></div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{comment|}}}|||<!-- check on title | ||
-->{{#ifeq:{{{ | -->{{#ifeq:{{{text|}}}{{{standardoption|}}}{{{list|}}}{{{other|}}}|| <!-- | ||
--><div class="rc-title"> | --><div class="rc-title"> | ||
<p>{{{ | <p>{{{title|}}}</p> | ||
</div><!-- | </div><!-- | ||
-->|}}<!-- | -->|}}<!-- | ||
--><div class="rc-comment"> | --><div class="rc-comment"> | ||
<p>Note: {{{ | <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