Template:Infobox/row: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (cat: Category:Infobox templates, Category:Undocumented templates)
(Doc (@Johan G: probably needs re-wording))
 
Line 10: Line 10:
  }}
  }}
}}<noinclude>
}}<noinclude>
{{Informative template|1=
== Goal ==
This template is used internally by {{tl|Infobox}} to create rows of data.  It is also used for headers.
{{Caution|This is a template that is used on many pages. Please '''refrain from editing''' this template directly unless it both is really needed and you are absolutely sure you know what you are doing.  Changes can be suggested via the [[Template talk:Infobox/row|talk page]].}}
== Usage ==
{{obr}}'''Infobox/row'''
{{!}}data  =
{{!}}''rowclass'' =
{{!}}''datastyle'' =
{{!}}''class''  =
{{!}}''header'' =
{{!}}''headerstyle'' =
{{!}}''label''  = 
{{!}}''labelstyle'' = 
{{cbr}}
All parameters except '''data''' are optional.
; data: Data put in a row.
; rowclass: Class attribute for a row.  It will be used directly in the template.
; datastyle: Used for extra CSS style attributes.  Used in conjunction with '''data'''.
; class: When the template is used for a header, this will be used directly as the class attribute for the header.  Otherwise, it is used for the table '''data'''.
; header: If given a value, the template will return a HTML table header element (<code><nowiki><th></nowiki></code>), with the value given as the text.
; headerstyle: Used for extra CSS style attributes.  Used in conjunction with '''header'''.
; label: Will add a label to the '''data'''.
; labelstyle: Used for extra CSS style attributes.  Used in conjunction with '''label'''.
== Related templates ==
* {{tl|Infobox}}
}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
[[Category:Undocumented templates]]
 
</noinclude>
</noinclude>

Latest revision as of 08:31, 13 April 2015


The following template description is not displayed when the template is inserted in an article.

Goal

This template is used internally by {{Infobox}} to create rows of data. It is also used for headers.

Caution  This is a template that is used on many pages. Please refrain from editing this template directly unless it both is really needed and you are absolutely sure you know what you are doing. Changes can be suggested via the talk page.

Usage

{{Infobox/row
|data   = 
|rowclass = 
|datastyle = 

|class  = 

|header = 
|headerstyle = 

|label  =  
|labelstyle =  
}}

All parameters except data are optional.

data
Data put in a row.
rowclass
Class attribute for a row. It will be used directly in the template.
datastyle
Used for extra CSS style attributes. Used in conjunction with data.
class
When the template is used for a header, this will be used directly as the class attribute for the header. Otherwise, it is used for the table data.
header
If given a value, the template will return a HTML table header element (<th>), with the value given as the text.
headerstyle
Used for extra CSS style attributes. Used in conjunction with header.
label
Will add a label to the data.
labelstyle
Used for extra CSS style attributes. Used in conjunction with label.

Related templates