Difference between revisions of "Template:trow/doc"
Jump to navigation
Jump to search
m (→3. This example can be used for shareholder tables) |
m (→3. This example can be used for shareholder tables) |
||
| Line 50: | Line 50: | ||
<pre> | <pre> | ||
<table class="shareholders"> | <table class="shareholders"> | ||
| − | {{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}} {{img|Coal-Financing.svg|31|20|float=none}} }} |
</table> | </table> | ||
</pre> | </pre> | ||
Revision as of 21:39, 7 June 2019
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
{{{4}}} - optional 4th 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.2018 | This is a row with some text in it. |
| Jan.2018 | This 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
| Mar.2018 | This is a row with some text in it. |
| Jan.2018 | This is a row with some text in it. |
<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}} {{img|Coal-Financing.svg|31|20|float=none}} }}
</table>
| 5.33% | Templeton Global Advisors Ltd | ||
| 5.32% | Mondrian Investment Partners Ltd | ||
| 3.09% | Capital Research & Management Company |