Template:DisplayItemTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(44 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|}}}{{{list|}}}||
{{#ifeq:{{{standardoption|}}}{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}{{{list|}}}||
   |<div style="border:1px solid green; clear:both; max-width:900px; height:100%;"><p>text</p><!--
   |<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="1px solid yellow;float:left; margin-left:15px; margin-bottom:10px; max-width:500px; height:100%; vertical-align:top;">
         <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 style="1px solid red;clear:left; float:left; width:150px; height:100%; text-align:right; vertical-align:top;">
         <div class="rc-title"><p></p></div>
        <p>'''{{{title|}}}'''</p>
         <div class="rc-data">
        </div>
         <ol class="rc-data">
         <div style="1px solid blue;float:left; margin-left:15px; margin-bottom:10px; max-width:500px; height:100%; vertical-align:top;">
         {{#arraymap:{{{list|}}}|;|xx|<li class="rc-data">xx</li>|}}</ol>
         <ul>
         {{#arraymap:{{{list|}}}|;|xx|<li>xx</li>|}}</ul>
         </div><!--
         </div><!--
   -->}}<!--
   -->}}<!--
   -->{{#ifeq:{{{option|}}}{{{other|}}}|||
   -->{{#ifeq:{{{standardoption|}}}{{{other|}}}|||
        <div style="border:1px solid red;clear:left; float:left; width:150px; height:100%; text-align:right; vertical-align:top;">
        <div class="rc-title">
        <p>'''{{{title|}}}'''</p>
          <p>{{{title|}}}</p>
         </div>
         </div>
<div style="border:1px solid red;float:left; margin-left:15px; margin-bottom:10px; max-width:535px; height:100%; vertical-align:top;">
        <div class="rc-data">
              <ul style="border:1px solid blue;-webkit-column-count: {{{cols|}}}; -moz-column-count: {{{cols|}}}; column-count: {{{cols|}}};-webkit-column-width: 235px; -moz-column-width: 235px; column-width: 235px;">
          <ul class="rc-option rc-data"><!--
                  {{#ifeq:{{{option|}}}||
          -->{{#ifeq:{{{standardoption|}}}|<!-- display  other -->
                     |{{#arraymap:{{{option|}}}|;|xx|<li>xx</li>|}}<!--
                |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}
              -->}}<!--
                |{{#arraymap:{{{standardoption|}}}|;|xx
              -->{{#ifeq:{{{other|}}}||
                     |{{MarkOptionTemplate|stdoption=xx|options={{{option|}}} }}
                    |{{#arraymap:{{{other|}}}|;|yy|<li style="color:Green">yy</li>|}}<!--
                    |}}<!--
              -->}}<!--
              -->{{#ifeq:{{{other|}}}||
           --></ul>
                  |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}<!--
</div><!--
              -->}}<!--
-->}}<!--
           -->}}<!--   
-->{{#ifeq:{{{comment|}}}|||<!-- check on title
        --></ul><!--       
         -->{{#ifeq:{{{text|}}}{{{option|}}}{{{list|}}}{{{other|}}}|| <!--
      --></div><!--
           --><div style="clear:left; float:left; width:150px; height:100%; text-align:right; vertical-align:top;">
  -->}}<!--
               <p>'''{{{title|}}}'''</p>
  -->{{#ifeq:{{{comment|}}}|||<!-- check on title
         -->{{#ifeq:{{{text|}}}{{{standardoption|}}}{{{list|}}}{{{other|}}}|| <!--
           --><div class="rc-title">
               <p>{{{title|}}}</p>
               </div><!--
               </div><!--
         -->|}}<!--
         -->|}}<!--
     --><div style="float:left; margin-left:15px; margin-bottom:10px; width:200px; height:100%; vertical-align:">
     --><div class="rc-comment">
         <p>''Note: {{{comment|}}}''</p>
         <p>Note: {{{comment|}}}</p>
         </div><!--
         </div><!--
     -->}}
     -->}}

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