Template:DisplayItemTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(89 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
cols
list
</pre>
</pre>[[Category:ReferenceCardStructure]]
</noinclude><includeonly><!--check on content-->
</noinclude><includeonly><!--check on content-->
{{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}||
{{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}{{{list|}}}||
   |<div style="clear:both; max-width:800px; height:100%;">
   |<div class="rc-row"><!--
   {{#ifeq:{{{text|}}}||| <!--  display text  -->
   -->{{#ifeq:{{{text|}}}||| <!--  display text  -->
         <div style="clear:left; float:left; width:150px; height:100%; text-align:right; vertical-align:">
         <div class="rc-title">
         <p>'''{{{title|}}}'''</p>
         <p >{{{title|}}}</p>
         </div>
         </div>
         <div style="float:left; margin-left:15px; height:100%; vertical-align:top;">
         <div class="rc-data">
         <p>{{{text|}}}</p>
         <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>
  }}
        <div class="rc-data">
  {{#ifeq:{{{option|}}}{{{other|}}}|||
          <ul class="rc-option rc-data"><!--
        <div style="clear:left; float:left; width:150px; height:100%; text-align:right; vertical-align:top;">
          -->{{#ifeq:{{{standardoption|}}}|<!-- display  other -->
        <p>'''{{{title|}}}'''</p>
                |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}
        </div>
                |{{#arraymap:{{{standardoption|}}}|;|xx
        <div style="float:left; margin-left:15px; width:200px; height:100%; vertical-align:top;">
                     |{{MarkOptionTemplate|stdoption=xx|options={{{option|}}} }}
              <ul>{{#ifeq:{{{option|}}}||
                    |}}<!--
                     |{{#arraymap:{{{option|}}}|;|xx|<li>xx</li>|}}<!--
              -->{{#ifeq:{{{other|}}}||
              -->}}<!--
                  |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}<!--
              -->{{#ifeq:{{{other|}}}||
              -->}}<!--
                    |{{#arraymap:{{{other|}}}|;|yy|<li style="color:Green">yy</li>|}}<!--
           -->}}<!--   
              -->}}<!--
        --></ul><!--       
           --></ul>
      --></div><!--
        </div>
  -->}}<!--
}}
  -->{{#ifeq:{{{comment|}}}|||<!-- check on title
{{#ifeq:{{{comment|}}}|||
         -->{{#ifeq:{{{text|}}}{{{standardoption|}}}{{{list|}}}{{{other|}}}|| <!--
         <div style="float:right; margin-left:15px; width:200px; height:100%; vertical-align:">
          --><div class="rc-title">
         <p>''Note: {{{comment|}}}''</p>
              <p>{{{title|}}}</p>
         </div>
              </div><!--
     }}
        -->|}}<!--
   </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