Difference between revisions of "Template:Infobox"

From LFS Manual
Jump to navigationJump to search
m
m
Line 212: Line 212:
 
| <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2">
 
| <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2">
 
{{{data10}}}</td>
 
{{{data10}}}</td>
 +
  }}
 +
</tr>
 +
}}
 +
 +
{{#if:{{{header11|}}}|
 +
<tr>
 +
  <th colspan="2" style="text-align: center; {{{header11style|{{{headerstyle|}}}}}}">{{{header11}}}</th>
 +
</tr>
 +
}}
 +
{{#if:{{{data11|}}}|
 +
<tr>
 +
  {{#if:{{{label11|}}}
 +
| <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label11}}}</th>
 +
  <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}">
 +
{{{data11}}}</td>
 +
| <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2">
 +
{{{data11}}}</td>
 +
  }}
 +
</tr>
 +
}}
 +
 +
{{#if:{{{header12|}}}|
 +
<tr>
 +
  <th colspan="2" style="text-align: center; {{{header12style|{{{headerstyle|}}}}}}">{{{header12}}}</th>
 +
</tr>
 +
}}
 +
{{#if:{{{data12|}}}|
 +
<tr>
 +
  {{#if:{{{label12|}}}
 +
| <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label12}}}</th>
 +
  <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}">
 +
{{{data12}}}</td>
 +
| <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2">
 +
{{{data12}}}</td>
 +
  }}
 +
</tr>
 +
}}
 +
 +
{{#if:{{{header13|}}}|
 +
<tr>
 +
  <th colspan="2" style="text-align: center; {{{header13style|{{{headerstyle|}}}}}}">{{{header13}}}</th>
 +
</tr>
 +
}}
 +
{{#if:{{{data13|}}}|
 +
<tr>
 +
  {{#if:{{{label13|}}}
 +
| <th scope="row" style="text-align: left; vertical-align: top; {{{labelstyle|}}}">{{{label13}}}</th>
 +
  <td scope="row" style="text-align: left; vertical-align: top; {{{datastyle|}}}">
 +
{{{data13}}}</td>
 +
| <td scope="row" style="text-align: center; vertical-align: top; {{{datastyle|}}}" colspan="2">
 +
{{{data13}}}</td>
 
   }}
 
   }}
 
</tr>
 
</tr>

Revision as of 01:43, 8 December 2023

Template Info-Icon.png

Template documentation

View - Edit

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
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
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