Difference between revisions of "Template:NPCTableHead/doc"

From EVE University Wiki
Jump to: navigation, search
(→‎Ships: Updated icons)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This template is used to create NPC table for the pages describing combat complexes.
+
; Description
== Dependencies ==
+
: This template is used to start an NPCTable. It needs to be paired with the standard wiki parser code to end the table <nowiki>|}</nowiki>. It needs to be used once for every NPCTable on a page.
* Uses {{t|NPCTableCSS}} to acquire proper CSS. This template is transcluded through {{t|CMBSite}} so pages that use that template do not need to include anything else.
 
* Uses {{t|NPCTableHead}} to generate the header for NPC table.
 
* Uses {{t|NPCTableRow}} to generate rows.
 
* Uses {{t|NPCTableSeparator}} for separating parts of table with title.
 
  
== Syntax ==
+
; Dependencies:
<code>{{t|CMBSite|Name of the complex}} OR {{t|NPCTableCSS}} (either one once somewhere in the article)<br>
+
:; Requires
{{t|NPCTableHead|Table header}}<br>
+
:: {{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|NPCTableRow|Ship size|Ship count|Ship names|4=point=yes|5=ewar=Ewar|6=cargo=Loot|7=drop=drop|8=trigger=Trigger|9=note=Notes}}<br>
+
:; Paired with
{{t|NPCTableSeparator|Separator title}}<br>
+
:: <nowiki>|}</nowiki> to close the table, or include <nowiki>|end=true}}</nowiki> as the last parameter of the last {{T|NPCTableRow}}.
{{t|NPCTableRow|Ship size|Ship count|Ship names|4=point=yes|5=ewar=Ewar|6=cargo=Loot|7=drop=drop|8=trigger=Trigger|9=note=Notes}}<br>
+
:; Sub templates
|}</code>
+
:: {{T|NPCTableRow}} one or more for each NPCTable.
 +
:: {{T|NPCTableSeparator}} zero or more for each NPCTable.
  
=== NPCTableHead parameters===
+
; Syntax
<code>{{t|NPCTableHead|Table header}}</code>
+
: {{T|NPCTableHead|caption}}
;Table header
+
:; Parameters
:This is the title of the NPC group, e.g. <code>Wave 1</code>, <code>Initial defenders</code>, <code>Commander wave</code>, etc.  
+
::; caption : Caption of the table. May be omitted.
  
=== NPCTableRow parameters===
+
; Sample
==== Ships ====
+
{{NPCTableCSS}}
 
+
: <code><nowiki>{{NPCTableHead|Initial defenders}}</nowiki></code>
<code>{{t|NPCTableRow|Ship size|Ship count|Ship names|4=point=yes|5=ewar=Ewar|6=cargo=Loot|7=drop=drop|8=trigger=Trigger|9=note=Notes}}</code>
 
 
 
;Ship size
 
:This sets the [[NPC Naming Convention|type and size]] of the NPC ship. Please use one of the following values:
 
:* Barge {{icon|red mining barge|16|Barge}}
 
:* Industrial {{icon|red industrial|16|Industrial}}
 
:* Freighter {{icon|red industrial capital|16|Freighter}}
 
:* Drone {{icon|red drone|16|Drone}}
 
:* Fighter {{icon|red fighter|16|Fighter}}
 
:* Frigate {{icon|red frigate|16|Frigate}}
 
:* Commander Frigate {{icon|red frigate|16|Commander Frigate}}
 
:* Elite Frigate {{icon|red frigate|16|Commander Frigate}}
 
:* Overseer Frigate {{icon|red frigate|16|Commander Frigate}}
 
:* Destroyer {{icon|red destroyer|16|Destroyer}}
 
:* Commander Destroyer {{icon|red destroyer|16|Destroyer}}
 
:* Cruiser {{icon|red cruiser|16|Cruiser}}
 
:* Elite Cruiser {{icon|red cruiser|16|Cruiser}}
 
:* Commander Cruiser {{icon|red cruiser|16|Cruiser}}
 
:* Storyline Mission Cruiser {{icon|red cruiser|16|Storyline Mission Cruiser}}
 
:* Overseer Cruiser {{icon|red cruiser|16|Cruiser}}
 
:* Battlecruiser {{icon|red battlecruiser|16|Battlecruiser}}
 
:* Elite Battlecruiser {{icon|red battlecruiser|16|Battlecruiser}}
 
:* Overseer Battlecruiser {{icon|red battlecruiser|16|Battlecruiser}}
 
:* Commander Battlecruiser {{icon|red battlecruiser|16|Battlecruiser}}
 
:* Battleship {{icon|red battleship|16|Battleship}}
 
:* Elite Battleship {{icon|red battleship|16|Battleship}}
 
:* Commander Battleship {{icon|red battleship|16|Battleship}}
 
:* Overseer Battleship {{icon|red battleship|16|Battleship}}
 
:* Carrier {{icon|red carrier|16|Carrier}}
 
:* Superarrier {{icon|red supercarrier|16|Supercarrier}}
 
:* Dreadnought {{icon|red dreadnought|16|Dreadnought}}
 
:* Titan {{icon|red titan|16|Titan}}
 
:* Sentry {{icon|sentry|16|Sentry}}
 
 
 
;Ship count
 
:The number of that class of NPC ship. Often this is variable, so feel free to use number ranges (e.g. <code>10-12</code>) if necessary.
 
 
 
;Ship names
 
:The name(s) of the NPCs. It's recommended to consolidate ships of the same class into a single line (e.g. <code>Coreli Patroller/Watchman</code>). If there are a large number of different ship types, list the most common three or four types (e.g. <code>Corelum Chief Defender/Guard/Protector/...</code>).
 
 
 
;point
 
:If the NPC has a warp disruptor or warp scrambler, set the <code>point=yes</code> parameter (otherwise omit it). If the NPC uses warp scrambler (shuts off MWD and stops MJD) you can specify <code>point=scram</code>.
 
 
 
;ewar
 
:If the NPC uses [[EWAR Guide|electronic warfare]], describe it here. Use the <code>{{t|icon}}</code> template; use the mouseover text to describe the EWAR type, and (if available) additional details (e.g. maximum range of the EWAR). If NPCs use multiple types of EWAR, add them all. Some examples:
 
:*ECM: <code><nowiki>{{icon|ecm|24|Jamming}}</nowiki></code> {{icon|ecm|24|Jamming}}
 
:*Tracking disruption: <code><nowiki>{{icon|td|24|Tracking disruption}}</nowiki></code> {{icon|td|24|Tracking disruption}}
 
:*Sensor dampening: <code><nowiki>{{icon|damp|24|Sensor dampening (to 60 km)}}</nowiki></code> {{icon|damp|24|Sensor dampening (to 60 km)}}
 
:*Target painting: <code><nowiki>{{icon|tp|24|Target painting}}</nowiki></code> {{icon|tp|24|Target painting}}
 
:*Stasis webifier: <code><nowiki>{{icon|web|24|Stasis webifier}}</nowiki></code> {{icon|web|24|Stasis webifier}}
 
:*Energy neutralization ("neut"): <code><nowiki>{{icon|neut|24|Neuting}}</nowiki></code> {{icon|neut|24|Neuting}}
 
If no additional information about ewar is needed more simple <code><nowiki>ewar = </nowiki></code> is enough. If a ship uses multiple ewar types you can specify second ewar type with <code><nowiki>ewar2 = </nowiki></code>
 
 
 
;cargo and drop
 
: If something noteworthy drops it should be marked as cargo (shiny) or drop (not shiny).
 
 
 
;note
 
:If there is something else noteworthy about this ship then it can be added in this note.
 
 
 
Examples:
 
:*ECM: <code><nowiki>ewar = ECM</nowiki></code> {{icon|ecm|24|Jamming}}
 
:*Tracking disruption: <code><nowiki>ewar = TD</nowiki></code> {{icon|td|24|Tracking disruption}}
 
:*Sensor dampening: <code><nowiki>ewar = Damp</nowiki></code> {{icon|damp|24|Sensor dampening}}
 
:*Target painting: <code><nowiki>ewar = TP</nowiki></code> {{icon|tp|24|Target painting}}
 
:*Stasis webifier: <code><nowiki>ewar = Web</nowiki></code> {{icon|web|24|Stasis webifier}}
 
:*Energy neutralization ("neut"): <code><nowiki>ewar = Neut</nowiki></code> {{icon|neut|24|Neuting}}
 
;cargo
 
:If the NPC drops notable loot (e.g. faction modules, tech 2 salvage), note it here.
 
;trigger
 
:If destroying the NPC causes something to happen (unlock acceleration gate, trigger a new wave of enemies, etc), then use this parameter.
 
;note
 
:Use this parameter to add a footnote, which you can use to describe important information about the NPC (for instance, for very high dps NPCs, or high self-repair...).
 
  
==== Structures ====
+
: <code><nowiki>|}</nowiki></code>
 +
:: gives...
 +
{{NPCTableHead|Initial defenders}}
  
Notable structures can also be added to the table. The following values can be used:
 
 
:*Acceleration Gate {{icon|br acceleration gate|16|Acceleration Gate}}
 
:*Station {{icon|br station|16|Station}}
 
:*Structure {{icon|br structure|16|Structure}}
 
:*Wormhole {{icon|br wormhole|16|Wormhole}}
 
:*Stargate {{icon|br stargate|16|Stargate}}
 
:*Tower {{icon|br tower|16|Tower}}
 
:*Asteroid {{icon|br asteroid|16|Asteroid}}
 
:*Asteroid Field {{icon|br asteroid field|16|Asteroid Field}}
 
:*Container {{icon|br container|16|Container}}
 
:*Red Container {{icon|br red container|16|Container}}
 
:*Beacon {{icon|br beacon|16|Beacon}}
 
:*Billboard {{icon|br billboard|16|Billboard}}
 
:*Force Field {{icon|br force field|16|Force Field}}
 
:*Gas Cloud {{icon|br gas cloud|16|Gas Cloud}}
 
:*Hackable {{icon|br hackable|16|Hackable Structure}}
 
:*Agent {{icon|br agent|16|Agent in space}}
 
 
In addition to the ship parameters noted above, structure entries can also use all the same parameters as ships.
 
 
=== NPCTableSeparator parameters ===
 
<code>{{t|NPCTableSeparator|Separator title}}</code>
 
 
;Separator title
 
: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>, <code>Group near gate</code> etc.
 
 
== Sample output ==
 
<code><nowiki>{{NPCTableCSS}}</nowiki><br><br>
 
<nowiki>{{NPCTableHead|Wave #34}}</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>{{NPCTableRow|Battleship|100|Centum Loyal Fiend|ewar=Neut||trigger = Escalation trigger}}</nowiki><br>
 
<nowiki>|}</nowiki></code>
 
:gives...
 
{{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|Battleship|100|Centum Loyal Fiend|ewar=Neut|trigger = Escalation trigger}}
 
 
|}
 
|}
 +
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.
  
  
<code><nowiki>{{NPCTableCSS}}</nowiki><br><br>
+
; See also
<nowiki>{{NPCTableHead|Structures}}</nowiki><br>
+
* [[UniWiki:Mission formatting guidelines|Mission formatting guidelines]]
<nowiki>{{NPCTableRow|Acceleration Gate|1|Acceleration Gate|trigger = 5 km proximity trigger for the gate wave}}</nowiki><br>
 
<nowiki>{{NPCTableRow|Station|1|Serpentis Stronghold|cargo=Drops Shadow Serpentis modules}}</nowiki><br>
 
<nowiki>{{NPCTableRow|Container|3|Supply Cache|drop=T1 ammo}}</nowiki><br>
 
<nowiki>{{NPCTableRow|Red Container|1|Sealed Container|cargo=24th Overseer Special Effect and sometimes a Nestor BPC}}</nowiki><br>
 
<nowiki>|}</nowiki></code>
 
:gives...
 
{{NPCTableHead|Structures}}
 
{{NPCTableRow|Acceleration Gate|1|Acceleration Gate|trigger = 5 km proximity trigger for the gate wave|note = Locked until all ships are destroyed}}
 
{{NPCTableRow|Station|1|Serpentis Stronghold|cargo=Drops Shadow Serpentis modules}}
 
{{NPCTableRow|Container|3|Supply Cache|drop=T1 ammo}}
 
{{NPCTableRow|Red Container|1|Sealed Container|cargo=24th Overseer Special Effect}}
 
|}
 
 
 
  
<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 20:01, 6 June 2023

Description
This template is used to start an NPCTable. It needs to be paired with the standard wiki parser code to end the table |}. It needs to be used once for every NPCTable on a page.
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.
Paired with
|} to close the table, or include |end=true}} as the last parameter of the last {{NPCTableRow}}.
Sub templates
{{NPCTableRow}} one or more for each NPCTable.
{{NPCTableSeparator}} zero or more for each NPCTable.
Syntax
{{NPCTableHead|<caption>}}
Parameters
caption 
Caption of the table. May be omitted.
Sample
{{NPCTableHead|Initial defenders}}
|}
gives...
Initial defenders
WD EWAR L


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