Difference between revisions of "Template:trow/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 16: Line 16:
 
=== Examples ===
 
=== Examples ===
  
−
1. This example gives a nicely-spaced layout, with rows separated by a line.
+
==== 1. This example gives a nicely-spaced layout, with rows separated by a line. ====
 
<pre>
 
<pre>
−
== This is Header #1 ==
+
== Table Header #1 ==
−
<table class="timeline plain"> -- or {{trowH}}
+
{{trowH}}                      -- or <table class="timeline plain">
 
{{trow|Mar.2018|This is a row with some text in it.}}
 
{{trow|Mar.2018|This is a row with some text in it.}}
 
{{trow|Jan.2018|This is a row with some text in it.}}
 
{{trow|Jan.2018|This is a row with some text in it.}}
−
</table>                        -- or {{trowF}}
+
{{trowF}}                       -- or </table>
 
</pre>
 
</pre>
−
== Table Heading ==
+
== Table Header #1 ==
−
<table class="timeline plain">
+
{{trowH}}
 
{{trow|Mar.2018|This is a row with some text in it.}}
 
{{trow|Mar.2018|This is a row with some text in it.}}
 
{{trow|Jan.2018|This is a row with some text in it.}}
 
{{trow|Jan.2018|This is a row with some text in it.}}
−
</table>
+
{{trowF}}
  
−
2. This example gives a somewhat tighter layout, and no lines between rows. Suitable for small lists.
+
<p>&nbsp;</p>
 +
==== 2. This example gives a somewhat tighter layout, and no lines between rows. Suitable for small lists. ====
 
<pre>
 
<pre>
−
=== This is Header #2 ===
+
=== Table Header #2 ===
 
<table class="timeline">
 
<table class="timeline">
 
{{trow|Mar.2018|This is a row with some text in it.}}
 
{{trow|Mar.2018|This is a row with some text in it.}}
Line 38: Line 39:
 
</table>
 
</table>
 
</pre>
 
</pre>
−
== Table Heading ==
+
== Table Header #2 ==
 
<table class="timeline">
 
<table class="timeline">
 
{{trow|Mar.2018|This is a row with some text in it.}}
 
{{trow|Mar.2018|This is a row with some text in it.}}

Revision as of 09:14, 17 October 2018

<< Template:trow

Usage

Template for a table row. Note that the table declaration must be made separately. Also note that the table rows only have a "border-bottom", as they are designed to start directly underneath a header.

Can be used in conjunction with Template:trowH and Template:trowF.
See Energy Policy § Renewables and J Sainsbury plc § Timeline for example usage.

The parameters are:

{{{1}}} - 1st cell text
{{{2}}} - 2nd cell text
{{{3}}} - optional 3rd cell text

Examples

1. This example gives a nicely-spaced layout, with rows separated by a line.

== Table Header #1 ==
{{trowH}}                       -- or <table class="timeline plain">
{{trow|Mar.2018|This is a row with some text in it.}}
{{trow|Jan.2018|This is a row with some text in it.}}
{{trowF}}                       -- or </table>

Table Header #1

Mar.2018This is a row with some text in it.
Jan.2018This is a row with some text in it.

 

2. This example gives a somewhat tighter layout, and no lines between rows. Suitable for small lists.

=== Table Header #2 ===
<table class="timeline">
{{trow|Mar.2018|This is a row with some text in it.}}
{{trow|Jan.2018|This is a row with some text in it.}}
</table>

Table Header #2

Mar.2018This is a row with some text in it.
Jan.2018This is a row with some text in it.