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
No edit summary
No edit summary
 
Line 7: Line 7:


     <table class="infobox-table">
     <table class="infobox-table">
         {{#if:{{{param1|}}}| <!-- If param1 is set, display the row -->
         {{#if:{{{param1|}}}|  
             <tr>
             <tr>
                 <th>{{{param1_name|Param 1}}}</th>
                 <th>{{{param1_name|Param 1}}}</th>
Line 95: Line 95:
                 <th>{{{param15_name|Param 15}}}</th>
                 <th>{{{param15_name|Param 15}}}</th>
                 <td>{{{param15}}}</td>
                 <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 103: Line 163:
<templatedata>
<templatedata>
{
{
"description": "An infobox template with customizable parameters.",
    "description": "An infobox template with customizable parameters.",
"params": {
    "params": {
"title": { "label": "Title", "type": "string", "default": "{{PAGENAME}}", "description": "The title displayed at the top of the infobox." },
        "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." },
        "subtitle": { "label": "Subtitle", "type": "string", "description": "An optional subtitle for the infobox." },
"image": { "label": "Image", "type": "string", "description": "Image file displayed in 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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." },
        "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": { "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." }
        "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." },
"paramOrder": [
        "param16_name": { "label": "Parameter 16 Name", "type": "string", "description": "Label for the sixteenth parameter." },
"title", "subtitle", "image",
        "param17": { "label": "Parameter 17 Value", "type": "string", "description": "Seventeenth parameter to display." },
"param1_name", "param1", "param2_name", "param2", "param3_name", "param3",
        "param17_name": { "label": "Parameter 17 Name", "type": "string", "description": "Label for the seventeenth parameter." },
"param4_name", "param4", "param5_name", "param5", "param6_name", "param6",
        "param18": { "label": "Parameter 18 Value", "type": "string", "description": "Eighteenth parameter to display." },
"param7_name", "param7", "param8_name", "param8", "param9_name", "param9",
        "param18_name": { "label": "Parameter 18 Name", "type": "string", "description": "Label for the eighteenth parameter." },
"param10_name", "param10", "param11_name", "param11", "param12_name", "param12",
        "param19": { "label": "Parameter 19 Value", "type": "string", "description": "Nineteenth parameter to display." },
"param13_name", "param13", "param14_name", "param14", "param15_name", "param15"
        "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

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 Valueparam1

First parameter to display.

Stringoptional
Parameter 1 Nameparam1_name

Label for the first parameter.

Stringoptional
Parameter 2 Valueparam2

Second parameter to display.

Stringoptional
Parameter 2 Nameparam2_name

Label for the second parameter.

Stringoptional
Parameter 3 Valueparam3

Third parameter to display.

Stringoptional
Parameter 3 Nameparam3_name

Label for the third parameter.

Stringoptional
Parameter 4 Valueparam4

Fourth parameter to display.

Stringoptional
Parameter 4 Nameparam4_name

Label for the fourth parameter.

Stringoptional
Parameter 5 Valueparam5

Fifth parameter to display.

Stringoptional
Parameter 5 Nameparam5_name

Label for the fifth parameter.

Stringoptional
Parameter 6 Valueparam6

Sixth parameter to display.

Stringoptional
Parameter 6 Nameparam6_name

Label for the sixth parameter.

Stringoptional
Parameter 7 Valueparam7

Seventh parameter to display.

Stringoptional
Parameter 7 Nameparam7_name

Label for the seventh parameter.

Stringoptional
Parameter 8 Valueparam8

Eighth parameter to display.

Stringoptional
Parameter 8 Nameparam8_name

Label for the eighth parameter.

Stringoptional
Parameter 9 Valueparam9

Ninth parameter to display.

Stringoptional
Parameter 9 Nameparam9_name

Label for the ninth parameter.

Stringoptional
Parameter 10 Valueparam10

Tenth parameter to display.

Stringoptional
Parameter 10 Nameparam10_name

Label for the tenth parameter.

Stringoptional
Parameter 11 Valueparam11

Eleventh parameter to display.

Stringoptional
Parameter 11 Nameparam11_name

Label for the eleventh parameter.

Stringoptional
Parameter 12 Valueparam12

Twelfth parameter to display.

Stringoptional
Parameter 12 Nameparam12_name

Label for the twelfth parameter.

Stringoptional
Parameter 13 Valueparam13

Thirteenth parameter to display.

Stringoptional
Parameter 13 Nameparam13_name

Label for the thirteenth parameter.

Stringoptional
Parameter 14 Valueparam14

Fourteenth parameter to display.

Stringoptional
Parameter 14 Nameparam14_name

Label for the fourteenth parameter.

Stringoptional
Parameter 15 Valueparam15

Fifteenth parameter to display.

Stringoptional
Parameter 15 Nameparam15_name

Label for the fifteenth parameter.

Stringoptional
Parameter 16 Valueparam16

Sixteenth parameter to display.

Stringoptional
Parameter 16 Nameparam16_name

Label for the sixteenth parameter.

Stringoptional
Parameter 17 Valueparam17

Seventeenth parameter to display.

Stringoptional
Parameter 17 Nameparam17_name

Label for the seventeenth parameter.

Stringoptional
Parameter 18 Valueparam18

Eighteenth parameter to display.

Stringoptional
Parameter 18 Nameparam18_name

Label for the eighteenth parameter.

Stringoptional
Parameter 19 Valueparam19

Nineteenth parameter to display.

Stringoptional
Parameter 19 Nameparam19_name

Label for the nineteenth parameter.

Stringoptional
Parameter 20 Valueparam20

Twentieth parameter to display.

Stringoptional
Parameter 20 Nameparam20_name

Label for the twentieth parameter.

Stringoptional
Parameter 21 Valueparam21

Twenty-first parameter to display.

Stringoptional
Parameter 21 Nameparam21_name

Label for the twenty-first parameter.

Stringoptional
Parameter 22 Valueparam22

Twenty-second parameter to display.

Stringoptional
Parameter 22 Nameparam22_name

Label for the twenty-second parameter.

Stringoptional
Parameter 23 Valueparam23

Twenty-third parameter to display.

Stringoptional
Parameter 23 Nameparam23_name

Label for the twenty-third parameter.

Stringoptional
Parameter 24 Valueparam24

Twenty-fourth parameter to display.

Stringoptional
Parameter 24 Nameparam24_name

Label for the twenty-fourth parameter.

Stringoptional
Parameter 25 Valueparam25

Twenty-fifth parameter to display.

Stringoptional
Parameter 25 Nameparam25_name

Label for the twenty-fifth parameter.

Stringoptional