Difference between revisions of "Template:Div col"
From PacificNG
m (Andrew Brandon moved page Template:Col div to Template:Div col without leaving a redirect) |
|||
Line 1: | Line 1: | ||
< | <templatestyles src="Div col/styles.css"/><div class="div-col {{#ifeq: {{{small|}}} | yes | ||
| div-col-small | |||
}} {{#ifeq: {{{rules|}}} | yes | |||
| | |div-col-rules | ||
}} {{{class|}}}" <!-- | |||
| {{column-width|{{{colwidth|{{{2}}}}}}}} | -->{{#if: {{{cols|}}}{{{1|}}}{{{colwidth|}}}{{{2|}}}{{{gap|}}}{{{style|}}} | ||
| {{column- | | style="{{#if: {{{cols|}}}{{{1|}}} | ||
| -moz-column-count:{{#if: {{{cols|}}} | |||
| {{{cols|}}} | |||
| {{{1|}}} | |||
}};-webkit-column-count:{{#if: {{{cols|}}} | |||
| {{{cols|}}} | |||
| {{{1|}}} | |||
}};column-count:{{#if: {{{cols|}}} | |||
| {{{cols|}}} | |||
{{Documentation}} | | {{{1|}}} | ||
</noinclude> | }}; | ||
}}{{#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-rule:{{{rules|}}};-webkit-column-rule:{{{rules|}}};column-rule:{{{rules|}}}; | |||
}}{{{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|}}} | |||
| {{{content|}}}</div>[[Category:Pages using div col with content parameter]] | |||
}}<!-- | |||
--><noinclude>{{Div col end}}{{Documentation}}</noinclude> |