Template:Infobox/row: Difference between revisions

From International Robin Hood Bibliography
m (1 revision)
 
mNo edit summary
Line 1: Line 1:
<noinclude><pre></noinclude>{{#if:{{{header|}}}
{{#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>
  }}
  }}
}}<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>

Revision as of 10:53, 23 December 2020

Generates a row in an infobox; used by Infobox template; not for human use.

Template parameters

ParameterDescriptionTypeStatus
Headerheader

The row header

Stringoptional
Classclass

The CSS class to apply to the row

Stringoptional
HeaderStyleheaderstyle

The CSS for the row header

Stringoptional
Datadata

The text or other data to be displayed

Stringoptional
RowClassrowclass

The CSS class to apply to the row

Unknownoptional
Labellabel

The row label

Stringoptional
LabelStylelabelstyle

The CSS style to apply to the label

Stringoptional
DataStyledatastyle

The CSS style to apply to the row data

Stringoptional