Difference between revisions of "Template:Columns-list"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

Line 1: Line 1:
 
<includeonly><div class="columns-list {{{class|}}}" style="columns: {{{columns|2}}}; {{#if: {{{gap|}}}|gap: {{{gap|}}}; column-gap: {{{gap|}}}}} {{#if: {{{small|true}}}|font-size: 90%;}} {{{style|}}}">{{{content|}}}</div></includeonly><noinclude>
 
<includeonly><div class="columns-list {{{class|}}}" style="columns: {{{columns|2}}}; {{#if: {{{gap|}}}|gap: {{{gap|}}}; column-gap: {{{gap|}}}}} {{#if: {{{small|true}}}|font-size: 90%;}} {{{style|}}}">{{{content|}}}</div></includeonly><noinclude>
 +
== About ==
 +
This template allows users to quickly add content separated by columns into a page.
 +
 
== Syntax ==
 
== Syntax ==
 +
Note: if you are going to make a list, use the HTML syntax (<code><nowiki><ul></ul></nowiki></code> or <code><nowiki><ol></ul></nowiki></code> to specify wether it is an unordered [or "dots"] or ordered [or "numbered"] list respectively, and then <code><nowiki><li></li></nowiki></code> for each list item inside of any of the previous tags) so the first item also goes inside the list.
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Columns-list
 
{{Columns-list
Line 15: Line 19:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Columns-list
 
{{Columns-list
| content =
+
| content =  
* {{Ilink|Wood}}
+
<ul>
* {{Ilink|Cobblestone}}
+
<li>{{Ilink|Wood}}</li>
* {{Ilink|Wooden Planks}}
+
<li>{{Ilink|Cobblestone}}</li>
* {{Ilink|Stone}}
+
<li>{{Ilink|Wooden Planks}}</li>
* {{Ilink|Stick}}
+
<li>{{Ilink|Stone}}</li>
 +
<li>{{Ilink|Stick}}</li>
 +
</ul>
 
| gap = 2em
 
| gap = 2em
 
| small = true
 
| small = true
Line 29: Line 35:
  
 
{{Columns-list
 
{{Columns-list
| content =
+
| content =  
* {{Ilink|Wood}}
+
<ul>
* {{Ilink|Cobblestone}}
+
<li>{{Ilink|Wood}}</li>
* {{Ilink|Wooden Planks}}
+
<li>{{Ilink|Cobblestone}}</li>
* {{Ilink|Stone}}
+
<li>{{Ilink|Wooden Planks}}</li>
* {{Ilink|Stick}}
+
<li>{{Ilink|Stone}}</li>
 +
<li>{{Ilink|Stick}}</li>
 +
</ul>
 
| gap = 2em
 
| gap = 2em
 
| small = true
 
| small = true
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 08:33, 21 December 2021

About

This template allows users to quickly add content separated by columns into a page.

Syntax

Note: if you are going to make a list, use the HTML syntax (<ul></ul> or <ol></ul> to specify wether it is an unordered [or "dots"] or ordered [or "numbered"] list respectively, and then <li></li> for each list item inside of any of the previous tags) so the first item also goes inside the list.

{{Columns-list
| content = 
| columns = 
| class = 
| style = 
| gap = 
| small = <true>?
}}

Example

{{Columns-list
| content = 
<ul>
<li>{{Ilink|Wood}}</li>
<li>{{Ilink|Cobblestone}}</li>
<li>{{Ilink|Wooden Planks}}</li>
<li>{{Ilink|Stone}}</li>
<li>{{Ilink|Stick}}</li>
</ul>
| gap = 2em
| small = true
}}
Results in: