Difference between revisions of "Template:Columns/doc"

From British Juggling Convention Wiki
Jump to: navigation, search
(updating)
m (Migrating 9 interwiki links, now provided by Wikidata on d:Q5901482)
 
(17 intermediate revisions by 17 users not shown)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly>
+
{{Documentation subpage}}
<noinclude>{{template doc page viewed directly}}</noinclude>
+
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
Template in the vein of navbox templates such as {{tl|Navbox}} to aid the creation of (up to seven) columns across a page.
+
Template in the vein of navbox templates such as {{tl|Navbox}} to aid the creation of (up to ten) columns across a page.
  
 
== Syntax ==
 
== Syntax ==
Line 26: Line 25:
 
<pre>
 
<pre>
 
{{columns
 
{{columns
|col1 = Simplest<br/>instantiation<br/>of
+
|col1 = Simplest<br/>application<br/>of
 
|col2 = this<br/>template
 
|col2 = this<br/>template
 
}}
 
}}
Line 33: Line 32:
 
; Result
 
; Result
 
{{columns
 
{{columns
|col1 = Simplest<br/>instantiation<br/>of
+
|col1 = Simplest<br/>application<br/>of
 
|col2 = this<br/>template
 
|col2 = this<br/>template
 
}}
 
}}
Line 104: Line 103:
 
}}
 
}}
  
== See also ==
+
==See also==
 
+
* {{tl|Columns-list}}
 +
* {{tl|Col-begin}} ({{tl|Col-start}}), {{tl|Col-begin-small}} {{lts/|Col-begin}}
 +
** {{tl|Col-break}}
 +
** {{tl|Col-2}} <small>({{tl|Col-1-of-2}}, {{tl|Col-2-of-2}})</small>
 +
** {{tl|Col-3}} <small>({{tl|Col-1-of-3}}, {{tl|Col-2-of-3}}, {{tl|Col-3-of-3}})</small>
 +
** {{tl|Col-4}} <small>({{tl|Col-1-of-4}}, {{tl|Col-2-of-4}}, {{tl|Col-3-of-4}}, {{tl|Col-4-of-4}})</small>
 +
** {{tl|Col-5}} <small>({{tl|Col-1-of-5}}, {{tl|Col-2-of-5}}, {{tl|Col-3-of-5}}, {{tl|Col-4-of-5}}, {{tl|Col-5-of-5}})</small>
 +
* {{tl|Col-end}} ({{tl|End}})
 +
* {{tl|Top}}, {{tl|Mid}}, {{tl|Bottom}}
 +
* {{tl|Columns-start}}, {{tl|Column}}, {{tl|Columns-end}} {{lts/|Columns-start}}
 +
* {{tl|Multicol}}, {{tl|Multicol-break}}, {{tl|Multicol-end}} {{lts/|Multicol}}
 +
* {{tl|Div col}}, {{tl|Div col end}} {{lts/|Div col}}
  
 
<includeonly>
 
<includeonly>
Line 112: Line 122:
  
 
<!--Other languages-->
 
<!--Other languages-->
[[zh:Template:Columns]]
 
 
</includeonly>
 
</includeonly>

Latest revision as of 07:24, 27 March 2013

Template in the vein of navbox templates such as {{Navbox}} to aid the creation of (up to ten) columns across a page.

Syntax[edit]

{{columns
|bgcol     =       <!--Background colo/ur (default none)-->
|colwidth  =       <!--Width of each column (default 15em)-->
|gap       =       <!--Gap between each column (default 1.25em)-->
|col1width =       <!--use to set a different width for col1-->
|col1      =       <!--mandatory-->
|col2width =       <!--use to set a different width for col2 (etc)-->
|col2      =       <!--mandatory-->
|col3width = 
|col3      = 
...
|col7width = 
|col7      = 
}}

Examples[edit]

Code
{{columns
|col1 = Simplest<br/>application<br/>of
|col2 = this<br/>template
}}
Result
Simplest
application
of
this
template


Code
{{columns |bgcol=beige |width=8.5em |gap=3.25em

|col1 =
* These
* columns
* are
* more
* complex

|col2 =
The<br/>background<br/>is<br/>beige

|col3 =
; Each : column
; is   : 8.5[[Em (typography)|em]]
; wide

|col4 =
{{{!}}
!colspan="2"{{!}} and
{{!-}}
{{!}} the {{!!}} gap
{{!-}}
{{!}}colspan="2"{{!}} between
{{!-}}
{{!}} each {{!!}} is
{{!-}}
!colspan="2" align="center"{{!}} 3.25em
{{!}}}
}}
Result
  • These
  • columns
  • are
  • more
  • complex
The
background
is
beige
Each 
column
is  
8.5em
wide
and
the gap
between
each is
3.25em

See also[edit]