Template:Infobox/doc

From LFS Manual
Jump to navigationJump to search

Usage

All parameters

Markup Renders as
{{Infobox
| title     = Text in caption over infobox
| above     = Text above
| subheader = Subheader of the infobox
| image     = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]]
| caption   = Caption below image
| header1   = Header 1 text
| label1    = Label 1
| data1     = Data 1
| header2   = Header 2 text
| data2     = Data 2
}}
Text in caption over infobox
Text above
Subheader of the infobox
All LFS cars
Caption below image
Header 1 text
Label 1 Data 1
Header 2 text
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
}}
Text in caption over infobox
Text above
Subheader of the infobox
Header 1 text
Label 1 Data 1
Header 2 text
Data 2