Difference between revisions of "Template:Infobox/doc"
From LFS Manual
Jump to navigationJump to searchm |
|||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
| + | |||
| + | === Basic === | ||
| + | |||
| + | {{markup| | ||
| + | <nowiki>{{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 | ||
| + | }}</nowiki>|{{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 | ||
| + | }}}}<!-- Template:Mra --> | ||
=== All parameters === | === All parameters === | ||
| Line 5: | Line 34: | ||
{{markup| | {{markup| | ||
<nowiki>{{Infobox | <nowiki>{{Infobox | ||
| + | | titlestyle = background: #ddd; | ||
| + | | abovestyle = background: #cfc; | ||
| + | | subheaderstyle = background: #ffc; | ||
| + | |||
| title = Text in caption over infobox | | title = Text in caption over infobox | ||
| above = Text above | | above = Text above | ||
| subheader = Subheader of the infobox | | subheader = Subheader of the infobox | ||
| + | |||
| image = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]] | | image = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]] | ||
| caption = Caption below image | | caption = Caption below image | ||
| + | |||
| + | | headerstyle = background: #ccf; | ||
| + | | labelstyle = background: #ddf; | ||
| + | | datastyle = background: #dedede; | ||
| + | |||
| header1 = Header 1 text | | header1 = Header 1 text | ||
| label1 = Label 1 | | label1 = Label 1 | ||
| data1 = Data 1 | | data1 = Data 1 | ||
| header2 = Header 2 text | | header2 = Header 2 text | ||
| + | | label2 = Label 2 | ||
| data2 = Data 2 | | data2 = Data 2 | ||
| + | | header3 = Header 3 text | ||
| + | | label3 = Label 3 | ||
| + | | data3 = Data 3 | ||
| + | | header4 = Header 4 text | ||
| + | | label4 = Label 4 | ||
| + | | data4 = Data 4 | ||
| + | | header5 = Header 5 text | ||
| + | | label5 = Label 5 | ||
| + | | data5 = Data 5 | ||
| + | | header6 = Header 6 text | ||
| + | | label6 = Label 6 | ||
| + | | data6 = Data 6 | ||
| + | | header7 = Header 7 text | ||
| + | | label7 = Label 7 | ||
| + | | data7 = Data 7 | ||
| + | | header8 = Header 8 text | ||
| + | | label8 = Label 8 | ||
| + | | data8 = Data 8 | ||
| + | | header9 = Header 9 text | ||
| + | | label9 = Label 9 | ||
| + | | data9 = Data 9 | ||
| + | | header10 = Header 10 text | ||
| + | | label10 = Label 10 | ||
| + | | data10 = Data 10 | ||
| + | |||
| + | | belowstyle = background: #ddf; | ||
| + | | below = Below text | ||
}}</nowiki>|{{Infobox | }}</nowiki>|{{Infobox | ||
| + | | titlestyle = background: #ddd; | ||
| + | | abovestyle = background: #cfc; | ||
| + | | subheaderstyle = background: #ffc; | ||
| + | |||
| title = Text in caption over infobox | | title = Text in caption over infobox | ||
| above = Text above | | above = Text above | ||
| subheader = Subheader of the infobox | | subheader = Subheader of the infobox | ||
| + | |||
| image = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]] | | image = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]] | ||
| caption = Caption below image | | caption = Caption below image | ||
| + | |||
| + | | headerstyle = background: #ccf; | ||
| + | | labelstyle = background: #ddf; | ||
| + | | datastyle = background: #dedede; | ||
| + | |||
| header1 = Header 1 text | | header1 = Header 1 text | ||
| label1 = Label 1 | | label1 = Label 1 | ||
| Line 51: | Line 128: | ||
| label10 = Label 10 | | label10 = Label 10 | ||
| data10 = Data 10 | | data10 = Data 10 | ||
| + | |||
| + | | belowstyle = background: #ddf; | ||
| + | | below = Below text | ||
}}}}<!-- Template:Mra --> | }}}}<!-- Template:Mra --> | ||
Revision as of 21:54, 7 December 2023
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
}}
|
| ||||||||||||