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
Line 41: Line 41:
<templatedata>
<templatedata>
{
{
  "description": "Generic infobox with sections and label/data rows.",
"description": "Generic infobox with sections and label/data rows.",
  "params": {
"params": {
    "title": {"label":"Title","description":"Infobox title","type":"string","required":false},
"title": {
    "image": {"label":"Image filename","description":"File name without File:","type":"string"},
"label": "Title",
    "image_size": {"label":"Image size","description":"e.g., 280px","type":"string","default":"280px"},
"description": "Infobox title",
    "caption": {"label":"Image caption","type":"string"},
"type": "string",
    "section1": {"label":"Section 1 header","type":"string"},
"required": false
    "label1": {"label":"Row 1 label","type":"string"},
},
    "data1": {"label":"Row 1 value","type":"string"},
"image": {
    "section2": {"label":"Section 2 header","type":"string"},
"label": "Image filename",
    "label2": {"label":"Row 2 label","type":"string"},
"description": "File name without File:",
    "data2": {"label":"Row 2 value","type":"string"},
"type": "string"
    "section3": {"label":"Section 3 header","type":"string"},
},
    "label3": {"label":"Row 3 label","type":"string"},
"image_size": {
    "data3": {"label":"Row 3 value","type":"string"},
"label": "Image size",
    "section4": {"label":"Section 4 header","type":"string"},
"description": "e.g., 280px",
    "label4": {"label":"Row 4 label","type":"string"},
"type": "string",
    "data4": {"label":"Row 4 value","type":"string"},
"default": "280px"
    "section5": {"label":"Section 5 header","type":"string"},
},
    "label5": {"label":"Row 5 label","type":"string"},
"caption": {
    "data5": {"label":"Row 5 value","type":"string"},
"label": "Image caption",
    "section6": {"label":"Section 6 header","type":"string"},
"type": "string"
    "label6": {"label":"Row 6 label","type":"string"},
},
    "data6": {"label":"Row 6 value","type":"string"},
"section1": {
    "section7": {"label":"Section 7 header","type":"string"},
"label": "Section 1 header",
    "label7": {"label":"Row 7 label","type":"string"},
"type": "string"
    "data7": {"label":"Row 7 value","type":"string"},
},
    "section8": {"label":"Section 8 header","type":"string"},
"label1": {
    "label8": {"label":"Row 8 label","type":"string"},
"label": "Row 1 label",
    "data8": {"label":"Row 8 value","type":"string"},
"type": "string"
    "section9": {"label":"Section 9 header","type":"string"},
},
    "label9": {"label":"Row 9 label","type":"string"},
"data1": {
    "data9": {"label":"Row 9 value","type":"string"},
"label": "Row 1 value",
    "section10": {"label":"Section 10 header","type":"string"},
"type": "string"
    "label10": {"label":"Row 10 label","type":"string"},
},
    "data10": {"label":"Row 10 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"
}
},
"format": "block"
}
}
</templatedata>
</templatedata>

Revision as of 22:50, 9 August 2025

Script error: The function "infobox" does not exist.

Template:Documentation


Generic infobox with sections and label/data rows.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Infobox title

Stringoptional
Image filenameimage

File name without File:

Stringoptional
Image sizeimage_size

e.g., 280px

Default
280px
Stringoptional
Image captioncaption

no description

Stringoptional
Section 1 headersection1

no description

Stringoptional
Row 1 labellabel1

no description

Stringoptional
Row 1 valuedata1

no description

Stringoptional
Section 2 headersection2

no description

Stringoptional
Row 2 labellabel2

no description

Stringoptional
Row 2 valuedata2

no description

Stringoptional
Section 3 headersection3

no description

Stringoptional
Row 3 labellabel3

no description

Stringoptional
Row 3 valuedata3

no description

Stringoptional
Section 4 headersection4

no description

Stringoptional
Row 4 labellabel4

no description

Stringoptional
Row 4 valuedata4

no description

Stringoptional
Section 5 headersection5

no description

Stringoptional
Row 5 labellabel5

no description

Stringoptional
Row 5 valuedata5

no description

Stringoptional
Section 6 headersection6

no description

Stringoptional
Row 6 labellabel6

no description

Stringoptional
Row 6 valuedata6

no description

Stringoptional
Section 7 headersection7

no description

Stringoptional
Row 7 labellabel7

no description

Stringoptional
Row 7 valuedata7

no description

Stringoptional
Section 8 headersection8

no description

Stringoptional
Row 8 labellabel8

no description

Stringoptional
Row 8 valuedata8

no description

Stringoptional
Section 9 headersection9

no description

Stringoptional
Row 9 labellabel9

no description

Stringoptional
Row 9 valuedata9

no description

Stringoptional
Section 10 headersection10

no description

Stringoptional
Row 10 labellabel10

no description

Stringoptional
Row 10 valuedata10

no description

Stringoptional