Line 15: Line 15:
 
== Example ==
 
== Example ==
  
{{Columns|
+
<div class="row">
{{Column|width=6|content=
+
<div class="col-md-6">
 
  <nowiki>{{Columns |
 
  <nowiki>{{Columns |
 
{{Column
 
{{Column
 
     | width = 4
 
     | width = 4
     | content =
+
     | column-content =
 
A narrow column
 
A narrow column
 
}}
 
}}
 
{{Column
 
{{Column
 
     | width = 6
 
     | width = 6
     | content =
+
     | column-content =
 
A wider column
 
A wider column
 
}}
 
}}
 
}}</nowiki>
 
}}</nowiki>
}}
+
</div>
{{Column|width=6|content=
+
<div class="col-md-6">
 
{{Columns |
 
{{Columns |
 
{{Column
 
{{Column
 
     | width = 4
 
     | width = 4
     | content =
+
     | column-content =
A narrow column
+
A narrow column. # # # # # # # # # # # # # # # # # # # #
 
}}
 
}}
 
{{Column
 
{{Column
 
     | width = 6
 
     | width = 6
     | content =
+
     | column-content =
A wider column
+
A wider column. @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
}}
+
}}
+
 
}}
 
}}
 
}}
 
}}
 +
</div>
 +
</div>

Revision as of 16:22, 7 September 2017


Template:Columns

A mandatory wrapper for one or more instances of Template:Column.

Synopsis

{{Columns | class = optional additional CSS classes |
content consisting of one or more {{Column | … }}
}}

Example

{{Columns |
{{Column
    | width = 4
    | column-content =
A narrow column
}}
{{Column
    | width = 6
    | column-content =
A wider column
}}
}}

A narrow column. # # # # # # # # # # # # # # # # # # # #

A wider column. @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @