|
|
Line 1: |
Line 1: |
| {{#invoke:Infobox|infobox
| | <div class="infobox"> |
| | title = {{{title|}}}
| | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| |
| | image = {{{image|}}}
| | <div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}} |
| | image_size = {{{image_size|280px}}}
| | <table class="infobox-table">{{#if:{{{param1|}}}|<tr> |
| | caption = {{{caption|}}}
| | <th>Parameter 1</th> |
| | section1 = {{{section1|}}}
| | <td>{{{param1}}}</td> |
| | label1 = {{{label1|}}}
| | </tr>}}{{#if:{{{param2|}}}|<tr> |
| | data1 = {{{data1|}}}
| | <th>Parameter 2</th> |
| | section2 = {{{section2|}}}
| | <td>{{{param2}}}</td> |
| | label2 = {{{label2|}}}
| | </tr>}}{{#if:{{{param3|}}}|<tr> |
| | data2 = {{{data2|}}}
| | <th>Parameter 3</th> |
| | section3 = {{{section3|}}}
| | <td>{{{param3}}}</td> |
| | label3 = {{{label3|}}}
| | </tr>}}{{#if:{{{param4|}}}|<tr> |
| | data3 = {{{data3|}}}
| | <th>Parameter 4</th> |
| | section4 = {{{section4|}}}
| | <td>{{{param4}}}</td> |
| | label4 = {{{label4|}}}
| | </tr>}}{{#if:{{{param5|}}}|<tr> |
| | data4 = {{{data4|}}}
| | <th>Parameter 5</th> |
| | section5 = {{{section5|}}}
| | <td>{{{param5}}}</td> |
| | label5 = {{{label5|}}}
| | </tr>}}</table> |
| | data5 = {{{data5|}}}
| | </div> |
| | section6 = {{{section6|}}}
| |
| | label6 = {{{label6|}}}
| |
| | data6 = {{{data6|}}}
| |
| | section7 = {{{section7|}}}
| |
| | label7 = {{{label7|}}}
| |
| | data7 = {{{data7|}}}
| |
| | section8 = {{{section8|}}}
| |
| | label8 = {{{label8|}}}
| |
| | data8 = {{{data8|}}}
| |
| | section9 = {{{section9|}}}
| |
| | label9 = {{{label9|}}}
| |
| | data9 = {{{data9|}}}
| |
| | section10 = {{{section10|}}}
| |
| | label10 = {{{label10|}}}
| |
| | data10 = {{{data10|}}}
| |
| }}
| |
| <noinclude> | |
| {{Documentation}}
| |
| </noinclude> | |
| | |
| <templatedata> | |
| { | |
| "description": "Generic infobox with sections and label/data rows.",
| |
| "params": {
| |
| "title": {
| |
| "label": "Title",
| |
| "description": "Infobox title",
| |
| "type": "string",
| |
| "required": false
| |
| },
| |
| "image": {
| |
| "label": "Image filename",
| |
| "description": "File name without File:",
| |
| "type": "string"
| |
| },
| |
| "image_size": {
| |
| "label": "Image size",
| |
| "description": "e.g., 280px",
| |
| "type": "string",
| |
| "default": "280px"
| |
| },
| |
| "caption": {
| |
| "label": "Image caption",
| |
| "type": "string"
| |
| },
| |
| "section1": {
| |
| "label": "Section 1 header",
| |
| "type": "string"
| |
| },
| |
| "label1": {
| |
| "label": "Row 1 label",
| |
| "type": "string"
| |
| },
| |
| "data1": {
| |
| "label": "Row 1 value",
| |
| "type": "string"
| |
| },
| |
| "section2": {
| |
| "label": "Section 2 header",
| |
| "type": "string"
| |
| },
| |
| "label2": {
| |
| "label": "Row 2 label",
| |
| "type": "string"
| |
| },
| |
| "data2": {
| |
| "label": "Row 2 value",
| |
| "type": "string"
| |
| },
| |
| "section3": {
| |
| "label": "Section 3 header",
| |
| "type": "string"
| |
| },
| |
| "label3": {
| |
| "label": "Row 3 label",
| |
| "type": "string"
| |
| },
| |
| "data3": {
| |
| "label": "Row 3 value",
| |
| "type": "string"
| |
| },
| |
| "section4": {
| |
| "label": "Section 4 header",
| |
| "type": "string"
| |
| },
| |
| "label4": {
| |
| "label": "Row 4 label",
| |
| "type": "string"
| |
| },
| |
| "data4": {
| |
| "label": "Row 4 value",
| |
| "type": "string"
| |
| },
| |
| "section5": {
| |
| "label": "Section 5 header",
| |
| "type": "string"
| |
| },
| |
| "label5": {
| |
| "label": "Row 5 label",
| |
| "type": "string"
| |
| },
| |
| "data5": {
| |
| "label": "Row 5 value",
| |
| "type": "string"
| |
| },
| |
| "section6": {
| |
| "label": "Section 6 header",
| |
| "type": "string"
| |
| },
| |
| "label6": {
| |
| "label": "Row 6 label",
| |
| "type": "string"
| |
| },
| |
| "data6": {
| |
| "label": "Row 6 value",
| |
| "type": "string"
| |
| },
| |
| "section7": {
| |
| "label": "Section 7 header",
| |
| "type": "string"
| |
| },
| |
| "label7": {
| |
| "label": "Row 7 label",
| |
| "type": "string"
| |
| },
| |
| "data7": {
| |
| "label": "Row 7 value",
| |
| "type": "string"
| |
| },
| |
| "section8": {
| |
| "label": "Section 8 header",
| |
| "type": "string"
| |
| },
| |
| "label8": {
| |
| "label": "Row 8 label",
| |
| "type": "string"
| |
| },
| |
| "data8": {
| |
| "label": "Row 8 value",
| |
| "type": "string"
| |
| },
| |
| "section9": {
| |
| "label": "Section 9 header",
| |
| "type": "string"
| |
| },
| |
| "label9": {
| |
| "label": "Row 9 label",
| |
| "type": "string"
| |
| },
| |
| "data9": {
| |
| "label": "Row 9 value",
| |
| "type": "string"
| |
| },
| |
| "section10": {
| |
| "label": "Section 10 header",
| |
| "type": "string"
| |
| },
| |
| "label10": {
| |
| "label": "Row 10 label",
| |
| "type": "string"
| |
| },
| |
| "data10": {
| |
| "label": "Row 10 value",
| |
| "type": "string"
| |
| }
| |
| }
| |
| } | |
| </templatedata> | |