Difference between revisions of "Template:Div col"

From Self-sufficiency
Jump to: navigation, search
m (1 revision)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
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: {{{rules|}}}
+
  -->{{#if: {{{gap|}}}
     | {{#ifeq:{{{rules}}}|yes
+
     | {{column-gap|{{{gap}}}}} }}<!--
      | {{column-rule}}
+
-->{{#switch: {{{rules|}}}
      | {{column-rule|{{{rules}}}}} }} }} <!--
+
    | = <!--empty-->
  -->{{#ifeq: {{lc:{{{small|}}}}}|yes
+
    | 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>

Latest revision as of 20:57, 17 February 2018