Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:NPCTableSeparator/doc: Difference between revisions

Template page
Hirmuolio Pine (talk | contribs)
Redirects to NPCTableHead/doc so same doc is used
Add info to template date that this template is not visual editor friendly.
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Template:NPCTableHead/doc]]
; Description
: This template is used to create a header row in an NPCTable.
 
; Dependencies:
:; Requires
:: {{T|NPCTableCSS}} is required only <em>once</em> per page where there's at least one NPCTable. It is included into {{T|CMBSiteInfo}} and {{T|CMBSite}}(deprecated), so when one of those is used there is no need to add it separately.
:: {{T|NPCTableHead}}
 
; Syntax
: {{T|NPCTableSeparator|content}}
:; Parameters
::; content: Text in the row.
 
; Sample
{{NPCTableCSS}}
: <code><nowiki>{{NPCTableHead|Initial defenders}}</nowiki></code>
: <code><nowiki>{{NPCTableSeparator|Group A}}</nowiki></code>
: <code><nowiki>|}</nowiki></code>
:: gives...
{{NPCTableHead|Initial defenders}}
{{NPCTableSeparator|Group A}}
|}
Note: #222222 is used for the background color of the NPCTable headers. But because the background color of the documentation section of a template is also #222222 it can not be seen on a template page.
 
; See also
* [[UniWiki:Mission formatting guidelines|Mission formatting guidelines]]
 
; Template data
: This is the [[mediawikiwiki:Help:TemplateData|TemplateData]] documentation for this template used by [[mediawikiwiki:VisualEditor|VisualEditor]] and other tools.
:: <templatedata>
{
"params": {
"1": {
"label": "content",
"description": "The text in the header row",
"example": "Group 1",
"type": "line",
"required": true
}
},
"description": "This template is used to create a header row in an NPCTable. This template is not visual editor friendly so it is best to use it in text editor mode."
}
</templatedata>
 
<includeonly>[[Category:Formatting templates]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>