Difference between revisions of "Template:Infobox"
From LFS Manual
Jump to navigationJump to searchm |
m |
||
Line 39: | Line 39: | ||
{{#if:{{{header1|}}}| | {{#if:{{{header1|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header1style|background-color:#ededed | + | <th colspan="2" style="text-align: center; {{{headerstyle}}}; {{{header1style|background-color:#ededed}}}">{{{header1}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 52: | Line 52: | ||
{{#if:{{{header2|}}}| | {{#if:{{{header2|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header2style|background-color:#ededed | + | <th colspan="2" style="text-align: center; {{{headerstyle}}}; {{{header2style|background-color:#ededed}}}">{{{header2}}}</th> |
</tr> | </tr> | ||
}} | }} |
Revision as of 18:40, 7 December 2023
Template documentation
Usage
Basic
Markup | Renders as | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox | above = Text above | subheader = Subheader of the infobox | header1 = Header 1 text | label1 = Label 1 | data1 = Data 1 | header2 = Header 2 text | label2 = Label 2 | data2 = Data 2 | header3 = Header 3 text | data3 = Data 3 }} |
| ||||||||||||
All parameters
Text above | |
---|---|
Subheader of the infobox | |
Caption below image 1
|
|
Header 1 text | |
Label 1 | Data 1 |
Header 2 text | |
Label 2 | Data 2 |
Without any parameters
Markup | Renders as |
---|---|
{{Infobox}} |
|
Custom styles
Markup | Renders as | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox | titlestyle = background: #ddd; | abovestyle = background: #cfc; | subheaderstyle = background: #ffc; | title = Text in caption over infobox | above = Text above | subheader = Subheader of the infobox | headerstyle = background: #ccf; | labelstyle = background: #ddf; | datastyle = background: #dedede; | header1 = Header 1 text | label1 = Label 1 | data1 = Data 1 | header2style = background: #cff; | header2 = Header 2 text | data2 = Data 2 }} |
| ||||||||||||
Only data rows
Markup | Renders as | ||||||||
---|---|---|---|---|---|---|---|---|---|
{{Infobox | above = Text above | subheader = Subheader of the infobox | label1 = Label 1 | data1 = Data 1 | label2 = Label 2 | data2 = Data 2 | label3 = Label 3 | data3 = Data 3 | data4 = Data 4 | data5 = Data 5 }} |
| ||||||||