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 |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
<table class="infobox-table"> | <table class="infobox-table"> | ||
{{#if:{{{param1|}}}| | {{#if:{{{param1|}}}| | ||
<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> | |||
}} | |||
{{#if:{{{param16|}}}| | |||
<tr> | |||
<th>{{{param16_name|Param 16}}}</th> | |||
<td>{{{param16}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param17|}}}| | |||
<tr> | |||
<th>{{{param17_name|Param 17}}}</th> | |||
<td>{{{param17}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param18|}}}| | |||
<tr> | |||
<th>{{{param18_name|Param 18}}}</th> | |||
<td>{{{param18}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param19|}}}| | |||
<tr> | |||
<th>{{{param19_name|Param 19}}}</th> | |||
<td>{{{param19}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param20|}}}| | |||
<tr> | |||
<th>{{{param20_name|Param 20}}}</th> | |||
<td>{{{param20}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param21|}}}| | |||
<tr> | |||
<th>{{{param21_name|Param 21}}}</th> | |||
<td>{{{param21}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param22|}}}| | |||
<tr> | |||
<th>{{{param22_name|Param 22}}}</th> | |||
<td>{{{param22}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param23|}}}| | |||
<tr> | |||
<th>{{{param23_name|Param 23}}}</th> | |||
<td>{{{param23}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param24|}}}| | |||
<tr> | |||
<th>{{{param24_name|Param 24}}}</th> | |||
<td>{{{param24}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{param25|}}}| | |||
<tr> | |||
<th>{{{param25_name|Param 25}}}</th> | |||
<td>{{{param25}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
Line 47: | Line 163: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "An infobox template with customizable parameters.", | |||
"params": { | |||
"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." }, | |||
"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." }, | |||
"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." }, | |||
"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." }, | |||
"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." }, | |||
"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." }, | |||
"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." }, | |||
"param16": { "label": "Parameter 16 Value", "type": "string", "description": "Sixteenth parameter to display." }, | |||
"param16_name": { "label": "Parameter 16 Name", "type": "string", "description": "Label for the sixteenth parameter." }, | |||
"param17": { "label": "Parameter 17 Value", "type": "string", "description": "Seventeenth parameter to display." }, | |||
"param17_name": { "label": "Parameter 17 Name", "type": "string", "description": "Label for the seventeenth parameter." }, | |||
"param18": { "label": "Parameter 18 Value", "type": "string", "description": "Eighteenth parameter to display." }, | |||
"param18_name": { "label": "Parameter 18 Name", "type": "string", "description": "Label for the eighteenth parameter." }, | |||
"param19": { "label": "Parameter 19 Value", "type": "string", "description": "Nineteenth parameter to display." }, | |||
"param19_name": { "label": "Parameter 19 Name", "type": "string", "description": "Label for the nineteenth parameter." }, | |||
"param20": { "label": "Parameter 20 Value", "type": "string", "description": "Twentieth parameter to display." }, | |||
"param20_name": { "label": "Parameter 20 Name", "type": "string", "description": "Label for the twentieth parameter." }, | |||
"param21": { "label": "Parameter 21 Value", "type": "string", "description": "Twenty-first parameter to display." }, | |||
"param21_name": { "label": "Parameter 21 Name", "type": "string", "description": "Label for the twenty-first parameter." }, | |||
"param22": { "label": "Parameter 22 Value", "type": "string", "description": "Twenty-second parameter to display." }, | |||
"param22_name": { "label": "Parameter 22 Name", "type": "string", "description": "Label for the twenty-second parameter." }, | |||
"param23": { "label": "Parameter 23 Value", "type": "string", "description": "Twenty-third parameter to display." }, | |||
"param23_name": { "label": "Parameter 23 Name", "type": "string", "description": "Label for the twenty-third parameter." }, | |||
"param24": { "label": "Parameter 24 Value", "type": "string", "description": "Twenty-fourth parameter to display." }, | |||
"param24_name": { "label": "Parameter 24 Name", "type": "string", "description": "Label for the twenty-fourth parameter." }, | |||
"param25": { "label": "Parameter 25 Value", "type": "string", "description": "Twenty-fifth parameter to display." }, | |||
"param25_name": { "label": "Parameter 25 Name", "type": "string", "description": "Label for the twenty-fifth parameter." } | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 15:22, 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 Value | param1 | First parameter to display. | String | optional |
Parameter 1 Name | param1_name | Label for the first parameter. | String | optional |
Parameter 2 Value | param2 | Second parameter to display. | String | optional |
Parameter 2 Name | param2_name | Label for the second parameter. | String | optional |
Parameter 3 Value | param3 | Third parameter to display. | String | optional |
Parameter 3 Name | param3_name | Label for the third parameter. | String | optional |
Parameter 4 Value | param4 | Fourth parameter to display. | String | optional |
Parameter 4 Name | param4_name | Label for the fourth parameter. | String | optional |
Parameter 5 Value | param5 | Fifth parameter to display. | String | optional |
Parameter 5 Name | param5_name | Label for the fifth parameter. | String | optional |
Parameter 6 Value | param6 | Sixth parameter to display. | String | optional |
Parameter 6 Name | param6_name | Label for the sixth parameter. | String | optional |
Parameter 7 Value | param7 | Seventh parameter to display. | String | optional |
Parameter 7 Name | param7_name | Label for the seventh parameter. | String | optional |
Parameter 8 Value | param8 | Eighth parameter to display. | String | optional |
Parameter 8 Name | param8_name | Label for the eighth parameter. | String | optional |
Parameter 9 Value | param9 | Ninth parameter to display. | String | optional |
Parameter 9 Name | param9_name | Label for the ninth parameter. | String | optional |
Parameter 10 Value | param10 | Tenth parameter to display. | String | optional |
Parameter 10 Name | param10_name | Label for the tenth parameter. | String | optional |
Parameter 11 Value | param11 | Eleventh parameter to display. | String | optional |
Parameter 11 Name | param11_name | Label for the eleventh parameter. | String | optional |
Parameter 12 Value | param12 | Twelfth parameter to display. | String | optional |
Parameter 12 Name | param12_name | Label for the twelfth parameter. | String | optional |
Parameter 13 Value | param13 | Thirteenth parameter to display. | String | optional |
Parameter 13 Name | param13_name | Label for the thirteenth parameter. | String | optional |
Parameter 14 Value | param14 | Fourteenth parameter to display. | String | optional |
Parameter 14 Name | param14_name | Label for the fourteenth parameter. | String | optional |
Parameter 15 Value | param15 | Fifteenth parameter to display. | String | optional |
Parameter 15 Name | param15_name | Label for the fifteenth parameter. | String | optional |
Parameter 16 Value | param16 | Sixteenth parameter to display. | String | optional |
Parameter 16 Name | param16_name | Label for the sixteenth parameter. | String | optional |
Parameter 17 Value | param17 | Seventeenth parameter to display. | String | optional |
Parameter 17 Name | param17_name | Label for the seventeenth parameter. | String | optional |
Parameter 18 Value | param18 | Eighteenth parameter to display. | String | optional |
Parameter 18 Name | param18_name | Label for the eighteenth parameter. | String | optional |
Parameter 19 Value | param19 | Nineteenth parameter to display. | String | optional |
Parameter 19 Name | param19_name | Label for the nineteenth parameter. | String | optional |
Parameter 20 Value | param20 | Twentieth parameter to display. | String | optional |
Parameter 20 Name | param20_name | Label for the twentieth parameter. | String | optional |
Parameter 21 Value | param21 | Twenty-first parameter to display. | String | optional |
Parameter 21 Name | param21_name | Label for the twenty-first parameter. | String | optional |
Parameter 22 Value | param22 | Twenty-second parameter to display. | String | optional |
Parameter 22 Name | param22_name | Label for the twenty-second parameter. | String | optional |
Parameter 23 Value | param23 | Twenty-third parameter to display. | String | optional |
Parameter 23 Name | param23_name | Label for the twenty-third parameter. | String | optional |
Parameter 24 Value | param24 | Twenty-fourth parameter to display. | String | optional |
Parameter 24 Name | param24_name | Label for the twenty-fourth parameter. | String | optional |
Parameter 25 Value | param25 | Twenty-fifth parameter to display. | String | optional |
Parameter 25 Name | param25_name | Label for the twenty-fifth parameter. | String | optional |