Difference between revisions of "Template:Div col"
Jump to navigation
Jump to search
(Created page with "→{{pp|small=yes}}: .div-col { margin-top: 0.3em; column-width: 30em; } .div-col-rules { column-rule: 1px solid #aaa; } →Reset top margin for lists in div col: .di...") |
|||
Line 1: | Line 1: | ||
− | / | + | <includeonly><templatestyles src="Div col/styles.css"/><!-- |
− | + | --><div class="div-col {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!-- | |
− | + | -->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!-- | |
− | + | -->style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}};}}{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}{{#if:{{{style|}}}|{{{style}}}}}"<!-- | |
− | } | + | -->}}><!-- |
− | + | -->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- | |
− | + | --></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 | colwidth | content | gap | rules| style }}<noinclude> | |
− | + | {{Documentation}} | |
− | } | + | </noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | |||
− | / | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } |
Latest revision as of 10:12, 15 February 2024
{{#invoke:Check for unknown parameters|check|unknown={{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = | other | #default = }}|preview=Page using Template:Div col with unknown parameter "_VALUE_"; use colwidth= to specify column size |ignoreblank=y | colwidth | content | gap | rules| style }} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}