Difference between revisions of "Template:Columns-list"

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

Revision as of 08:32, 25 May 2024

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