Template:DisplayItemTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
</pre>
</pre>
</noinclude><includeonly><!--check on content
</noinclude><includeonly><!--check on content
-->{{#ifeq:{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}||
-->{{#ifeq:{{{option|}}}{{{other|}}}{{{comment|}}}{{{text|}}}||<!--
|<div style="clear:left;float:left;width:150px;">'''{{{title|}}}'''</div>
--><!-- text
{{#ifeq:{{{text|}}}| <!-- if no text, then list options
-->{{#ifeq:{{{text|}}}|||<!--
  -->|<div style="float:left;-webkit-columns:{{{cols|}}}; -moz-columns:{{{cols|}}}; columns:{{{cols|}}};"><!--
-->{|
--><ul>{{#arraymap:{{{option|}}}|;|xx|<li>xx</li>|}}<!--
    !style="width:150px;|{{{title|}}}
-->{{#ifeq:{{{other|}}}|||{{#arraymap:{{{other|}}}|;|yy|<li style="color:Green">yy</li>|}} }}
    |{{{text|}}}
</ul></div><!--
    |}<!--
--><!--
-->}}<!--
-->{{#ifeq:{{{comment|}}}||<!--
-->{{#ifeq:{{{option|}}}{{{other|}}}{{{comment|}}}|||<!--
   -->|<div style="clear:left;margin-left:160px;font-style: italic;">Note: {{{comment|}}}</div><!--
--><!-- trio option, other, comment
-->}}<!--
  -->{|
here comes the text
    !style="width:150px;|{{{title|}}}
-->|<div>{{{text|}}}</div><!--
    |style="float:left;-webkit-columns:{{{cols|}}}; -moz-columns:{{{cols|}}}; columns:{{{cols|}}};"<!--
-->}} }}</includeonly>
      -->|<ul>!--
      -->{{#ifeq:{{{option|}}}||
          |{{#arraymap:{{{option|}}}|;|xx|<li>xx</li>|}}
        }}<!--
      -->{{#ifeq:{{{other|}}}||
          |{{#arraymap:{{{other|}}}|;|yy|<li style="color:Green">yy</li>|}}  
        }}</ul><!--
      -->{{#ifeq:{{{comment|}}}|||<!--
   -->|
      |''Note: {{{comment|}}}'' }}
      |}
</includeonly>

Revision as of 10:12, 21 August 2016

title
option
other
comment
text
cols