Template:Columns: Difference between revisions

m
Text replacement - "style="width: {{{width|90%}}};"" to "class="responsive-col" style="width: {{{width|90%}}};""
mNo edit summary
m (Text replacement - "style="width: {{{width|90%}}};"" to "class="responsive-col" style="width: {{{width|90%}}};"")
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1|}}}|0|
<includeonly>{{#ifeq:{{{1|}}}|0|
{{{!}} style="width: {{{width|90%}}};"
{{{!}} class="responsive-col" style="width: {{{width|90%}}};"
{{!}} style="width: {{#if:{{{4|}}}| {{#if:{{{5|}}}| 25% | 33% }} | 50% }}" {{!}} {{{2}}}
{{!}} style="width: {{#if:{{{4|}}}| {{#if:{{{5|}}}| 25% | 33% }} | 50% }}; vertical-align: top;" {{!}} {{{2}}}
{{!}} style="width: {{#if:{{{4|}}}| {{#if:{{{5|}}}| 25% | 33% }} | 50% }}" {{!}} {{{3}}}{{#if:{{{4|}}}|
{{!}} style="width: {{#if:{{{4|}}}| {{#if:{{{5|}}}| 25% | 33% }} | 50% }}; vertical-align: top;" {{!}} {{{3}}}{{#if:{{{4|}}}|
{{!}} style="width: {{#if:{{{5|}}}| 25% | 33% }}" {{!}} {{{4}}}}}{{#if:{{{5|}}}|
{{!}} style="width: {{#if:{{{5|}}}| 25% | 33% }}; vertical-align: top;" {{!}} {{{4}}}}}{{#if:{{{5|}}}|
{{!}} style="width: 25%" {{!}} {{{5}}}}}
{{!}} style="width: 25%; vertical-align: top;" {{!}} {{{5}}}}}
|}
{{!}}}
|<div style="column-count:{{{1}}};-moz-column-count:{{{1}}};-webkit-column-count:{{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}">
|<div class="columns" style="column-count:{{{1}}};-moz-column-count:{{{1}}};-webkit-column-count:{{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}">
{{{2}}}
{{{2}}}
</div>
</div>
Line 12: Line 12:


==Info==
==Info==
Use this to split a list of items into columns. You can have the content be split automatically or split it yourself. Manual should only be used in cases where automatic would break incorrectly.
Use this to split a list of items into columns. You can have the content be split automatically or split it yourself. Manual should only be used in cases where automatic wouldn't work right.


{| class="wikitable"
{| class="wikitable"
Line 47: Line 47:


==Examples==
==Examples==
{| class="wikitable" style="width: 400px"
{| class="wikitable" style="width: 700px"
! Code || Result
! Code || Result
|-
|-
Line 85: Line 85:
|}
|}


</noinclude>
[[Category:Templates]]</noinclude>