Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Div col: Difference between revisions

Template page
No edit summary
m stricter check of default values for named parameters which are aliasing numbered parameters
Line 1: Line 1:
<includeonly><templatestyles src="Div col/styles.css"/><!--
<templatestyles src="Div col/styles.css"/><div class="div-col {{#ifeq: {{{small|}}} | yes
--><div class="div-col {{#ifeq:{{{small|}}}|yes|div-col-small}} {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!--
  | div-col-small
-->{{#if:{{{cols|{{{1|}}}}}}{{{colwidth|{{{2|}}}}}}{{{gap|}}}{{{style|}}}|<!--
  }} {{#ifeq: {{{rules|}}} | yes
-->style="{{#if:{{{cols|{{{1|}}}}}}|column-count:{{{cols|{{{1|}}}}}};}} {{#if:{{{colwidth|{{{2|}}}}}}|column-width:{{{colwidth|{{{2|}}}}}};}} {{#if:{{{gap|}}}|column-gap:{{{gap}}};}} {{#if:{{{style|}}}|{{{style}}}}}"<!--
  |div-col-rules
-->}}><!--
  }} {{{class|}}}" <!--
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- Inventory how many pages use small=yes  
-->{{#if: {{{cols|}}}{{{1|}}}{{{colwidth|}}}{{{2|}}}{{{gap|}}}{{{style|}}
-->{{#ifeq:{{{small|}}}|yes|[[Category:Pages using div col with small parameter]]}}</includeonly><noinclude>
| style="{{#if: {{{cols|}}}{{{1|}}}
{{Documentation}}
  | -moz-column-count:{{#if: {{{cols|}}}
</noinclude>
    | {{{cols|}}}
    | {{{1|}}}
    }};-webkit-column-count:{{#if: {{{cols|}}}
    | {{{cols|}}}
    | {{{1|}}}
    }};column-count:{{#if: {{{cols|}}}
    | {{{cols|}}}
    | {{{1|}}}
    }};
  }}{{#if: {{{colwidth|}}}{{{2|}}}
  | -moz-column-width:{{#if: {{{colwidth|}}}
    | {{{colwidth|}}}
    | {{{2|}}}
    }};-webkit-column-width:{{#if: {{{colwidth|}}}
    | {{{colwidth|}}}
    | {{{2|}}}
    }};column-width:{{#if: {{{colwidth|}}}
    | {{{colwidth|}}}
    | {{{2|}}}
    }};
  }}{{#if: {{{gap|}}}
  | -moz-column-gap:{{{gap|}}};-webkit-column-gap:{{{gap|}}};column-gap:{{{gap|}}};
  }}{{#switch: {{{rules|}}}
  ||yes=
  |#default=-moz=column-rules:{{{rules|}}};-webkit-column-rules:{{{rules|}}};column-rules:{{{rules|}}};
  }}{{#if: {{{content|}}}
  | margin:{{#if: {{{margin|}}}
    | {{{margin|}}}
    | .3em
    }} 0;
  }}{{{style|}}}"
}}><!-- Inventory how many pages use small=yes  
-->{{#ifeq: {{{small|}}} | yes
| [[Category:Pages using div col with small parameter]]
}}<!-- Inventory how many pages use content=*
-->{{#if: {{{content|}}}
| <div style="margin:-{{#if: {{{margin|}}}
  | {{{margin|}}}
  | .3em
  }} 0">{{{content|}}}</div><!--
  --></div>[[Category:Pages using div col with content parameter]]
}}<!--
--><noinclude>{{Div col end}}{{Documentation}}</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.