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)
removed footer
Add info to template date that this template is not visual editor friendly.
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This template is used to create separator line in NPC table for the pages describing combat complexes.
; Description
== Dependencies ==
: This template is used to create a header row in an NPCTable.
* Uses {{t|Complex}} to acquire proper CSS.
* Uses {{t|NPCTableHead}} to generate table header.
* Uses {{t|NPCTableRow}} to generate rows.
== Syntax ==
<code>{{t|Complex|Name of the complex}}<br>
{{t|NPCTableHead|Table header}}<br>
{{t|NPCTableRow|Parameters - see NPCTableRow documentation}}<br>
{{t|NPCTableSeparator|Separator title}}<br>
{{t|NPCTableRow|Parameters - see NPCTableRow documentation}}<br>
|}</code>


=== Parameters ===
; Dependencies:
;Text for separator
:; Requires
:This is the title which describes next NPC group when you don't want to create additional table e.g. <code>After 50% armor</code>, <code>On Commander aggression</code>, etc.  
:: {{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}}


== Sample output ==
; Syntax
<code><nowiki>{{Complex|Serpentis Lookout}}</nowiki><br>
: {{T|NPCTableSeparator|content}}
<nowiki>{{NPCTableHead|Wave #34}}</nowiki><br>
:; Parameters
<nowiki>{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}</nowiki><br>
::; content: Text in the row.
<nowiki>{{NPCTableSeparator|After 25% on target structure}}</nowiki><br>
 
<nowiki>{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}</nowiki><br>
; Sample
<nowiki>|}</nowiki></code>
{{NPCTableCSS}}
:gives...
: <code><nowiki>{{NPCTableHead|Initial defenders}}</nowiki></code>
{{Complex|Serpentis Lookout}}
: <code><nowiki>{{NPCTableSeparator|Group A}}</nowiki></code>
{{NPCTableHead|Wave #34}}
: <code><nowiki>|}</nowiki></code>
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
:: gives...
{{NPCTableSeparator|After 25% on target structure}}
{{NPCTableHead|Initial defenders}}
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
{{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:Template|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
<includeonly>[[Category:Formatting templates]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 11:19, 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. This template is not visual editor friendly so it is best to use it in text editor mode.

Template parameters

ParameterDescriptionTypeStatus
content1

The text in the header row

Example
Group 1
Linerequired