Difference between revisions of "Template:Infobox"
From LFS Manual
Jump to navigationJump to searchm |
m |
||
Line 266: | Line 266: | ||
</tr> | </tr> | ||
}} | }} | ||
+ | |||
+ | <!-- Code for Number 15 --> | ||
+ | {{#if:{{{header15|}}}| | ||
+ | <tr> | ||
+ | <th colspan="2" style="text-align: center; {{{header15style|{{{headerstyle|}}}}}}">{{{header15}}}</th> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{data15|}}}| | ||
+ | <tr> | ||
+ | {{#if:{{{label15|}}} | ||
+ | | <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label15}}}</th> | ||
+ | <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}"> | ||
+ | {{{data15}}}</td> | ||
+ | | <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2"> | ||
+ | {{{data15}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Repeat the pattern for numbers 16 to 20 --> | ||
+ | <!-- Code for Number 16 --> | ||
+ | {{#if:{{{header16|}}}| | ||
+ | <tr> | ||
+ | <th colspan="2" style="text-align: center; {{{header16style|{{{headerstyle|}}}}}}">{{{header16}}}</th> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{data16|}}}| | ||
+ | <tr> | ||
+ | {{#if:{{{label16|}}} | ||
+ | | <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label16}}}</th> | ||
+ | <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}"> | ||
+ | {{{data16}}}</td> | ||
+ | | <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2"> | ||
+ | {{{data16}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Repeat the pattern for numbers 17 to 20 --> | ||
+ | <!-- Code for Number 17 --> | ||
+ | {{#if:{{{header17|}}}| | ||
+ | <tr> | ||
+ | <th colspan="2" style="text-align: center; {{{header17style|{{{headerstyle|}}}}}}">{{{header17}}}</th> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{data17|}}}| | ||
+ | <tr> | ||
+ | {{#if:{{{label17|}}} | ||
+ | | <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label17}}}</th> | ||
+ | <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}"> | ||
+ | {{{data17}}}</td> | ||
+ | | <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2"> | ||
+ | {{{data17}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Repeat the pattern for numbers 18 to 20 --> | ||
+ | <!-- Code for Number 18 --> | ||
+ | {{#if:{{{header18|}}}| | ||
+ | <tr> | ||
+ | <th colspan="2" style="text-align: center; {{{header18style|{{{headerstyle|}}}}}}">{{{header18}}}</th> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{data18|}}}| | ||
+ | <tr> | ||
+ | {{#if:{{{label18|}}} | ||
+ | | <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label18}}}</th> | ||
+ | <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}"> | ||
+ | {{{data18}}}</td> | ||
+ | | <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2"> | ||
+ | {{{data18}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Code for Number 19 --> | ||
+ | {{#if:{{{header19|}}}| | ||
+ | <tr> | ||
+ | <th colspan="2" style="text-align: center; {{{header19style|{{{headerstyle|}}}}}}">{{{header19}}}</th> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{data19|}}}| | ||
+ | <tr> | ||
+ | {{#if:{{{label19|}}} | ||
+ | | <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label19}}}</th> | ||
+ | <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}"> | ||
+ | {{{data19}}}</td> | ||
+ | | <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2"> | ||
+ | {{{data19}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Code for Number 20 --> | ||
+ | {{#if:{{{header20|}}}| | ||
+ | <tr> | ||
+ | <th colspan="2" style="text-align: center; {{{header20style|{{{headerstyle|}}}}}}">{{{header20}}}</th> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{data20|}}}| | ||
+ | <tr> | ||
+ | {{#if:{{{label20|}}} | ||
+ | | <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label20}}}</th> | ||
+ | <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}"> | ||
+ | {{{data20}}}</td> | ||
+ | | <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2"> | ||
+ | {{{data20}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
{{#if:{{{below|}}}| | {{#if:{{{below|}}}| |
Revision as of 00:52, 8 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 }} |
| ||||||||||||||