Actions

Template

Difference between revisions of "InfoBoxSandbox"

m (Spacing)
m (Spacing)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div class="info-box-outer">
+
    <div class="info-box-outer">
<table class="info-box">
+
        <table class="info-box">
<tr>
+
            <tr>
<th class="infobox-title" colspan="2">{{{title}}}</th>
+
                <th class="infobox-title" colspan="2">{{{title}}}</th>
{{{infoBoxTable|}}}
+
                {{{infoBoxTable|}}}
</tr>
+
            </tr>
</table>
+
        </table>
</div>
+
    </div>
 
<!-- Do not seperate these tags! -->
 
<!-- Do not seperate these tags! -->
 
</includeonly><noinclude>{{InfoBoxSandbox
 
</includeonly><noinclude>{{InfoBoxSandbox
Line 13: Line 13:
 
|infoBoxTable=
 
|infoBoxTable=
 
<tr>
 
<tr>
<td>Test stuff here</td>
+
    <td>Test stuff here</td>
<td>And here</td>
+
    <td>And here</td>
 
}}
 
}}
<templatedata>
+
    <templatedata>
{
+
        {
"params": {
+
            "params": {
"title": {
+
                "title": {
"label": "Title",
+
                    "label": "Title",
"description": "The title of the info box",
+
                    "description": "The title of the info box",
"example": "Templar Order",
+
                    "example": "Templar Order",
"type": "string",
+
                    "type": "string",
"required": true
+
                    "required": true
},
+
                },
"infoBoxTable": {
+
                "infoBoxTable": {
"label": "Info box template",
+
                    "label": "Info box template",
"description": "The template table to show in the infobox",
+
                    "description": "The template table to show in the infobox",
"type": "unbalanced-wikitext",
+
                    "type": "unbalanced-wikitext",
"required": true
+
                    "required": true
}
+
                }
}
+
            }
}
+
        }
</templatedata>
+
    </templatedata>
 
</noinclude>
 
</noinclude>

Revision as of 19:18, 28 November 2020

Test infobox
Test stuff here And here

No description.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

The title of the info box

Example
Templar Order
Stringrequired
Info box templateinfoBoxTable

The template table to show in the infobox

Unbalanced wikitextrequired