Template:DisplayItemTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
(Created page with "noinclude> <pre> title option other comment </pre> </noinclude><includeonly> <div style="float:left;width:150px;font-weight: bold;" >{{{title|}}}</div> <div style="float:left;...")
 
No edit summary
 
(216 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
</pre>
text
</noinclude><includeonly>
list
<div style="float:left;width:150px;font-weight: bold;" >{{{title|}}}</div>
</pre>[[Category:ReferenceCardStructure]]
<div style="float:left;-webkit-columns:3; -moz-columns:3; columns:3;"><!--
</noinclude><includeonly><!--check on content-->
-->{{#ifeq:{{{option|}}}|||{{#arraymap:{{{option|}}}|;|xx|<p>xx</p>|}} }}<!--
{{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}{{{list|}}}||
-->{{#ifeq:{{{other|}}}|||<p>plus</p>|||{{#arraymap:{{{other|}}}|;|xx|<p>xx</p>|}} }}</div><!--
  |<div class="rc-row"><!--
--><div style="clear: both;"></div><!--
  -->{{#ifeq:{{{text|}}}||| <!--  display text  -->
-->{{#ifeq:{{{comment|}}}|||<div style="margin-left:150px;font-style: italic" >{{{comment|}}} }}</div>
        <div class="rc-title">
        <p >{{{title|}}}</p>
        </div>
        <div class="rc-data">
        <p>{{{text|}}}</p>
        </div><!--
  -->}}<!--
  -->{{#ifeq:{{{list|}}}||| <!--  display list, list assumes text for title display  -->
        <div class="rc-title"><p></p></div>
        <div class="rc-data">
        <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>
</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