More actions
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 | <th>{{{param1_name|Param 1}}}</th> | ||
<td>{{{param1}}}</td> | <td>{{{param1}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{param2|}}}| | |||
{{#if:{{{param2|}}}| | |||
<tr> | <tr> | ||
<th>{{{param2_name|Param 2}}}</th> | <th>{{{param2_name|Param 2}}}</th> | ||
Line 20: | Line 19: | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{param3|}}}| | |||
{{#if:{{{param3|}}}| | |||
<tr> | <tr> | ||
<th>{{{param3_name|Param 3}}}</th> | <th>{{{param3_name|Param 3}}}</th> | ||
Line 27: | Line 25: | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{param4|}}}| | |||
{{#if:{{{param4|}}}| | |||
<tr> | <tr> | ||
<th>{{{param4_name|Param 4}}}</th> | <th>{{{param4_name|Param 4}}}</th> | ||
Line 34: | Line 31: | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{param5|}}}| | |||
{{#if:{{{param5|}}}| | |||
<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." }, | ||
"subtitle": { "label": "Subtitle", "type": "string", "description": "An optional subtitle for the infobox." }, | |||
"image": { "label": "Image", "type": "string", "description": "Image file displayed in the infobox." }, | |||
"param1": { "label": "Parameter 1 Value", "type": "string", "description": "First parameter to display." }, | |||
"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." }, | ||
"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." }, | |||
"image": { | "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." }, | |||
"param6": { "label": "Parameter 6 Value", "type": "string", "description": "Sixth parameter to display." }, | |||
"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." }, | ||
"param8": { "label": "Parameter 8 Value", "type": "string", "description": "Eighth parameter to display." }, | |||
"param8_name": { "label": "Parameter 8 Name", "type": "string", "description": "Label for the eighth parameter." }, | |||
"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." }, | ||
"param10_name": { "label": "Parameter 10 Name", "type": "string", "description": "Label for the tenth parameter." }, | |||
"param11": { "label": "Parameter 11 Value", "type": "string", "description": "Eleventh parameter to display." }, | |||
"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." }, | ||
"param13": { "label": "Parameter 13 Value", "type": "string", "description": "Thirteenth parameter to display." }, | |||
"param13_name": { "label": "Parameter 13 Name", "type": "string", "description": "Label for the thirteenth parameter." }, | |||
"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." }, | ||
"param15_name": { "label": "Parameter 15 Name", "type": "string", "description": "Label for the fifteenth parameter." } | |||
"param3": { | |||
"param3_name": { | |||
}, | |||
" | |||
}, | |||
" | |||
}, | |||
" | |||
}, | |||
" | |||
} | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"title", | "title", "subtitle", "image", | ||
"param1_name", "param1", "param2_name", "param2", "param3_name", "param3", | |||
"param4_name", "param4", "param5_name", "param5", "param6_name", "param6", | |||
"param1_name", | "param7_name", "param7", "param8_name", "param8", "param9_name", "param9", | ||
"param10_name", "param10", "param11_name", "param11", "param12_name", "param12", | |||
"param13_name", "param13", "param14_name", "param14", "param15_name", "param15" | |||
"param4_name", | |||
" | |||
" | |||
" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 15:15, 25 October 2024
An infobox template with customizable parameters.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The title displayed at the top of the infobox.
| String | optional |
Subtitle | subtitle | An optional subtitle for the infobox. | String | optional |
Image | image | Image file displayed in the infobox. | String | optional |
Parameter 1 Name | param1_name | Label for the first parameter. | String | optional |
Parameter 1 Value | param1 | First parameter to display. | String | optional |
Parameter 2 Name | param2_name | Label for the second parameter. | String | optional |
Parameter 2 Value | param2 | Second parameter to display. | String | optional |
Parameter 3 Name | param3_name | Label for the third parameter. | String | optional |
Parameter 3 Value | param3 | Third parameter to display. | String | optional |
Parameter 4 Name | param4_name | Label for the fourth parameter. | String | optional |
Parameter 4 Value | param4 | Fourth parameter to display. | String | optional |
Parameter 5 Name | param5_name | Label for the fifth parameter. | String | optional |
Parameter 5 Value | param5 | Fifth parameter to display. | String | optional |
Parameter 6 Name | param6_name | Label for the sixth parameter. | String | optional |
Parameter 6 Value | param6 | Sixth parameter to display. | String | optional |
Parameter 7 Name | param7_name | Label for the seventh parameter. | String | optional |
Parameter 7 Value | param7 | Seventh parameter to display. | String | optional |
Parameter 8 Name | param8_name | Label for the eighth parameter. | String | optional |
Parameter 8 Value | param8 | Eighth parameter to display. | String | optional |
Parameter 9 Name | param9_name | Label for the ninth parameter. | String | optional |
Parameter 9 Value | param9 | Ninth parameter to display. | String | optional |
Parameter 10 Name | param10_name | Label for the tenth parameter. | String | optional |
Parameter 10 Value | param10 | Tenth parameter to display. | String | optional |
Parameter 11 Name | param11_name | Label for the eleventh parameter. | String | optional |
Parameter 11 Value | param11 | Eleventh parameter to display. | String | optional |
Parameter 12 Name | param12_name | Label for the twelfth parameter. | String | optional |
Parameter 12 Value | param12 | Twelfth parameter to display. | String | optional |
Parameter 13 Name | param13_name | Label for the thirteenth parameter. | String | optional |
Parameter 13 Value | param13 | Thirteenth parameter to display. | String | optional |
Parameter 14 Name | param14_name | Label for the fourteenth parameter. | String | optional |
Parameter 14 Value | param14 | Fourteenth parameter to display. | String | optional |
Parameter 15 Name | param15_name | Label for the fifteenth parameter. | String | optional |
Parameter 15 Value | param15 | Fifteenth parameter to display. | String | optional |