Difference between revisions of "Template:Columns-list"

From Detective Conan Wiki
(Undo revision 367619 by BOBO (talk))
(Tag: Undo)
 
Line 1: Line 1:
<includeonly>
+
<includeonly><div class="columns-list" style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}}; }}{{#if:{{{columns|}}}|column-count: {{{columns}}}; }}column-gap: {{{gap|normal}}};">
<div class="columns-list" style="column-count: {{{columns|}}}; column-width: {{{colwidth|}}}; column-gap: 2em;">
 
 
{{{content}}}
 
{{{content}}}
</div>
+
</div></includeonly>
</includeonly>
 
 
<noinclude>{{Documentation}}
 
<noinclude>{{Documentation}}
  
 
<pre>
 
<pre>
 
{{Columns-list
 
{{Columns-list
|columns  = (can be any number; optimal under 5)
+
|columns  = 4 (can be any number; optimal under 5)
 
|colwidth = 10em
 
|colwidth = 10em
|content  =
+
|content  =  
* <div> (item 1) </div>
+
* (item 1)
* <div> (item 2) </div>
+
* (item 2)
* <div> (item 3) </div>
+
* (item 3)
 
...
 
...
 
}}
 
}}

Latest revision as of 08:38, 25 May 2024

Documentation icon Template documentation[create]
{{Columns-list
|columns  = 4 (can be any number; optimal under 5)
|colwidth = 10em
|content  = 
* (item 1)
* (item 2)
* (item 3)
...
}}