Toggle 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
Created page with "<templatestyles src="InfoboxCss.css" /> <div class="infobox"> {{#if:{{{image|}}}|<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|200px]]</div>}} <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> <div class="infobox-subtitle">{{{subtitle|}}}</div> <table class="infobox-table"> {{#if:{{{param1|}}}| <!-- If param1 is set, display the row --> <tr> <th>{{{param1_name|Param 1}}}</th> <!-- Default label fo..."
 
No edit summary
Line 9: Line 9:
         {{#if:{{{param1|}}}| <!-- If param1 is set, display the row -->
         {{#if:{{{param1|}}}| <!-- If param1 is set, display the row -->
             <tr>
             <tr>
                 <th>{{{param1_name|Param 1}}}</th> <!-- Default label for param1 -->
                 <th>{{{param1_name|Param 1}}}</th>
                 <td>{{{param1}}}</td>
                 <td>{{{param1}}}</td>
             </tr>
             </tr>
         }}
         }}
 
         {{#if:{{{param2|}}}|
         {{#if:{{{param2|}}}| <!-- If param2 is set, display the row -->
             <tr>
             <tr>
                 <th>{{{param2_name|Param 2}}}</th>
                 <th>{{{param2_name|Param 2}}}</th>
Line 20: Line 19:
             </tr>
             </tr>
         }}
         }}
 
         {{#if:{{{param3|}}}|
         {{#if:{{{param3|}}}| <!-- If param3 is set, display the row -->
             <tr>
             <tr>
                 <th>{{{param3_name|Param 3}}}</th>
                 <th>{{{param3_name|Param 3}}}</th>
Line 27: Line 25:
             </tr>
             </tr>
         }}
         }}
 
         {{#if:{{{param4|}}}|
         {{#if:{{{param4|}}}| <!-- If param4 is set, display the row -->
             <tr>
             <tr>
                 <th>{{{param4_name|Param 4}}}</th>
                 <th>{{{param4_name|Param 4}}}</th>
Line 34: Line 31:
             </tr>
             </tr>
         }}
         }}
 
         {{#if:{{{param5|}}}|
         {{#if:{{{param5|}}}| <!-- If param5 is set, display the row -->
             <tr>
             <tr>
                 <th>{{{param5_name|Param 5}}}</th>
                 <th>{{{param5_name|Param 5}}}</th>
                 <td>{{{param5}}}</td>
                 <td>{{{param5}}}</td>
            </tr>
        }}
        {{#if:{{{param6|}}}|
            <tr>
                <th>{{{param6_name|Param 6}}}</th>
                <td>{{{param6}}}</td>
            </tr>
        }}
        {{#if:{{{param7|}}}|
            <tr>
                <th>{{{param7_name|Param 7}}}</th>
                <td>{{{param7}}}</td>
            </tr>
        }}
        {{#if:{{{param8|}}}|
            <tr>
                <th>{{{param8_name|Param 8}}}</th>
                <td>{{{param8}}}</td>
            </tr>
        }}
        {{#if:{{{param9|}}}|
            <tr>
                <th>{{{param9_name|Param 9}}}</th>
                <td>{{{param9}}}</td>
            </tr>
        }}
        {{#if:{{{param10|}}}|
            <tr>
                <th>{{{param10_name|Param 10}}}</th>
                <td>{{{param10}}}</td>
            </tr>
        }}
        {{#if:{{{param11|}}}|
            <tr>
                <th>{{{param11_name|Param 11}}}</th>
                <td>{{{param11}}}</td>
            </tr>
        }}
        {{#if:{{{param12|}}}|
            <tr>
                <th>{{{param12_name|Param 12}}}</th>
                <td>{{{param12}}}</td>
            </tr>
        }}
        {{#if:{{{param13|}}}|
            <tr>
                <th>{{{param13_name|Param 13}}}</th>
                <td>{{{param13}}}</td>
            </tr>
        }}
        {{#if:{{{param14|}}}|
            <tr>
                <th>{{{param14_name|Param 14}}}</th>
                <td>{{{param14}}}</td>
            </tr>
        }}
        {{#if:{{{param15|}}}|
            <tr>
                <th>{{{param15_name|Param 15}}}</th>
                <td>{{{param15}}}</td>
             </tr>
             </tr>
         }}
         }}
Line 49: Line 105:
"description": "An infobox template with customizable parameters.",
"description": "An infobox template with customizable parameters.",
"params": {
"params": {
"title": {
"title": { "label": "Title", "type": "string", "default": "{{PAGENAME}}", "description": "The title displayed at the top of the infobox." },
"label": "Title",
"subtitle": { "label": "Subtitle", "type": "string", "description": "An optional subtitle for the infobox." },
"type": "string",
"image": { "label": "Image", "type": "string", "description": "Image file displayed in the infobox." },
"default": "{{PAGENAME}}",
"param1": { "label": "Parameter 1 Value", "type": "string", "description": "First parameter to display." },
"description": "The title displayed at the top of the infobox."
"param1_name": { "label": "Parameter 1 Name", "type": "string", "description": "Label for the first parameter." },
},
"param2": { "label": "Parameter 2 Value", "type": "string", "description": "Second parameter to display." },
"subtitle": {
"param2_name": { "label": "Parameter 2 Name", "type": "string", "description": "Label for the second parameter." },
"label": "Subtitle",
"param3": { "label": "Parameter 3 Value", "type": "string", "description": "Third parameter to display." },
"type": "string",
"param3_name": { "label": "Parameter 3 Name", "type": "string", "description": "Label for the third parameter." },
"description": "An optional subtitle for the infobox."
"param4": { "label": "Parameter 4 Value", "type": "string", "description": "Fourth parameter to display." },
},
"param4_name": { "label": "Parameter 4 Name", "type": "string", "description": "Label for the fourth parameter." },
"image": {
"param5": { "label": "Parameter 5 Value", "type": "string", "description": "Fifth parameter to display." },
"label": "Image",
"param5_name": { "label": "Parameter 5 Name", "type": "string", "description": "Label for the fifth parameter." },
"type": "string",
"param6": { "label": "Parameter 6 Value", "type": "string", "description": "Sixth parameter to display." },
"description": "Image file displayed in the infobox."
"param6_name": { "label": "Parameter 6 Name", "type": "string", "description": "Label for the sixth parameter." },
},
"param7": { "label": "Parameter 7 Value", "type": "string", "description": "Seventh parameter to display." },
"param1": {
"param7_name": { "label": "Parameter 7 Name", "type": "string", "description": "Label for the seventh parameter." },
"label": "Parameter 1 Value",
"param8": { "label": "Parameter 8 Value", "type": "string", "description": "Eighth parameter to display." },
"type": "string",
"param8_name": { "label": "Parameter 8 Name", "type": "string", "description": "Label for the eighth parameter." },
"description": "First parameter to display."
"param9": { "label": "Parameter 9 Value", "type": "string", "description": "Ninth parameter to display." },
},
"param9_name": { "label": "Parameter 9 Name", "type": "string", "description": "Label for the ninth parameter." },
"param1_name": {
"param10": { "label": "Parameter 10 Value", "type": "string", "description": "Tenth parameter to display." },
"label": "Parameter 1 Name",
"param10_name": { "label": "Parameter 10 Name", "type": "string", "description": "Label for the tenth parameter." },
"type": "string",
"param11": { "label": "Parameter 11 Value", "type": "string", "description": "Eleventh parameter to display." },
"description": "Label for the first parameter."
"param11_name": { "label": "Parameter 11 Name", "type": "string", "description": "Label for the eleventh parameter." },
},
"param12": { "label": "Parameter 12 Value", "type": "string", "description": "Twelfth parameter to display." },
"param2": {
"param12_name": { "label": "Parameter 12 Name", "type": "string", "description": "Label for the twelfth parameter." },
"label": "Parameter 2 Value",
"param13": { "label": "Parameter 13 Value", "type": "string", "description": "Thirteenth parameter to display." },
"type": "string",
"param13_name": { "label": "Parameter 13 Name", "type": "string", "description": "Label for the thirteenth parameter." },
"description": "Second parameter to display."
"param14": { "label": "Parameter 14 Value", "type": "string", "description": "Fourteenth parameter to display." },
},
"param14_name": { "label": "Parameter 14 Name", "type": "string", "description": "Label for the fourteenth parameter." },
"param2_name": {
"param15": { "label": "Parameter 15 Value", "type": "string", "description": "Fifteenth parameter to display." },
"label": "Parameter 2 Name",
"param15_name": { "label": "Parameter 15 Name", "type": "string", "description": "Label for the fifteenth parameter." }
"type": "string",
"description": "Label for the second parameter."
},
"param3": {
"label": "Parameter 3 Value",
"type": "string",
"description": "Third parameter to display."
},
"param3_name": {
"label": "Parameter 3 Name",
"type": "string",
"description": "Label for the third parameter."
},
"param4": {
"label": "Parameter 4 Value",
"type": "string",
"description": "Fourth parameter to display."
},
"param4_name": {
"label": "Parameter 4 Name",
"type": "string",
"description": "Label for the fourth parameter."
},
"param5": {
"label": "Parameter 5 Value",
"type": "string",
"description": "Fifth parameter to display."
},
"param5_name": {
"label": "Parameter 5 Name",
"type": "string",
"description": "Label for the fifth parameter."
}
},
},
"paramOrder": [
"paramOrder": [
"title",
"title", "subtitle", "image",
"subtitle",
"param1_name", "param1", "param2_name", "param2", "param3_name", "param3",
"image",
"param4_name", "param4", "param5_name", "param5", "param6_name", "param6",
"param1_name",
"param7_name", "param7", "param8_name", "param8", "param9_name", "param9",
"param1",
"param10_name", "param10", "param11_name", "param11", "param12_name", "param12",
"param2_name",
"param13_name", "param13", "param14_name", "param14", "param15_name", "param15"
"param2",
"param3_name",
"param3",
"param4_name",
"param4",
"param5_name",
"param5"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 15:15, 25 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
Parameter 6 Nameparam6_name

Label for the sixth parameter.

Stringoptional
Parameter 6 Valueparam6

Sixth parameter to display.

Stringoptional
Parameter 7 Nameparam7_name

Label for the seventh parameter.

Stringoptional
Parameter 7 Valueparam7

Seventh parameter to display.

Stringoptional
Parameter 8 Nameparam8_name

Label for the eighth parameter.

Stringoptional
Parameter 8 Valueparam8

Eighth parameter to display.

Stringoptional
Parameter 9 Nameparam9_name

Label for the ninth parameter.

Stringoptional
Parameter 9 Valueparam9

Ninth parameter to display.

Stringoptional
Parameter 10 Nameparam10_name

Label for the tenth parameter.

Stringoptional
Parameter 10 Valueparam10

Tenth parameter to display.

Stringoptional
Parameter 11 Nameparam11_name

Label for the eleventh parameter.

Stringoptional
Parameter 11 Valueparam11

Eleventh parameter to display.

Stringoptional
Parameter 12 Nameparam12_name

Label for the twelfth parameter.

Stringoptional
Parameter 12 Valueparam12

Twelfth parameter to display.

Stringoptional
Parameter 13 Nameparam13_name

Label for the thirteenth parameter.

Stringoptional
Parameter 13 Valueparam13

Thirteenth parameter to display.

Stringoptional
Parameter 14 Nameparam14_name

Label for the fourteenth parameter.

Stringoptional
Parameter 14 Valueparam14

Fourteenth parameter to display.

Stringoptional
Parameter 15 Nameparam15_name

Label for the fifteenth parameter.

Stringoptional
Parameter 15 Valueparam15

Fifteenth parameter to display.

Stringoptional