Difference between revisions of "Template:Div col"
From Self-sufficiency
m (1 revision) |
(→top: rm tfm notice, no need to have it here) |
||
Line 1: | Line 1: | ||
− | <includeonly><div class="<!-- | + | <includeonly><div class="div-col columns <!-- |
-->{{#if: {{{colwidth|{{{2|}}}}}} | -->{{#if: {{{colwidth|{{{2|}}}}}} | ||
| column-width | | column-width | ||
− | | column-count column-count-{{{cols|{{{1|2}}}}}} }}" style="<!-- | + | | column-count column-count-{{{cols|{{#if:1|{{{1|2}}}}}}}} }}" style="<!-- |
-->{{#if: {{{colwidth|{{{2|}}}}}} | -->{{#if: {{{colwidth|{{{2|}}}}}} | ||
− | | {{column-width|{{{colwidth|{{{2}}}}}}}} | + | | {{column-width|{{{colwidth|{{#if:1|{{{2}}}}}}}}}} |
− | | {{column-count|{{{cols|{{{1|2}}}}}}}} }} <!-- | + | | {{column-count|{{{cols|{{#if:1|{{{1|2}}}}}}}}}} }} <!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{gap|}}} |
− | | {{# | + | | {{column-gap|{{{gap}}}}} }}<!-- |
− | + | -->{{#switch: {{{rules|}}} | |
− | + | | = <!--empty--> | |
− | -->{{#ifeq | + | | yes = {{column-rule}} |
+ | | {{Column-rule|{{{rules}}}}} }} <!-- | ||
+ | -->{{#ifeq: {{{small|}}}|yes | ||
| font-size:90%; }} <!-- | | font-size:90%; }} <!-- | ||
-->{{#if: {{{style|}}} | -->{{#if: {{{style|}}} | ||
− | | {{{style}}} }}"></includeonly><noinclude> | + | | {{{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> |
Revision as of 18:35, 15 January 2018
[edit]
Documentation