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!

m
 
(One intermediate revision by the same user not shown)
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 ==
 
== About ==
 
This template allows users to quickly add content separated by columns into a page.
 
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.
+
Note: if you are going to make a list, use the HTML syntax (<code><nowiki><ul></ul></nowiki></code> or <code><nowiki><ol></ol></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

Latest revision as of 22:31, 4 July 2022

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></ol> 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: