Difference between revisions of "Template:trow/doc"

From WikiCorporates
Jump to navigation Jump to search
(→‎Table Header #2)
(→‎Table Header #2)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{Breadcrumbs|[[Template:trow]]|Doc}}
 
__NOTOC__
 
__NOTOC__
−
<small><< [[Template:trow]]</small>
 
 
=== Usage ===
 
=== 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.
 
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]].<br/>
+
Ssed in conjunction with [[Template:trowH]] and [[Template:trowF]].<br/>
 
See {{slink|Energy_Policy#Renewables}} and {{slink|J Sainsbury plc#Timeline}} for example usage.
 
See {{slink|Energy_Policy#Renewables}} and {{slink|J Sainsbury plc#Timeline}} for example usage.
  
 
The parameters are:
 
The parameters are:
 
<pre>
 
<pre>
−
|id    = optional. Can be used to give a table row a unique id. See [[Perpetual Ltd]], "Amvescap plc" for an eg.
+
|id    - optional. Can be used to give a table row a unique id.
 
{{{1}}} - 1st cell text
 
{{{1}}} - 1st cell text
 
{{{2}}} - 2nd cell text
 
{{{2}}} - 2nd cell text
Line 15: Line 15:
 
{{{4}}} - optional 4th cell text
 
{{{4}}} - optional 4th cell text
 
</pre>
 
</pre>
 +
Example of "id" usage:<br/>
 +
<tt><nowiki>{{trow |id=AmvescapPlc |May.1997 |{{em|b=1|Amvescap plc:}} another name change, because ''it seemed like a better fit than "Amvesco".'' }} </nowiki></tt>
  
 
=== Examples ===
 
=== Examples ===
Line 42: Line 44:
 
</pre>
 
</pre>
 
== Table Header #2 ==
 
== Table Header #2 ==
 +
<pre>
 +
<table class="timeline tight">
 +
{{trow|Mar.2018|This is a row with some text in it.}}
 +
{{trow|id=FindMe|Jan.2018|This is a row with some text in it, and an id "FindMe".}}
 +
{{trow|Mar.2019|This is another row with some text in it.}}
 +
</table>
 +
</pre>
 
<table class="timeline tight">
 
<table class="timeline tight">
 
{{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|id=FindMe|Jan.2018|This is a row with some text in it, and an id.}}
+
{{trow|id=FindMe|Jan.2018|This is a row with some text in it, and an id "FindMe".}}
−
<tr id="blah"><td>testing</td></tr>
+
{{trow|Mar.2019|This is another row with some text in it.}}
 
</table>
 
</table>
  
Line 54: Line 63:
 
{{trow|5.33% |{{flag|USA}} |[[Templeton Global Advisors Ltd]] |{{img|Franklin-Templeton-horiz.svg|192|25|float=none}} }}
 
{{trow|5.33% |{{flag|USA}} |[[Templeton Global Advisors Ltd]] |{{img|Franklin-Templeton-horiz.svg|192|25|float=none}} }}
 
{{trow|5.32% |{{flag|USA}} |[[Mondrian Investment Partners Ltd]] |{{img|Mondrian-Investment-Partners.svg|117|25|float=none}} }}
 
{{trow|5.32% |{{flag|USA}} |[[Mondrian Investment Partners Ltd]] |{{img|Mondrian-Investment-Partners.svg|117|25|float=none}} }}
−
{{trow|3.09% |{{flag|USA}} |[[Capital Research & Management Company]] |{{img|Capital-Group-Companies-horiz-ink.svg|79|25|float=none}} {{img|Coal-Financing.svg|31|20|float=none}} }}
+
{{trow|3.09% |{{flag|USA}} |[[Capital Research & Management Company]] |{{img|Capital-Group-Companies-horiz-ink.svg|79|25|float=none}} [[File:Coal-Financing.svg|31x20px]] }}
 
</table>
 
</table>
 
</pre>
 
</pre>
Line 60: Line 69:
 
{{trow|5.33%|{{flag|USA}}|[[Templeton Global Advisors Ltd]]|{{img|Franklin-Templeton-horiz.svg|192|25|float=none}} }}
 
{{trow|5.33%|{{flag|USA}}|[[Templeton Global Advisors Ltd]]|{{img|Franklin-Templeton-horiz.svg|192|25|float=none}} }}
 
{{trow|5.32%|{{flag|USA}}|[[Mondrian Investment Partners Ltd]]|[[File:Mondrian-Investment-Partners.svg|117x25px]] }}
 
{{trow|5.32%|{{flag|USA}}|[[Mondrian Investment Partners Ltd]]|[[File:Mondrian-Investment-Partners.svg|117x25px]] }}
−
{{trow|3.09%|{{flag|USA}}|[[Capital Research & Management Company]]|{{img|Capital-Group-Companies-horiz.svg|79|25px|float=none}} {{img|Coal-Financing.svg|31|20|float=none}} }}
+
{{trow|3.09%|{{flag|USA}}|[[Capital Research & Management Company]]|{{img|Capital-Group-Companies-horiz.svg|79|25px|float=none}} [[File:Coal-Financing.svg|31x20px]] }}
 
</table>
 
</table>
  
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
+
<includeonly>[[Category:WikiCorporates templates]]</includeonly>

Latest revision as of 16:49, 7 August 2023

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.

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

The parameters are:

|id     - optional. Can be used to give a table row a unique id.
{{{1}}} - 1st cell text
{{{2}}} - 2nd cell text
{{{3}}} - optional 3rd cell text
{{{4}}} - optional 4th cell text

Example of "id" usage:
{{trow |id=AmvescapPlc |May.1997 |{{em|b=1|Amvescap plc:}} another name change, because ''it seemed like a better fit than "Amvesco".'' }}

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 tight">
{{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

<table class="timeline tight">
{{trow|Mar.2018|This is a row with some text in it.}}
{{trow|id=FindMe|Jan.2018|This is a row with some text in it, and an id "FindMe".}}
{{trow|Mar.2019|This is another row with some text in it.}}
</table>
<tr id="FindMe">
Mar.2018This is a row with some text in it.
Jan.2018This is a row with some text in it, and an id "FindMe".
Mar.2019This is another row with some text in it.

 

3. This example can be used for shareholder tables

<table class="shareholders">
{{trow|5.33% |{{flag|USA}} |[[Templeton Global Advisors Ltd]] |{{img|Franklin-Templeton-horiz.svg|192|25|float=none}} }}
{{trow|5.32% |{{flag|USA}} |[[Mondrian Investment Partners Ltd]] |{{img|Mondrian-Investment-Partners.svg|117|25|float=none}} }}
{{trow|3.09% |{{flag|USA}} |[[Capital Research & Management Company]] |{{img|Capital-Group-Companies-horiz-ink.svg|79|25|float=none}} [[File:Coal-Financing.svg|31x20px]] }}
</table>
5.33%Flag-USA.svgTempleton Global Advisors Ltd
5.32%Flag-USA.svgMondrian Investment Partners LtdMondrian-Investment-Partners.svg
3.09%Flag-USA.svgCapital Research & Management Company Coal-Financing.svg