Template:Div col: Difference between revisions
Template page
More actions
No edit summary |
m stricter check of default values for named parameters which are aliasing numbered parameters |
||
| Line 1: | Line 1: | ||
<templatestyles src="Div col/styles.css"/><div class="div-col {{#ifeq: {{{small|}}} | yes | |||
| div-col-small | |||
-->{{#if:{{{cols|{{{1|}}}}}}{{{ | }} {{#ifeq: {{{rules|}}} | yes | ||
-- | |div-col-rules | ||
-- | }} {{{class|}}}" <!-- | ||
-->{{#if: {{{cols|}}}{{{1|}}}{{{colwidth|}}}{{{2|}}}{{{gap|}}}{{{style|}} | |||
-->{{#ifeq:{{{small|}}}|yes|[[Category:Pages using div col with small parameter]]}}</ | | 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> | |||