Template:DisplayItemTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(138 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 class="rc-row"><!--
   -->{{#ifeq:{{{text|}}}||| <!--  display text  -->
   -->{{#ifeq:{{{text|}}}||| <!--  display text  -->
      <table>
         <div class="rc-title">
         <tr><th style="width:150px;">{{{title|}}}</th>
        <p >{{{title|}}}</p>
            <td>{{{text|}}}</td></tr><!--
        </div>
    -->{{#ifeq:{{{comment|}}}|||
        <div class="rc-data">
          <tr><td></td>
        <p>{{{text|}}}</p>
              <td>''Note: {{{comment|}}}''</td></tr><!--
        </div><!--
    -->}}         
      </table><!--
   -->}}<!--
   -->}}<!--
   -->{{#ifeq:{{{option|}}}{{{other|}}}{{{comment|}}}|||<!-- trio option, other, comment -->
   -->{{#ifeq:{{{list|}}}||| <!--  display list, list assumes text for title display  -->
      <table>
        <div class="rc-title"><p></p></div>
        {{#ifeq:{{{option|}}}{{{other|}}}|||
        <div class="rc-data">
         <tr><th style="width:150px;">|{{{title|}}}</th>
        <ol class="rc-data">
            <td style="-webkit-columns:{{{cols|}}}; -moz-columns:{{{cols|}}}; columns:{{{cols|}}};">
        {{#arraymap:{{{list|}}}|;|xx|<li class="rc-data">xx</li>|}}</ol>
              <ul>{{#ifeq:{{{option|}}}||
        </div><!--
                     |{{#arraymap:{{{option|}}}|;|xx|<li>xx</li>|}}<!--
  -->}}<!--
              -->}}<!--
  -->{{#ifeq:{{{standardoption|}}}{{{other|}}}|||
              -->{{#ifeq:{{{other|}}}||
         <div class="rc-title">
                    |{{#arraymap:{{{other|}}}|;|yy|<li style="color:Green">yy</li>|}}<!--
          <p>{{{title|}}}</p>
              -->}}<!--
        </div>
           --></ul></td></tr><!--
        <div class="rc-data">
    -->}}<!--
          <ul class="rc-option rc-data"><!--
    -->{{#ifeq:{{{comment|}}}|||
          -->{{#ifeq:{{{standardoption|}}}|<!-- display  other -->
           <tr><td></td>
                |{{#arraymap:{{{other|}}}|;|yy|<li class="rc-option rc-spec">yy</li>|}}
               <td>''Note: {{{comment|}}}''</td></tr><!--
                |{{#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><!--
     -->}}
     -->}}
      </table><!--
  </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