Difference between revisions of "Template:Div col"

From PacificNG
m (Andrew Brandon moved page Template:Col div to Template:Div col without leaving a redirect)
 
Line 1: Line 1:
<includeonly><div class="<!--
<templatestyles src="Div col/styles.css"/><div class="div-col {{#ifeq: {{{small|}}} | yes
-->{{#if: {{{colwidth|{{{2|}}}}}}
  | div-col-small
    | column-width
  }} {{#ifeq: {{{rules|}}} | yes
     | column-count column-count-{{{cols|{{{1|2}}}}}} }}" style="<!--
  |div-col-rules
-->{{#if: {{{colwidth|{{{2|}}}}}}
  }} {{{class|}}}" <!--
     | {{column-width|{{{colwidth|{{{2}}}}}}}}
-->{{#if: {{{cols|}}}{{{1|}}}{{{colwidth|}}}{{{2|}}}{{{gap|}}}{{{style|}}}
     | {{column-count|{{{cols|{{{1|2}}}}}}}} }} <!--
| style="{{#if: {{{cols|}}}{{{1|}}}
-->{{#if: {{{rules|}}}
  | -moz-column-count:{{#if: {{{cols|}}}
    | {{#ifeq:{{{rules}}}|yes
    | {{{cols|}}}
      | {{column-rule}}
     | {{{1|}}}
      | {{column-rule|{{{rules}}}}} }} }} <!--
    }};-webkit-column-count:{{#if: {{{cols|}}}
-->{{#ifeq: {{{small|}}}|yes
    | {{{cols|}}}
    | font-size:90%; }} <!--
    | {{{1|}}}
-->{{#if: {{{style|}}}
    }};column-count:{{#if: {{{cols|}}}
    | {{{style}}} }}"></includeonly><noinclude>[[Category:Formatting templates|{{PAGENAME}}]]
    | {{{cols|}}}
{{Documentation}}
    | {{{1|}}}
</noinclude>
     }};
  }}{{#if: {{{colwidth|}}}{{{2|}}}
  | -moz-column-width:{{#if: {{{colwidth|}}}
    | {{{colwidth|}}}
    | {{{2|}}}
    }};-webkit-column-width:{{#if: {{{colwidth|}}}
    | {{{colwidth|}}}
     | {{{2|}}}
    }};column-width:{{#if: {{{colwidth|}}}
    | {{{colwidth|}}}
    | {{{2|}}}
    }};
  }}{{#if: {{{gap|}}}
  | -moz-column-gap:{{{gap|}}};-webkit-column-gap:{{{gap|}}};column-gap:{{{gap|}}};
  }}{{#switch: {{{rules|}}}
  ||yes=
  |#default=-moz=column-rule:{{{rules|}}};-webkit-column-rule:{{{rules|}}};column-rule:{{{rules|}}};
  }}{{{style|}}}"
}}><!-- Inventory how many pages use small=yes
-->{{#ifeq: {{{small|}}} | yes
| [[Category:Pages using div col with small parameter]]
}}<!-- Inventory how many pages use content=*
-->{{#if: {{{content|}}}
| {{{content|}}}</div>[[Category:Pages using div col with content parameter]]
}}<!--
--><noinclude>{{Div col end}}{{Documentation}}</noinclude>

Latest revision as of 14:09, 26 January 2024

<templatestyles src="Div col/styles.css"/>

{{#ifeq: | yes

| }}{{#if:

|

}}Template:Documentation