Actions

Template

Difference between revisions of "InfoBoxSandbox"

(Added documentation box)
(Reverted to current template)
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>}}This is some text<templatedata>{"params": {"title": {"label": "Title","description": "The title of the info box","example": "Templar Order","type": "string","required": true},"infoBoxTable": {"label": "Info box template","description": "The template table to show in the infobox","type": "unbalanced-wikitext","required": true}}}</templatedata></noinclude>
<noinclude>{{Documentation
 
| title        = InfoBox
 
| 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": {
 
"title": {
 
"label": "Title",
 
"description": "The title of the info box",
 
"example": "Templar Order",
 
"type": "string",
 
"required": true
 
},
 
"infoBoxTable": {
 
"label": "Info box template",
 
"description": "The template table to show in the infobox",
 
"type": "unbalanced-wikitext",
 
"required": true
 
}
 
},
 
"description": "Parameter information",
 
"format": "block"
 
}
 
</templatedata>
 
}}
 
 
 
</noinclude>
 

Revision as of 19:04, 28 November 2020

Test infobox
Test stuff hereAnd here

This is some text

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