Template:Div col: Difference between revisions
From Video Credit Archive
Content deleted Content added
imported>SatyrTN Instructions |
imported>Matt Fitzpatrick whitelist parameter class |
||
(63 intermediate revisions by 21 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Div col/styles.css"/><!-- |
|||
<includeonly><div style="-moz-column-count:2; column-count:2;{{#ifeq: {{lc:{{{small|}}}}} | yes | font-size:80%;|}}"></includeonly><noinclude> |
|||
--><div class="div-col {{#ifeq:{{{small|}}}|yes|div-col-small}} {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!-- |
|||
== Description == |
|||
-->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!-- |
|||
This template is used to make a list into two columns, with the option of specifying a smaller font. |
|||
-->style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}};}}{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}{{#if:{{{style|}}}|{{{style}}}}}"<!-- |
|||
-->}}><!-- |
|||
== Usage == |
|||
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- Inventory how many pages use small=yes |
|||
<pre>{{Div 2col}} |
|||
-->{{#ifeq:{{{small|}}}|yes|[[Category:Pages using div col with small parameter]]}}<!-- |
|||
* a |
|||
--></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> |
|||
* b |
|||
{{Documentation}} |
|||
* c |
|||
* d |
|||
{{Div col end}}</pre> |
|||
;Produces: |
|||
<div style="-moz-column-count:2; column-count:2;{{#ifeq: {{lc:{{{small|}}}}} | yes | font-size:80%;|}}"> |
|||
* a<br> |
|||
* b<br> |
|||
* c<br> |
|||
* d |
|||
</div> |
|||
</noinclude> |
</noinclude> |