Difference between revisions of "Template:dTrow"

From WikiCorporates
Jump to navigation Jump to search
 
Line 1: Line 1:
 
<div {{#if:{{{id|}}}|id="{{{id}}}"}} style="display:table-row;"><!--
 
<div {{#if:{{{id|}}}|id="{{{id}}}"}} style="display:table-row;"><!--
 
--><div style="display:table-cell; padding:0.2em 0.4em; border-bottom:1px solid #aaaaaa;">{{{1}}}</div><!--
 
--><div style="display:table-cell; padding:0.2em 0.4em; border-bottom:1px solid #aaaaaa;">{{{1}}}</div><!--
−
--><div style="display:table-cell; padding:0.2em 0.4em; border-bottom:1px solid #aaaaaa; width:100%;">{{{{2}}}</div><!--
+
--><div style="display:table-cell; padding:0.2em 0.4em; border-bottom:1px solid #aaaaaa; width:100%;">{{{2}}}</div><!--
 
-->{{#if:{{{3|}}}|<div style="display:table-cell; padding:0.2em 0.4em; border-bottom:1px solid #aaaaaa; width:100%;">{{{3}}}</div>}}<!--
 
-->{{#if:{{{3|}}}|<div style="display:table-cell; padding:0.2em 0.4em; border-bottom:1px solid #aaaaaa; width:100%;">{{{3}}}</div>}}<!--
 
--></div><!--
 
--></div><!--
 
--><noinclude>{{doc2}}</noinclude>
 
--><noinclude>{{doc2}}</noinclude>

Latest revision as of 13:38, 17 February 2021

{{{1}}}
{{{2}}}

[edit] Documentation

Usage

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

Used in conjunction with Template:dTrowH and Template:dTrowF.

The parameters are:

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

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

Example

{{dTrowH}}
{{dTrow|Feb.2018|This is a row with some text in it.}}
{{dTrow|Mar.2018|This is a row with some text in it.}}
{{dTrowF}}

Which will give:

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