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
 
(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 is set, display the row -->
         {{#if:{{{param1|}}}|  
             <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>
        }}
        {{#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.",
    "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",
        "param16": { "label": "Parameter 16 Value", "type": "string", "description": "Sixteenth parameter to display." },
"description": "Label for the second parameter."
        "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." },
"param3": {
        "param17_name": { "label": "Parameter 17 Name", "type": "string", "description": "Label for the seventeenth parameter." },
"label": "Parameter 3 Value",
        "param18": { "label": "Parameter 18 Value", "type": "string", "description": "Eighteenth parameter to display." },
"type": "string",
        "param18_name": { "label": "Parameter 18 Name", "type": "string", "description": "Label for the eighteenth parameter." },
"description": "Third parameter to display."
        "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." },
"param3_name": {
        "param20": { "label": "Parameter 20 Value", "type": "string", "description": "Twentieth parameter to display." },
"label": "Parameter 3 Name",
        "param20_name": { "label": "Parameter 20 Name", "type": "string", "description": "Label for the twentieth parameter." },
"type": "string",
        "param21": { "label": "Parameter 21 Value", "type": "string", "description": "Twenty-first parameter to display." },
"description": "Label for the third parameter."
        "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." },
"param4": {
        "param22_name": { "label": "Parameter 22 Name", "type": "string", "description": "Label for the twenty-second parameter." },
"label": "Parameter 4 Value",
        "param23": { "label": "Parameter 23 Value", "type": "string", "description": "Twenty-third parameter to display." },
"type": "string",
        "param23_name": { "label": "Parameter 23 Name", "type": "string", "description": "Label for the twenty-third parameter." },
"description": "Fourth parameter to display."
        "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." },
"param4_name": {
        "param25": { "label": "Parameter 25 Value", "type": "string", "description": "Twenty-fifth parameter to display." },
"label": "Parameter 4 Name",
        "param25_name": { "label": "Parameter 25 Name", "type": "string", "description": "Label for the twenty-fifth parameter." }
"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": [
"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 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