Difference between revisions of "Template:Infobox"
From LFS Manual
Jump to navigationJump to searchm |
m |
||
Line 40: | Line 40: | ||
{{#if:{{{header1|}}}| | {{#if:{{{header1|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header1style|{{{headerstyle}}}}}}">{{{header1}}}</th> | + | <th colspan="2" style="text-align: center; {{{header1style|{{{headerstyle|}}}}}}">{{{header1}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 53: | Line 53: | ||
{{#if:{{{header2|}}}| | {{#if:{{{header2|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header2style|{{{headerstyle}}}}}}">{{{header2}}}</th> | + | <th colspan="2" style="text-align: center; {{{header2style|{{{headerstyle|}}}}}}">{{{header2}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 66: | Line 66: | ||
{{#if:{{{header3|}}}| | {{#if:{{{header3|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header3style|{{{headerstyle}}}}}}">{{{header3}}}</th> | + | <th colspan="2" style="text-align: center; {{{header3style|{{{headerstyle|}}}}}}">{{{header3}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 79: | Line 79: | ||
{{#if:{{{header4|}}}| | {{#if:{{{header4|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header4style|{{{headerstyle}}}}}}">{{{header4}}}</th> | + | <th colspan="2" style="text-align: center; {{{header4style|{{{headerstyle|}}}}}}">{{{header4}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 92: | Line 92: | ||
{{#if:{{{header5|}}}| | {{#if:{{{header5|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header5style|{{{headerstyle}}}}}}">{{{header5}}}</th> | + | <th colspan="2" style="text-align: center; {{{header5style|{{{headerstyle|}}}}}}">{{{header5}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 105: | Line 105: | ||
{{#if:{{{header6|}}}| | {{#if:{{{header6|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header6style|{{{headerstyle}}}}}}">{{{header6}}}</th> | + | <th colspan="2" style="text-align: center; {{{header6style|{{{headerstyle|}}}}}}">{{{header6}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 118: | Line 118: | ||
{{#if:{{{header7|}}}| | {{#if:{{{header7|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header7style|{{{headerstyle}}}}}}">{{{header7}}}</th> | + | <th colspan="2" style="text-align: center; {{{header7style|{{{headerstyle|}}}}}}">{{{header7}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 131: | Line 131: | ||
{{#if:{{{header8|}}}| | {{#if:{{{header8|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header8style|{{{headerstyle}}}}}}">{{{header8}}}</th> | + | <th colspan="2" style="text-align: center; {{{header8style|{{{headerstyle|}}}}}}">{{{header8}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 144: | Line 144: | ||
{{#if:{{{header9|}}}| | {{#if:{{{header9|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header9style|{{{headerstyle}}}}}}">{{{header9}}}</th> | + | <th colspan="2" style="text-align: center; {{{header9style|{{{headerstyle|}}}}}}">{{{header9}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 157: | Line 157: | ||
{{#if:{{{header10|}}}| | {{#if:{{{header10|}}}| | ||
<tr> | <tr> | ||
− | <th colspan="2" style="text-align: center; {{{header10style|{{{headerstyle}}}}}}">{{{header10}}}</th> | + | <th colspan="2" style="text-align: center; {{{header10style|{{{headerstyle|}}}}}}">{{{header10}}}</th> |
</tr> | </tr> | ||
}} | }} | ||
Line 166: | Line 166: | ||
| <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2">{{{data10}}}</td> | | <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2">{{{data10}}}</td> | ||
}} | }} | ||
+ | }} | ||
+ | |||
+ | {{#if:{{{below|}}}| | ||
+ | <tr> | ||
+ | <td colspan="2" style="text-align: center; vertical-align: top; {{{belowstyle|}}}">{{{below}}}</td> | ||
+ | </tr> | ||
}} | }} | ||
</table></includeonly><noinclude> | </table></includeonly><noinclude> |
Revision as of 21:50, 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
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 }} |
| ||||||||||||||