Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:Infobox|infobox
<templatestyles src="Infobox/styles.css"/>
  | title       = {{{title|}}}
{{#invoke:Infobox|render
| image      = {{{image|}}}
  | title={{{title|{{PAGENAME}}}}}
| image_size  = {{{image_size|280px}}}
  | image={{{image|}}}
| caption    = {{{caption|}}}
  | width={{{width|300}}}
  | section1    = {{{section1|}}}
  | order={{{order|}}}
| label1      = {{{label1|}}}
| data1      = {{{data1|}}}
| section2    = {{{section2|}}}
| label2      = {{{label2|}}}
| data2      = {{{data2|}}}
| section3    = {{{section3|}}}
| label3      = {{{label3|}}}
| data3      = {{{data3|}}}
| section4    = {{{section4|}}}
| label4      = {{{label4|}}}
| data4      = {{{data4|}}}
| section5    = {{{section5|}}}
| label5      = {{{label5|}}}
| data5      = {{{data5|}}}
| section6    = {{{section6|}}}
| label6      = {{{label6|}}}
| data6      = {{{data6|}}}
| section7    = {{{section7|}}}
| label7      = {{{label7|}}}
| data7      = {{{data7|}}}
| section8    = {{{section8|}}}
| label8      = {{{label8|}}}
| data8      = {{{data8|}}}
| section9    = {{{section9|}}}
| label9      = {{{label9|}}}
| data9      = {{{data9|}}}
| section10  = {{{section10|}}}
  | label10    = {{{label10|}}}
  | data10      = {{{data10|}}}
}}
}}
<noinclude>
{{Documentation}}
</noinclude>
<templatedata>
{
"description": "Generic infobox with sections and label/data rows.",
"params": {
"title": {
"label": "Title",
"description": "Infobox title",
"type": "string",
"required": false
},
"image": {
"label": "Image filename",
"description": "File name without File:",
"type": "string"
},
"image_size": {
"label": "Image size",
"description": "e.g., 280px",
"type": "string",
"default": "280px"
},
"caption": {
"label": "Image caption",
"type": "string"
},
"section1": {
"label": "Section 1 header",
"type": "string"
},
"label1": {
"label": "Row 1 label",
"type": "string"
},
"data1": {
"label": "Row 1 value",
"type": "string"
},
"section2": {
"label": "Section 2 header",
"type": "string"
},
"label2": {
"label": "Row 2 label",
"type": "string"
},
"data2": {
"label": "Row 2 value",
"type": "string"
},
"section3": {
"label": "Section 3 header",
"type": "string"
},
"label3": {
"label": "Row 3 label",
"type": "string"
},
"data3": {
"label": "Row 3 value",
"type": "string"
},
"section4": {
"label": "Section 4 header",
"type": "string"
},
"label4": {
"label": "Row 4 label",
"type": "string"
},
"data4": {
"label": "Row 4 value",
"type": "string"
},
"section5": {
"label": "Section 5 header",
"type": "string"
},
"label5": {
"label": "Row 5 label",
"type": "string"
},
"data5": {
"label": "Row 5 value",
"type": "string"
},
"section6": {
"label": "Section 6 header",
"type": "string"
},
"label6": {
"label": "Row 6 label",
"type": "string"
},
"data6": {
"label": "Row 6 value",
"type": "string"
},
"section7": {
"label": "Section 7 header",
"type": "string"
},
"label7": {
"label": "Row 7 label",
"type": "string"
},
"data7": {
"label": "Row 7 value",
"type": "string"
},
"section8": {
"label": "Section 8 header",
"type": "string"
},
"label8": {
"label": "Row 8 label",
"type": "string"
},
"data8": {
"label": "Row 8 value",
"type": "string"
},
"section9": {
"label": "Section 9 header",
"type": "string"
},
"label9": {
"label": "Row 9 label",
"type": "string"
},
"data9": {
"label": "Row 9 value",
"type": "string"
},
"section10": {
"label": "Section 10 header",
"type": "string"
},
"label10": {
"label": "Row 10 label",
"type": "string"
},
"data10": {
"label": "Row 10 value",
"type": "string"
}
}
}
</templatedata>

Latest revision as of 23:22, 9 August 2025

<templatestyles src="Infobox/styles.css"/>

Infobox