Template:Div col: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Waldyrious
(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)
m (1 revision imported)
 
(26 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly><div class="<!--
<includeonly><templatestyles src="Div col/styles.css"/><!--
-->{{#if: {{{colwidth|{{{2|}}}}}}
--><div class="div-col {{#ifeq:{{{small|}}}|yes|div-col-small}} {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!--
    | column-width
-->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!--
    | column-count column-count-{{{cols|{{{1|2}}}}}} }}" style="<!--
-->style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}};}}{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}{{#if:{{{style|}}}|{{{style}}}}}"<!--
-->{{#if: {{{colwidth|{{{2|}}}}}}
-->}}><!--
    | {{column-width|{{{colwidth|{{{2}}}}}}}}
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- Inventory how many pages use small=yes
    | {{column-count|{{{cols|{{{1|2}}}}}}}} }} <!--
-->{{#ifeq:{{{small|}}}|yes|[[Category:Pages using div col with small parameter]]}}<!--
-->{{#if: {{{rules|}}}
--></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_"; use colwidth= to specify column size |ignoreblank=y | class | colwidth | content | gap | rules | small | style }}<noinclude>
    | {{#ifeq:{{{rules}}}|yes
      | {{column-rule}}
      | {{column-rule|{{{rules}}}}} }} }} <!--
-->{{#ifeq: {{lc:{{{small|}}}}}|yes
    | font-size:90%; }} <!--
-->{{#if: {{{style|}}}
    | {{{style}}} }}"></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 15:31, 6 September 2021