Template:Div col: Difference between revisions
From Video Credit Archive
Content deleted Content added
imported>Jonesey95 cols= is also deprecated |
imported>Matt Fitzpatrick whitelist parameter class |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< |
<includeonly><templatestyles src="Div col/styles.css"/><!-- |
||
--><div class="div-col {{#ifeq:{{{small|}}}|yes|div-col-small}} {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!-- |
|||
-->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!-- |
|||
| column-width |
|||
-->style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}};}}{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}{{#if:{{{style|}}}|{{{style}}}}}"<!-- |
|||
-->}}><!-- |
|||
-->{{#if: {{{colwidth|{{{2|}}}}}} |
|||
⚫ | |||
| {{column-width|{{{colwidth|{{#if:1|{{{2}}}}}}}}}} |
|||
⚫ | |||
| {{column-count|{{{cols|{{#if:1|{{{1|2}}}}}}}}}} }} <!-- |
|||
⚫ | --></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> |
||
-->{{#if: {{{gap|}}} |
|||
| {{column-gap|{{{gap}}}}} }}<!-- |
|||
-->{{#switch: {{{rules|}}} |
|||
| = <!--empty--> |
|||
| yes = {{column-rule}} |
|||
| {{Column-rule|{{{rules}}}}} }} <!-- |
|||
-->{{#ifeq: {{{small|}}}|yes |
|||
| font-size:90%; }} <!-- |
|||
-->{{#if: {{{style|}}} |
|||
| {{{style}}} }}"><!-- |
|||
-->{{#if: {{{content|}}} |
|||
⚫ | |||
-->{{#ifeq: {{{small|}}}|yes |
|||
⚫ | |||
⚫ | |||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 19:20, 14 February 2021
File:Test Template Info-Icon - Version (2).svg Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |