Template:DisplayItemTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(151 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
option
option
other
other
comment
comment
text
text
cols
list
</pre>
</pre>[[Category:ReferenceCardStructure]]
</noinclude><includeonly><!--check on content
</noinclude><includeonly><!--check on content-->
-->{{#ifeq:{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}||
{{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}{{{list|}}}||
|<div style="clear:left;float:left;width:150px;">'''{{{title|}}}'''</div>
  |<div class="rc-row"><!--
{{#ifeq:{{{text|}}}| <!-- if no text, then list options
  -->{{#ifeq:{{{text|}}}||| <!--  display text  -->
  -->|<div style="-webkit-columns:{{{cols|}}}; -moz-columns:{{{cols|}}}; columns:{{{cols|}}};"><!--
        <div class="rc-title">
--><ul>{{#arraymap:{{{option|}}}|;|xx|<li>xx</li>|}}<!--
        <p >{{{title|}}}</p>
-->{{#ifeq:{{{other|}}}|||{{#arraymap:{{{other|}}}|;|yy|<li style="color:Green">yy</li>|}} }}
        </div>
</ul></div><!--
        <div class="rc-data">
--><!--
        <p>{{{text|}}}</p>
-->{{#ifeq:{{{comment|}}}||<!--
        </div><!--
  -->|<div style="clear:left;margin-left:160px;font-style: italic;">Note: {{{comment|}}}</div><!--
  -->}}<!--
-->}}<!--
  -->{{#ifeq:{{{list|}}}||| <!-- display list, list assumes text for title display -->
here comes the text
        <div class="rc-title"><p></p></div>
-->|<div>{{{text|}}}</div><!--
        <div class="rc-data">
-->}} }}</includeonly>
        <ol class="rc-data">
        {{#arraymap:{{{list|}}}|;|xx|<li class="rc-data">xx</li>|}}</ol>
        </div><!--
  -->}}<!--
  -->{{#ifeq:{{{standardoption|}}}{{{other|}}}|||
        <div class="rc-title">
          <p>{{{title|}}}</p>
        </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|}}}||
                  |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}<!--
              -->}}<!--
          -->}}<!--   
        --></ul><!--       
      --></div><!--
  -->}}<!--
  -->{{#ifeq:{{{comment|}}}|||<!-- check on title
        -->{{#ifeq:{{{text|}}}{{{standardoption|}}}{{{list|}}}{{{other|}}}|| <!--
          --><div class="rc-title">
              <p>{{{title|}}}</p>
              </div><!--
        -->|}}<!--
    --><div class="rc-comment">
        <p>Note: {{{comment|}}}</p>
        </div><!--
    -->}}
  </div><!--
-->}}
</includeonly>

Latest revision as of 14:53, 17 November 2021

Note: this is a named fields template => fields has a prefix '?'
Params:
title
standardoption
option
other
comment
text
list