Template:Infobox/row: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{#if:{{{header|}}}
<noinclude><pre></noinclude>{{#if:{{{header|}}}
  |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}</th></tr>
  |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}</th></tr>
  |{{#if:{{{data|}}}
  |{{#if:{{{data|}}}
Line 9: Line 9:
{{{data}}}</td></tr>
{{{data}}}</td></tr>
  }}
  }}
}}</includeonly>
}}<noinclude></pre></noinclude>
<templatedata>
{
"params": {
"header": {
"label": "Header",
"description": "The row header",
"type": "string"
},
"class": {
"label": "Class",
"description": "The CSS class to apply to the row",
"type": "string"
},
"headerstyle": {
"label": "HeaderStyle",
"description": "The CSS for the row header",
"type": "string"
},
"data": {
"label": "Data",
"description": "The text or other data to be displayed",
"type": "string"
},
"rowclass": {
"label": "RowClass",
"description": "The CSS class to apply to the row"
},
"label": {
"label": "Label",
"description": "The row label",
"type": "string"
},
"labelstyle": {
"label": "LabelStyle",
"description": "The CSS style to apply to the label",
"type": "string"
},
"datastyle": {
"label": "DataStyle",
"description": "The CSS style to apply to the row data",
"type": "string"
}
},
"description": "Generates a row in an infobox; used by Infobox template; not for human use."
}
</templatedata>

Latest revision as of 10:59, 23 December 2020

</noinclude>{{#if:{{{header|}}}
 |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}</th></tr>
 |{{#if:{{{data|}}}
  |<tr class="{{{rowclass|}}}">{{#if:{{{label|}}}
   |<th scope="row" style="text-align:left; {{{labelstyle|}}}">{{{label}}}</th>
    <td class="{{{class|}}}" style="{{{datastyle|}}}">
   |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}">
  }}
{{{data}}}</td></tr>
 }}
}}<noinclude>