(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="row {{{class|}}}">
 
<includeonly><div class="row {{{class|}}}">
 
{{{1}}}
 
{{{1}}}
</div></includeonly>
+
</div></includeonly><noinclude>
<noinclude>
+
= Template:Row =
= Template:Columns =
+
  
 
A '''mandatory''' wrapper for one or more instances of [[Template:Column]].
 
A '''mandatory''' wrapper for one or more instances of [[Template:Column]].
Line 9: Line 8:
 
== Synopsis ==
 
== Synopsis ==
  
  <nowiki>{{</nowiki>Columns | class = <var>optional additional CSS classes</var> |
+
  <nowiki>{{</nowiki>Row | class = <var>optional additional CSS classes</var> |
 
  <var>content consisting of one or more <nowiki>{{</nowiki>[[Template:Column|Column]] | … }}</var>
 
  <var>content consisting of one or more <nowiki>{{</nowiki>[[Template:Column|Column]] | … }}</var>
 
  }}
 
  }}
Line 15: Line 14:
 
== Example ==
 
== Example ==
  
{{Columns|
+
<div class="row">
{{Column|width=6|content=
+
<div class="col-md-6">
  <nowiki>{{Columns |
+
  <nowiki>{{Row |
 
{{Column
 
{{Column
 
     | width = 4
 
     | width = 4
     | content =
+
     | column-content =
A narrow column
+
A narrower 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 |
+
{{Row |
 
{{Column
 
{{Column
 
     | width = 4
 
     | width = 4
     | content =
+
     | column-content =
A narrow column
+
A narrower column. # # # # # # # # # # # # # # # # # # # #
 
}}
 
}}
 
{{Column
 
{{Column
 
     | width = 6
 
     | width = 6
     | content =
+
     | column-content =
A wider column
+
A wider column. @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
}}
+
}}
+
 
}}
 
}}
 
}}
 
}}
 +
</div>
 +
</div>

Latest revision as of 01:27, 8 September 2017

Template:Row

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

Synopsis

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

Example

{{Row |
{{Column
    | width = 4
    | column-content =
A narrower column
}}
{{Column
    | width = 6
    | column-content =
A wider column
}}
}}

A narrower column. # # # # # # # # # # # # # # # # # # # #

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