Difference between revisions of "Template:NPCTableHead/doc"

From EVE University Wiki
Jump to: navigation, search
(Adding {{NPCTableSeparator}} to templates group)
(Removed footer template. Added how to use without CMBSite template.)
Line 1: Line 1:
 
This template is used to create NPC table header for the pages describing combat complexes.
 
This template is used to create NPC table header for the pages describing combat complexes.
 
== Dependencies ==
 
== Dependencies ==
* Uses {{t|Complex}} to acquire proper CSS.
+
* Uses {{t|CMBSite}} to acquire proper CSS.
 
* Uses {{t|NPCTableRow}} to generate rows.
 
* Uses {{t|NPCTableRow}} to generate rows.
 
* Uses {{t|NPCTableSeparator}} for separating parts of table with title.
 
* Uses {{t|NPCTableSeparator}} for separating parts of table with title.
* Uses {{t|NPCTableFoot}} to finish table.
 
 
== Syntax ==
 
== Syntax ==
<code>{{t|Complex|Name of the complex}}<br>
+
<code>{{t|CMBSite|Name of the complex}}<br>
 
{{t|NPCTableHead|Table header}}<br>
 
{{t|NPCTableHead|Table header}}<br>
 
{{t|NPCTableRow|Parameters - see NPCTableRow documentation}}<br>
 
{{t|NPCTableRow|Parameters - see NPCTableRow documentation}}<br>
 
{{t|NPCTableSeparator|Parameters - see NPCTableSeparator documentation}}<br>
 
{{t|NPCTableSeparator|Parameters - see NPCTableSeparator documentation}}<br>
 
{{t|NPCTableRow|Parameters - see NPCTableRow documentation}}<br>
 
{{t|NPCTableRow|Parameters - see NPCTableRow documentation}}<br>
{{t|NPCTableFoot}}</code>
+
|}</code>
  
 
=== Parameters ===
 
=== Parameters ===
Line 18: Line 17:
  
 
== Sample output ==
 
== Sample output ==
<code><nowiki>{{Complex|Serpentis Lookout}}</nowiki><br>
+
<code><nowiki>{{CMBSite|Serpentis Lookout}}</nowiki><br>
 
<nowiki>{{NPCTableHead|Wave #34}}</nowiki><br>
 
<nowiki>{{NPCTableHead|Wave #34}}</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>
 
<nowiki>{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}</nowiki><br>
 
<nowiki>{{NPCTableSeparator|After 25% on target structure}}</nowiki><br>
 
<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>
 
<nowiki>{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}</nowiki><br>
<nowiki>{{NPCTableFoot}}</nowiki></code>
+
<nowiki>|}</nowiki></code>
 
:gives...
 
:gives...
{{Complex|Serpentis Lookout}}
+
{{CMBSite|Serpentis Lookout}}
 
{{NPCTableHead|Wave #34}}
 
{{NPCTableHead|Wave #34}}
 
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
 
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
 
{{NPCTableSeparator|After 25% on target structure}}
 
{{NPCTableSeparator|After 25% on target structure}}
 
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
 
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
{{NPCTableFoot}}
+
|}
  
 
<includeonly>[[Category:Template|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
 
<includeonly>[[Category:Template|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 +
 +
==Creating NPC table without {{t|CMBSite}}==
 +
If you wish to create a NPC table without using the {{t|Complex}} template you need to include the required CSS code at the beginning of the page. The CSS can be found in the beginning of {{t|Complex}} starting from "<code><nowiki>{{#css:</nowiki></code>" and ending at "<code><nowiki>}}</nowiki></code>"

Revision as of 13:23, 11 June 2017

This template is used to create NPC table header for the pages describing combat complexes.

Dependencies

Syntax

{{CMBSite|<Name of the complex>}}
{{NPCTableHead|<Table header>}}
{{NPCTableRow|<Parameters - see NPCTableRow documentation>}}
{{NPCTableSeparator|<Parameters - see NPCTableSeparator documentation>}}
{{NPCTableRow|<Parameters - see NPCTableRow documentation>}}
|}

Parameters

Name of complex
This is the title of the NPC group, e.g. Wave 1, Initial defenders, Commander wave, etc.

Sample output

{{CMBSite|Serpentis Lookout}}
{{NPCTableHead|Wave #34}}
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
{{NPCTableSeparator|After 25% on target structure}}
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar={{icon|damp|24}}{{icon|web|24}}|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
|}

gives...
Site Details
Serpentis Lookout
Type Unrated Complex
Rating Unrated
Found in High
Max ship size Battlecruiser
Pirate faction Serpentis
Damage to deal Kinetic damage Kin
Thermal damage Th
Damage to
Resist
55% Kinetic damage Kin
45% Thermal damage Th
Sig. Strength 10% in High Sec
Wave #34
WD EWAR L


Frigate 100 x Frigate Coreli Agent Warp Disruptor Icon remote sensor dampening.pngIcon stasis webifier i.png Drops Gist X-Type 100MN Microwarpdrive
After 25% on target structure
Frigate 100 x Frigate Coreli Agent Warp Disruptor Icon remote sensor dampening.pngIcon stasis webifier i.png Drops Gist X-Type 100MN Microwarpdrive

Creating NPC table without {{CMBSite}}

If you wish to create a NPC table without using the {{Complex}} template you need to include the required CSS code at the beginning of the page. The CSS can be found in the beginning of {{Complex}} starting from "{{#css:" and ending at "}}"