Actions

Template

Difference between revisions of "InfoBoxSandbox"

(Created infobox sandbox)
 
(Added documentation box)
Line 1: Line 1:
 
<includeonly><div class="info-box-outer"><table class="info-box"><tr><th class="infobox-title" colspan="2">{{{title}}}</th>{{{infoBoxTable|}}}</tr></table></div></includeonly>
 
<includeonly><div class="info-box-outer"><table class="info-box"><tr><th class="infobox-title" colspan="2">{{{title}}}</th>{{{infoBoxTable|}}}</tr></table></div></includeonly>
<noinclude>{{InfoBox|title=Test infobox|infoBoxTable=<tr><td>Test stuff here</td><td>And here</td>}}
+
<noinclude>{{Documentation
This is some text
+
| title        = InfoBox
<templatedata>
+
| introduction  = This infobox is the basis for all other infoboxes on this wiki. They display on the right hand side of wiki pages.
 +
| usageContent  = You should not use this template directly in any pages, but rather you should use the correct infobox for the type of thing the page is about. If the info box doesn't exist or is missing parameters that you would like, let David Know
 +
| usageExample  =
 +
<nowiki>
 +
{{InfoBox
 +
| title         = Test infobox
 +
| infoBoxTable = <tr><td>Test stuff here</td><td>And here</td>
 +
}}
 +
</nowiki>
 +
| usageResult =
 +
{{InfoBox
 +
| title        = Test infobox
 +
| infoBoxTable  = <tr><td>Test stuff here</td><td>And here</td>
 +
}}
 +
| parameters    = <templatedata>
 
{
 
{
 
"params": {
 
"params": {
Line 18: Line 32:
 
"required": true
 
"required": true
 
}
 
}
}
+
},
 +
"description": "Parameter information",
 +
"format": "block"
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
}}
 +
 
</noinclude>
 
</noinclude>

Revision as of 23:32, 13 October 2020


InfoBox

This infobox is the basis for all other infoboxes on this wiki. They display on the right hand side of wiki pages.

Usage:

You should not use this template directly in any pages, but rather you should use the correct infobox for the type of thing the page is about. If the info box doesn't exist or is missing parameters that you would like, let David Know

       
{{InfoBox
| title         = Test infobox
| infoBoxTable  = <tr><td>Test stuff here</td><td>And here</td>
}}

The above would render the following:

Test infobox
Test stuff hereAnd here

Parameters:

Parameter information

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 to show in the infobox

Unbalanced wikitextrequired