Difference between revisions of "Template:Div col"

From Self-sufficiency
Jump to: navigation, search
m (1 revision)
(add unnamed {{{2}}} parameter for colwidth, for shorthand use ({{div col||10em}} rather than {{div col|colwidth=10em}}) / move unnamed parameters to inside the named ones, to make reading easier)
Line 1: Line 1:
<includeonly><div style="{{#if:{{{colwidth|}}}|-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};|-moz-column-count:{{{1|{{{cols|2}}}}}}; -webkit-column-count:{{{1|{{{cols|2}}}}}}; column-count:{{{1|{{{cols|2}}}}}};}} {{#ifeq:{{lc:{{{small|}}}}}|yes|font-size:90%;}}"></includeonly><noinclude>
+
<includeonly><div class="<!--
 +
-->{{#if: {{{colwidth|{{{2|}}}}}}
 +
    | column-width
 +
    | column-count column-count-{{{cols|{{{1|2}}}}}} }}" style="<!--
 +
-->{{#if: {{{colwidth|{{{2|}}}}}}
 +
    | {{column-width|{{{colwidth|{{{2}}}}}}}}
 +
    | {{column-count|{{{cols|{{{1|2}}}}}}}} }} <!--
 +
-->{{#if: {{{rules|}}}
 +
    | {{#ifeq:{{{rules}}}|yes
 +
      | {{column-rule}}
 +
      | {{column-rule|{{{rules}}}}} }} }} <!--
 +
-->{{#ifeq: {{lc:{{{small|}}}}}|yes
 +
    | font-size:90%; }} <!--
 +
-->{{#if: {{{style|}}}
 +
    | {{{style}}} }}"></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:24, 1 October 2011