More actions
m Change the use case description for NPCTableCSS. |
Add Template data. |
||
| Line 25: | Line 25: | ||
; See also | ; See also | ||
* [[UniWiki:Mission formatting guidelines|Mission formatting guidelines]] | * [[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." | |||
} | |||
</templatedata> | |||
<includeonly>[[Category:Formatting templates]]<!-- Any categories for the template itself --></includeonly> | <includeonly>[[Category:Formatting templates]]<!-- Any categories for the template itself --></includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 10:57, 28 October 2025
- Description
- This template is used to create a header row in an NPCTable.
- Dependencies
-
- Requires
- {{NPCTableCSS}} is required only once per page where there's at least one NPCTable. It is included into {{CMBSiteInfo}} and {{CMBSite}}(deprecated), so when one of those is used there is no need to add it separately.
- {{NPCTableHead}}
- Syntax
- {{NPCTableSeparator|<content>}}
- Parameters
-
- content
- Text in the row.
- Sample
{{NPCTableHead|Initial defenders}}{{NPCTableSeparator|Group A}}|}- gives...
Initial defenders
| WD | EWAR | L | ||
|---|---|---|---|---|
| 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
- Template data
- This is the TemplateData documentation for this template used by VisualEditor and other tools.
This template is used to create a header row in an NPCTable.
Template parameters
Parameter Description Type Status content 1The text in the header row
- Example
- Group 1
Line required