Difference between revisions of "InfoBox"
(Documentation) |
m (Fixed typo with sandbox) |
||
Line 14: | Line 14: | ||
| usageContent = To use this info box, you simply need to pass a title and some content. The content appears in a table so make sure to wrap whatever you have in a table row (tr tag). | | usageContent = To use this info box, you simply need to pass a title and some content. The content appears in a table so make sure to wrap whatever you have in a table row (tr tag). | ||
| usageExample = | | usageExample = | ||
− | <pre>{{ | + | <pre>{{InfoBox |
| title=Test infobox | | title=Test infobox | ||
| infoBoxTable= | | infoBoxTable= | ||
Line 22: | Line 22: | ||
</tr> | </tr> | ||
<!-- You can use any other HTML Tags or any wikitext too, just wrap them in a tr -->}}</pre> | <!-- You can use any other HTML Tags or any wikitext too, just wrap them in a tr -->}}</pre> | ||
− | | usageResult = {{ | + | | usageResult = {{InfoBox |
|title=Test infobox | |title=Test infobox | ||
|infoBoxTable= | |infoBoxTable= |
Latest revision as of 19:41, 29 November 2020
Infobox
The infobox acts as the basis for all other infoboxes on this wiki.
Usage:
To use this info box, you simply need to pass a title and some content. The content appears in a table so make sure to wrap whatever you have in a table row (tr tag).
{{InfoBox | title=Test infobox | infoBoxTable= <tr> <td>Test stuff here</td> <td>And here</td> </tr> <!-- You can use any other HTML Tags or any wikitext too, just wrap them in a tr -->}}
The above would render the following:
Test infobox | |
---|---|
Test stuff here | And here |
Parameters:
Here are the parameters used for the infobox. These both show how the infobox will be displayed
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The title of the info box
| String | required |
Info box template | infoBoxTable | The template table content to show in the infobox. Any content in here needs to be wrapped in tr tags. | Unbalanced wikitext | required |