Difference between revisions of "Template:NPCTableHead/doc"

From EVE University Wiki
Jump to: navigation, search
(More about CSS)
(→‎Sample output: sample to use ewar=Damp instead of usign icon template)
Line 19: Line 19:
 
<code><nowiki>{{NPCTableCSS}}</nowiki><br>
 
<code><nowiki>{{NPCTableCSS}}</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=Damp|ewar2=Web|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=Damp|ewar2=Web|cargo=Drops Gist X-Type 100MN Microwarpdrive}}</nowiki><br>
 
<nowiki>|}</nowiki></code>
 
<nowiki>|}</nowiki></code>
 
:gives...
 
:gives...
 
{{NPCTableCSS}}
 
{{NPCTableCSS}}
 
{{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=Damp|ewar2=Web|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=Damp|ewar2=Web|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
 
|}
 
|}
  
 
<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>

Revision as of 21:32, 24 July 2017

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

Dependencies

  • Uses {{NPCTableCSS}} to acquire proper CSS. This template is transcluded through {{CMBSite}} so that template works for CSS too.
  • Uses {{NPCTableRow}} to generate rows.
  • Uses {{NPCTableSeparator}} for separating parts of table with title.

Syntax

{{CMBSite|<Name of the complex>}} OR {{NPCTableCSS}} (either one once)
{{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

{{NPCTableCSS}}
{{NPCTableHead|Wave #34}}
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar=Damp|ewar2=Web|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
{{NPCTableSeparator|After 25% on target structure}}
{{NPCTableRow|Frigate|100|Coreli Agent|point=yes|ewar=Damp|ewar2=Web|cargo=Drops Gist X-Type 100MN Microwarpdrive}}
|}

gives...


Wave #34
WD EWAR L


Frigate 100 x Frigate Coreli Agent Warp Disruptor Remote Sensor Dampener Stasis Webifier Drops Gist X-Type 100MN Microwarpdrive
After 25% on target structure
Frigate 100 x Frigate Coreli Agent Warp Disruptor Remote Sensor Dampener Stasis Webifier Drops Gist X-Type 100MN Microwarpdrive