Difference between revisions of "Template:Infobox/doc"

From LFS Manual
Jump to navigationJump to search
m
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>{{documentation subpage}}</noinclude>
 +
 
== 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 ===
  
 
{{Infobox
 
{{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 1
 +
 
 +
| image2    = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]]
 +
| caption2  = Caption below image 2
 +
 
 +
| image3    = [[Image:All default cars available in Live for Speed.jpg|200px|All LFS cars]]
 +
| caption3  = Caption below image 3
 +
 
 +
| 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
 +
| 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
 +
 +
| header14  = Header 14 text
 +
| label14  = Label 14
 +
| data14    = Data 14
 +
 +
| header15  = Header 15 text
 +
| label15  = Label 15
 +
| data15    = Data 15
 +
 +
| header16  = Header 16 text
 +
| label16  = Label 16
 +
| data16    = Data 16
 +
 +
| header17  = Header 17 text
 +
| label17  = Label 17
 +
| data17    = Data 17
 +
 +
| header18  = Header 18 text
 +
| label18  = Label 18
 +
| data18    = Data 18
 +
 +
| header19  = Header 19 text
 +
| label19  = Label 19
 +
| data19    = Data 19
 +
 +
| header20  = Header 20 text
 +
| label20  = Label 20
 +
| data20    = Data 20
 +
 +
| header21  = Header 21 text
 +
| label21  = Label 21
 +
| data21    = Data 21
 +
 +
| header22  = Header 22 text
 +
| label22  = Label 22
 +
| data22    = Data 22
 +
 +
| header23  = Header 23 text
 +
| label23  = Label 23
 +
| data23    = Data 23
 +
 +
| header24  = Header 24 text
 +
| label24  = Label 24
 +
| data24    = Data 24
 +
 +
| header25  = Header 25 text
 +
| label25  = Label 25
 +
| data25    = Data 25
 +
 +
| header26  = Header 26 text
 +
| label26  = Label 26
 +
| data26    = Data 26
 +
 +
| header27  = Header 27 text
 +
| label27  = Label 27
 +
| data27    = Data 27
 +
 +
| header28  = Header 28 text
 +
| label28  = Label 28
 +
| data28    = Data 28
 +
 +
| header29  = Header 29 text
 +
| label29  = Label 29
 +
| data29    = Data 29
 +
 +
| header30  = Header 30 text
 +
| label30  = Label 30
 +
| data30    = Data 30
 +
 +
| header31  = Header 31 text
 +
| label31  = Label 31
 +
| data31    = Data 31
 +
 +
| header32  = Header 32 text
 +
| label32  = Label 32
 +
| data32    = Data 32
 +
 +
| header33  = Header 33 text
 +
| label33  = Label 33
 +
| data33    = Data 33
 +
 +
| header34  = Header 34 text
 +
| label34  = Label 34
 +
| data34    = Data 34
 +
 +
| header35  = Header 35 text
 +
| label35  = Label 35
 +
| data35    = Data 35
 +
 +
| header36  = Header 36 text
 +
| label36  = Label 36
 +
| data36    = Data 36
 +
 +
| header37  = Header 37 text
 +
| label37  = Label 37
 +
| data37    = Data 37
 +
 +
| header38  = Header 38 text
 +
| label38  = Label 38
 +
| data38    = Data 38
 +
 +
| header39  = Header 39 text
 +
| label39  = Label 39
 +
| data39    = Data 39
 +
 +
| header40  = Header 40 text
 +
| label40  = Label 40
 +
| data40    = Data 40
 +
 +
| header41  = Header 41 text
 +
| label41  = Label 41
 +
| data41    = Data 41
 +
 +
| header42  = Header 42 text
 +
| label42  = Label 42
 +
| data42    = Data 42
 +
 +
| header43  = Header 43 text
 +
| label43  = Label 43
 +
| data43    = Data 43
 +
 +
| header44  = Header 44 text
 +
| label44  = Label 44
 +
| data44    = Data 44
 +
 +
| header45  = Header 45 text
 +
| label45  = Label 45
 +
| data45    = Data 45
 +
 +
| header46  = Header 46 text
 +
| label46  = Label 46
 +
| data46    = Data 46
 +
 +
| header47  = Header 47 text
 +
| label47  = Label 47
 +
| data47    = Data 47
 +
 +
| header48  = Header 48 text
 +
| label48  = Label 48
 +
| data48    = Data 48
 +
 +
| header49  = Header 49 text
 +
| label49  = Label 49
 +
| data49    = Data 49
 +
 +
| header50  = Header 50 text
 +
| label50  = Label 50
 +
| data50    = Data 50
 +
 +
| header51  = Header 51 text
 +
| label51  = Label 51
 +
| data51    = Data 51
 +
 +
| header52  = Header 52 text
 +
| label52  = Label 52
 +
| data52    = Data 52
 +
 +
| header53  = Header 53 text
 +
| label53  = Label 53
 +
| data53    = Data 53
 +
 +
| header54  = Header 54 text
 +
| label54  = Label 54
 +
| data54    = Data 54
 +
 +
| header55  = Header 55 text
 +
| label55  = Label 55
 +
| data55    = Data 55
 +
 +
| header56  = Header 56 text
 +
| label56  = Label 56
 +
| data56    = Data 56
 +
 +
| header57  = Header 57 text
 +
| label57  = Label 57
 +
| data57    = Data 57
 +
 +
| header58  = Header 58 text
 +
| label58  = Label 58
 +
| data58    = Data 58
 +
 +
| header59  = Header 59 text
 +
| label59  = Label 59
 +
| data59    = Data 59
 +
 +
| header60  = Header 60 text
 +
| label60  = Label 60
 +
| data60    = Data 60
 +
 +
| header61  = Header 61 text
 +
| label61  = Label 61
 +
| data61    = Data 61
 +
 +
| header62  = Header 62 text
 +
| label62  = Label 62
 +
| data62    = Data 62
 +
 +
| header63  = Header 63 text
 +
| label63  = Label 63
 +
| data63    = Data 63
 +
 +
| header64  = Header 64 text
 +
| label64  = Label 64
 +
| data64    = Data 64
 +
 +
| header65  = Header 65 text
 +
| label65  = Label 65
 +
| data65    = Data 65
 +
 +
| header66  = Header 66 text
 +
| label66  = Label 66
 +
| data66    = Data 66
 +
 +
| header67  = Header 67 text
 +
| label67  = Label 67
 +
| data67    = Data 67
 +
 +
| header68  = Header 68 text
 +
| label68  = Label 68
 +
| data68    = Data 68
 +
 +
| header69  = Header 69 text
 +
| label69  = Label 69
 +
| data69    = Data 69
 +
 +
| header70  = Header 70 text
 +
| label70  = Label 70
 +
| data70    = Data 70
 +
 +
| header71  = Header 71 text
 +
| label71  = Label 71
 +
| data71    = Data 71
 +
 +
| header72  = Header 72 text
 +
| label72  = Label 72
 +
| data72    = Data 72
 +
 +
| header73  = Header 73 text
 +
| label73  = Label 73
 +
| data73    = Data 73
 +
 +
| header74  = Header 74 text
 +
| label74  = Label 74
 +
| data74    = Data 74
 +
 +
| header75  = Header 75 text
 +
| label75  = Label 75
 +
| data75    = Data 75
 +
 +
| header76  = Header 76 text
 +
| label76  = Label 76
 +
| data76    = Data 76
 +
 +
| header77  = Header 77 text
 +
| label77  = Label 77
 +
| data77    = Data 77
 +
 +
| header78  = Header 78 text
 +
| label78  = Label 78
 +
| data78    = Data 78
 +
 +
| header79  = Header 79 text
 +
| label79  = Label 79
 +
| data79    = Data 79
 +
 +
| header80  = Header 80 text
 +
| label80  = Label 80
 +
| data80    = Data 80
 +
 +
| header81  = Header 81 text
 +
| label81  = Label 81
 +
| data81    = Data 81
 +
 +
| header82  = Header 82 text
 +
| label82  = Label 82
 +
| data82    = Data 82
 +
 +
| header83  = Header 83 text
 +
| label83  = Label 83
 +
| data83    = Data 83
 +
 +
| header84  = Header 84 text
 +
| label84  = Label 84
 +
| data84    = Data 84
 +
 +
| header85  = Header 85 text
 +
| label85  = Label 85
 +
| data85    = Data 85
 +
 +
| header86  = Header 86 text
 +
| label86  = Label 86
 +
| data86    = Data 86
 +
 +
| header87  = Header 87 text
 +
| label87  = Label 87
 +
| data87    = Data 87
 +
 +
| header88  = Header 88 text
 +
| label88  = Label 88
 +
| data88    = Data 88
 +
 +
| header89  = Header 89 text
 +
| label89  = Label 89
 +
| data89    = Data 89
 +
 +
| header90  = Header 90 text
 +
| label90  = Label 90
 +
| data90    = Data 90
 +
 +
| header91  = Header 91 text
 +
| label91  = Label 91
 +
| data91    = Data 91
 +
 +
| header92  = Header 92 text
 +
| label92  = Label 92
 +
| data92    = Data 92
 +
 +
| header93  = Header 93 text
 +
| label93  = Label 93
 +
| data93    = Data 93
 +
 +
| header94  = Header 94 text
 +
| label94  = Label 94
 +
| data94    = Data 94
 +
 +
| header95  = Header 95 text
 +
| label95  = Label 95
 +
| data95    = Data 95
 +
 +
| header96  = Header 96 text
 +
| label96  = Label 96
 +
| data96    = Data 96
 +
 +
| header97  = Header 97 text
 +
| label97  = Label 97
 +
| data97    = Data 97
 +
 +
| header98  = Header 98 text
 +
| label98  = Label 98
 +
| data98    = Data 98
 +
 +
| header99  = Header 99 text
 +
| label99  = Label 99
 +
| data99    = Data 99
 +
 +
| header100  = Header 100 text
 +
| label100  = Label 100
 +
| data100    = Data 100
 +
 +
| belowstyle = background: #ddf;
 +
| below      = Below text
 +
 +
| belowleftstyle = background: #def;
 +
| belowleft  = Below left
 +
 +
| belowrightstyle = background: #dda;
 +
| belowright = Below right
 
}}
 
}}
  
 
{{-}}
 
{{-}}
 +
 +
=== Without any parameters ===
 +
 +
{{markup|
 +
<nowiki>{{Infobox}}</nowiki>|{{Infobox}}}}<!-- Template:Mra -->
 +
 +
{{-}}
 +
 +
=== Custom styles ===
 +
 +
{{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;
 +
| 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
 +
}}}}<!-- Template:Mra -->
 +
 +
{{-}}
 +
 +
=== Only data rows ===
 +
 +
{{markup|
 +
<nowiki>{{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
 +
}}</nowiki>|{{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
 +
}}}}<!-- Template:Mra -->
 +
 +
{{-}}
 +
 +
<includeonly>
 +
[[Category:Infobox templates]]
 +
</includeonly>

Latest revision as of 18:27, 27 January 2024

Information icon4.png This is a documentation subpage for Template:Infobox.

It may contain usage information, categories and other content that is not part of the original page.

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 1
All LFS cars
Caption below image 2
All LFS cars
Caption below image 3
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
Header 21 text
Label 21 Data 21
Header 22 text
Label 22 Data 22
Header 23 text
Label 23 Data 23
Header 24 text
Label 24 Data 24
Header 25 text
Label 25 Data 25
Header 26 text
Label 26 Data 26
Header 27 text
Label 27 Data 27
Header 28 text
Label 28 Data 28
Header 29 text
Label 29 Data 29
Header 30 text
Label 30 Data 30
Header 31 text
Label 31 Data 31
Header 32 text
Label 32 Data 32
Header 33 text
Label 33 Data 33
Header 34 text
Label 34 Data 34
Header 35 text
Label 35 Data 35
Header 36 text
Label 36 Data 36
Header 37 text
Label 37 Data 37
Header 38 text
Label 38 Data 38
Header 39 text
Label 39 Data 39
Header 40 text
Label 40 Data 40
Header 41 text
Label 41 Data 41
Header 42 text
Label 42 Data 42
Header 43 text
Label 43 Data 43
Header 44 text
Label 44 Data 44
Header 45 text
Label 45 Data 45
Header 46 text
Label 46 Data 46
Header 47 text
Label 47 Data 47
Header 48 text
Label 48 Data 48
Header 49 text
Label 49 Data 49
Header 50 text
Label 50 Data 50
Header 51 text
Label 51 Data 51
Header 52 text
Label 52 Data 52
Header 53 text
Label 53 Data 53
Header 54 text
Label 54 Data 54
Header 55 text
Label 55 Data 55
Header 56 text
Label 56 Data 56
Header 57 text
Label 57 Data 57
Header 58 text
Label 58 Data 58
Header 59 text
Label 59 Data 59
Header 60 text
Label 60 Data 60
Header 61 text
Label 61 Data 61
Header 62 text
Label 62 Data 62
Header 63 text
Label 63 Data 63
Header 64 text
Label 64 Data 64
Header 65 text
Label 65 Data 65
Header 66 text
Label 66 Data 66
Header 67 text
Label 67 Data 67
Header 68 text
Label 68 Data 68
Header 69 text
Label 69 Data 69
Header 70 text
Label 70 Data 70
Header 71 text
Label 71 Data 71
Header 72 text
Label 72 Data 72
Header 73 text
Label 73 Data 73
Header 74 text
Label 74 Data 74
Header 75 text
Label 75 Data 75
Header 76 text
Label 76 Data 76
Header 77 text
Label 77 Data 77
Header 78 text
Label 78 Data 78
Header 79 text
Label 79 Data 79
Header 80 text
Label 80 Data 80
Header 81 text
Label 81 Data 81
Header 82 text
Label 82 Data 82
Header 83 text
Label 83 Data 83
Header 84 text
Label 84 Data 84
Header 85 text
Label 85 Data 85
Header 86 text
Label 86 Data 86
Header 87 text
Label 87 Data 87
Header 88 text
Label 88 Data 88
Header 89 text
Label 89 Data 89
Header 90 text
Label 90 Data 90
Header 91 text
Label 91 Data 91
Header 92 text
Label 92 Data 92
Header 93 text
Label 93 Data 93
Header 94 text
Label 94 Data 94
Header 95 text
Label 95 Data 95
Header 96 text
Label 96 Data 96
Header 97 text
Label 97 Data 97
Header 98 text
Label 98 Data 98
Header 99 text
Label 99 Data 99
Header 100 text
Label 100 Data 100
Below left Below right
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