Difference between revisions of "Template:Div col"

From Self-sufficiency
Jump to: navigation, search
(remove {{pp-template}})
m (1 revision imported)
 
(4 intermediate revisions by 3 users not shown)
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="div-col columns <!--
 +
-->{{#if: {{{colwidth|{{{2|}}}}}}
 +
    | column-width
 +
    | column-count column-count-{{{cols|{{#if:1|{{{1|2}}}}}}}} }}" style="<!--
 +
-->{{#if: {{{colwidth|{{{2|}}}}}}
 +
    | {{column-width|{{{colwidth|{{#if:1|{{{2}}}}}}}}}}
 +
    | {{column-count|{{{cols|{{#if:1|{{{1|2}}}}}}}}}} }} <!--
 +
-->{{#if: {{{gap|}}}
 +
    | {{column-gap|{{{gap}}}}} }}<!--
 +
-->{{#switch: {{{rules|}}}
 +
    | = <!--empty-->
 +
    | yes = {{column-rule}}
 +
    | {{Column-rule|{{{rules}}}}} }} <!--
 +
-->{{#ifeq: {{{small|}}}|yes
 +
    | font-size:90%; }} <!--
 +
-->{{#if: {{{style|}}}
 +
    | {{{style}}} }}"><!--
 +
-->{{#if: {{{content|}}}
 +
    |{{{content}}}</div>}}<!-- Inventory how many pages use small=yes
 +
-->{{#ifeq: {{{small|}}}|yes
 +
    |[[Category:Pages using div col with small parameter]]}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using div col with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Div col]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | cols | colwidth | content | gap | rules | small | style }}<!--
 +
-->{{main other|{{#if: {{{cols|}}}{{{1|}}}{{{2|}}}|[[Category: Pages using div col with deprecated parameters]]|}}{{#if:{{{cols|}}}{{{colwidth|}}}{{{1|}}}{{{2|}}}||[[Category:Pages using div col without cols and colwidth parameters]]}}}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:57, 17 February 2018