Template:Infobox: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 47: Line 47:
<templatedata>
<templatedata>
{
{
    "description": "An infobox template with customizable parameters.",
"description": "An infobox template with customizable parameters.",
    "params": {
"params": {
        "title": {
"title": {
            "label": "Title",
"label": "Title",
            "type": "string",
"type": "string",
            "default": "{{PAGENAME}}",
"default": "{{PAGENAME}}",
            "description": "The title displayed at the top of the infobox."
"description": "The title displayed at the top of the infobox."
        },
},
        "subtitle": {
"subtitle": {
            "label": "Subtitle",
"label": "Subtitle",
            "type": "string",
"type": "string",
            "default": "",
"description": "An optional subtitle for the infobox."
            "description": "An optional subtitle for the infobox."
},
        },
"image": {
        "image": {
"label": "Image",
            "label": "Image",
"type": "string",
            "type": "string",
"description": "Image file displayed in the infobox."
            "default": "",
},
            "description": "Image file displayed in the infobox."
"param1": {
        },
"label": "Parameter 1 Value",
        "param1": {
"type": "string",
            "label": "Parameter 1",
"description": "First parameter to display."
            "type": "string",
},
            "description": "First parameter to display."
"param1_name": {
        },
"label": "Parameter 1 Name",
        "param1_name": {
"type": "string",
            "label": "Parameter 1 Name",
"description": "Label for the first parameter."
            "type": "string",
},
            "description": "Label for the first parameter."
"param2": {
        },
"label": "Parameter 2 Value",
        "param2": {
"type": "string",
            "label": "Parameter 2",
"description": "Second parameter to display."
            "type": "string",
},
            "description": "Second parameter to display."
"param2_name": {
        },
"label": "Parameter 2 Name",
        "param2_name": {
"type": "string",
            "label": "Parameter 2 Name",
"description": "Label for the second parameter."
            "type": "string",
},
            "description": "Label for the second parameter."
"param3": {
        },
"label": "Parameter 3 Value",
        "param3": {
"type": "string",
            "label": "Parameter 3",
"description": "Third parameter to display."
            "type": "string",
},
            "description": "Third parameter to display."
"param3_name": {
        },
"label": "Parameter 3 Name",
        "param3_name": {
"type": "string",
            "label": "Parameter 3 Name",
"description": "Label for the third parameter."
            "type": "string",
},
            "description": "Label for the third parameter."
"param4": {
        },
"label": "Parameter 4 Value",
        "param4": {
"type": "string",
            "label": "Parameter 4",
"description": "Fourth parameter to display."
            "type": "string",
},
            "description": "Fourth parameter to display."
"param4_name": {
        },
"label": "Parameter 4 Name",
        "param4_name": {
"type": "string",
            "label": "Parameter 4 Name",
"description": "Label for the fourth parameter."
            "type": "string",
},
            "description": "Label for the fourth parameter."
"param5": {
        },
"label": "Parameter 5 Value",
        "param5": {
"type": "string",
            "label": "Parameter 5",
"description": "Fifth parameter to display."
            "type": "string",
},
            "description": "Fifth parameter to display."
"param5_name": {
        },
"label": "Parameter 5 Name",
        "param5_name": {
"type": "string",
            "label": "Parameter 5 Name",
"description": "Label for the fifth parameter."
            "type": "string",
}
            "description": "Label for the fifth parameter."
},
        }
"paramOrder": [
    }
"title",
"subtitle",
"image",
"param1_name",
"param1",
"param2_name",
"param2",
"param3_name",
"param3",
"param4_name",
"param4",
"param5_name",
"param5"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 10:55, 2 October 2024

Infobox


An infobox template with customizable parameters.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

The title displayed at the top of the infobox.

Default
{{PAGENAME}}
Stringoptional
Subtitlesubtitle

An optional subtitle for the infobox.

Stringoptional
Imageimage

Image file displayed in the infobox.

Stringoptional
Parameter 1 Nameparam1_name

Label for the first parameter.

Stringoptional
Parameter 1 Valueparam1

First parameter to display.

Stringoptional
Parameter 2 Nameparam2_name

Label for the second parameter.

Stringoptional
Parameter 2 Valueparam2

Second parameter to display.

Stringoptional
Parameter 3 Nameparam3_name

Label for the third parameter.

Stringoptional
Parameter 3 Valueparam3

Third parameter to display.

Stringoptional
Parameter 4 Nameparam4_name

Label for the fourth parameter.

Stringoptional
Parameter 4 Valueparam4

Fourth parameter to display.

Stringoptional
Parameter 5 Nameparam5_name

Label for the fifth parameter.

Stringoptional
Parameter 5 Valueparam5

Fifth parameter to display.

Stringoptional