Difference between revisions of "Template:Infobox/doc"

From LFS Manual
Jump to navigationJump to search
m
m
Line 3: Line 3:
 
=== All parameters ===
 
=== All parameters ===
  
{{Infobox
+
{{markup|
 +
<nowiki>{{Infobox
 
| title    = Text in caption over infobox
 
| title    = Text in caption over infobox
 
| above    = Text above
 
| above    = Text above
Line 14: Line 15:
 
| header2  = Header 2 text
 
| header2  = Header 2 text
 
| data2    = Data 2
 
| data2    = Data 2
}}
+
}}</nowiki>|{{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
 +
}}}}<!-- Template:Mra -->
  
 
{{-}}
 
{{-}}
Line 20: Line 32:
 
=== Without any parameters ===
 
=== Without any parameters ===
  
{{Infobox}}
+
{{markup|
 +
<nowiki>{{Infobox}}</nowiki>|{{Infobox}}}}<!-- Template:Mra -->
  
 
{{-}}
 
{{-}}
Line 26: Line 39:
 
=== Custom styles ===
 
=== Custom styles ===
  
{{Infobox
+
{{markup|
 +
<nowiki>{{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
 +
}}</nowiki>|{{Infobox
 
| titlestyle = background: #ddd;
 
| titlestyle = background: #ddd;
 
| abovestyle = background: #cfc;
 
| abovestyle = background: #cfc;
Line 45: Line 78:
 
| header2      = Header 2 text
 
| header2      = Header 2 text
 
| data2        = Data 2
 
| data2        = Data 2
}}
+
}}}}<!-- Template:Mra -->
  
 
{{-}}
 
{{-}}

Revision as of 20:02, 7 December 2023

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