Difference between revisions of "Template:Infobox/doc"

From LFS Manual
Jump to navigationJump to search
m
m
Line 32: Line 32:
 
=== All parameters ===
 
=== All parameters ===
  
{{markup|
+
{{Infobox
<nowiki>{{Infobox
 
 
| titlestyle = background: #ddd;
 
| titlestyle = background: #ddd;
 
| abovestyle = background: #cfc;
 
| abovestyle = background: #cfc;
Line 89: Line 88:
 
| data13    = Data 13
 
| data13    = Data 13
  
| belowstyle = background: #ddf;
+
| header14  = Header 14 text
| below      = Below text
+
| label14  = Label 14
}}</nowiki>|{{Infobox
+
| data14    = Data 14
| titlestyle = background: #ddd;
+
 
| abovestyle = background: #cfc;
+
| header15  = Header 15 text
| subheaderstyle = background: #ffc;
+
| label15  = Label 15
 +
| data15    = Data 15
 +
 
 +
| header16  = Header 16 text
 +
| label16  = Label 16
 +
| data16    = Data 16
  
| title    = Text in caption over infobox
+
| header17  = Header 17 text
| above    = Text above
+
| label17  = Label 17
| subheader = Subheader of the infobox
+
| data17    = Data 17
  
| image    = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]]
+
| header18  = Header 18 text
| caption  = Caption below image
+
| label18  = Label 18
 +
| data18    = Data 18
  
| headerstyle = background: #ccf;
+
| header19  = Header 19 text
| labelstyle = background: #ddf;
+
| label19  = Label 19
| datastyle = background: #dedede;
+
| data19    = Data 19
  
| header1  = Header 1 text
+
| header20 = Header 20 text
| label1    = Label 1
+
| label20   = Label 20
| data1    = Data 1
+
| data20   = Data 20
| header2  = Header 2 text
 
| label2    = Label 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
 
| header11  = Header 11 text
 
| label11  = Label 11
 
| data11    = Data 11
 
| header12  = Header 12 text
 
| label12  = Label 12
 
| data12    = Data 12
 
| header13 = Header 13 text
 
| label13   = Label 13
 
| data13   = Data 13
 
  
 
| belowstyle = background: #ddf;
 
| belowstyle = background: #ddf;
 
| below      = Below text
 
| below      = Below text
}}}}<!-- Template:Mra -->
+
}}
  
 
{{-}}
 
{{-}}

Revision as of 00:52, 8 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
}}
Text above
Subheader of the infobox
Header 1 text
Label 1 Data 1
Header 2 text
Label 2 Data 2
Header 3 text
Data 3

All parameters

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
Label 2 Data 2
Header 3 text
Label 3 Data 3
Header 4 text
Label 4 Data 4
Header 5 text
Label 5 Data 5
Header 6 text
Label 6 Data 6
Header 7 text
Label 7 Data 7
Header 8 text
Label 8 Data 8
Header 9 text
Label 9 Data 9
Header 10 text
Label 10 Data 10
Header 11 text
Label 11 Data 11
Header 12 text
Label 12 Data 12
Header 13 text
Label 13 Data 13
Header 14 text
Label 14 Data 14
Header 15 text
Label 15 Data 15
Header 16 text
Label 16 Data 16
Header 17 text
Label 17 Data 17
Header 18 text
Label 18 Data 18
Header 19 text
Label 19 Data 19
Header 20 text
Label 20 Data 20
Below text


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


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
}}
Text above
Subheader of the infobox
Label 1 Data 1
Label 2 Data 2
Label 3 Data 3
Data 4
Data 5