Actions

Template

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>{{InfoBoxSandbox
+
<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  = {{InfoBoxSandbox
+
| 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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

The title of the info box

Example
Templar Order
Stringrequired
Info box templateinfoBoxTable

The template table content to show in the infobox. Any content in here needs to be wrapped in tr tags.

Unbalanced wikitextrequired