Module:Basic infobox/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Basic infobox
This is a simple module that generates infoboxes.
Usage
The above
field is the content of the header column at the top of the infobox.
Each row is indexed by a number and can have the following elements:
headern
: used for header rowslabeln
: optional label for data rowsdatan
: data for the row (ignored for header rows; hides row when absent or empty otherwise)
Row indices do not have to be continuous.
Styles can be defined with e.g. abovestyle
and labelstylen
.
Example
{{#invoke:basic infobox|main | above = [[Module:Basic infobox]]<br/>''Simple infobox generator'' | data1 = [[File:Placeholder.png|frameless|upright=1.0]] | header2 = | headerstyle2 = font-size:0.5em | label3 = Type | data3 = Module | label4 = Status | data4 = Testing | datastyle4 = background-color:orange | header10 = Discussion page | data11 = [[Module talk:Basic infobox]] }}
Generates:
Module:Basic infobox Simple infobox generator | |
---|---|
Type | Module |
Status | Testing |
Discussion page | |
Module talk:Basic infobox |