Difference between revisions of "Template:NPCTableRow"

From EVE University Wiki
Jump to: navigation, search
(Second alnd last attempt to add space)
m (Target: increase readability of source. Replace table wiki mark-up with html. Use {{#switch:}} 'fall through' where possible. Replace {{#ifeq:}} test for empty parameter with {{#if:}}. Change indentation.)
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
|-
+
<tr>
| class=icon | {{#switch: {{{1}}}
+
 
| Drone ={{icon|drone|16|Drone}}
+
<td class=icon> {{#switch: {{{1}}}
| Frigate ={{icon|frigate|16|Frigate}}
+
<!-- Hostile SHIPS/TURRETS -->
| Commander Frigate ={{icon|frigate|16|Commander Frigate}}
+
  | Drone = [[File:Icon red drone.png|16 px|Drone]]
| Elite Frigate ={{icon|frigate|16|Elite Frigate}}
+
  | Frigate
| Overseer Frigate ={{icon|frigate|16|Overseer Frigate}}
+
  | Commander Frigate
| Destroyer ={{icon|destroyer|16|Destroyer}}
+
  | Elite Frigate
| Commander Destroyer ={{icon|destroyer|16|Commander Destroyer}}
+
  | Overseer Frigate = [[File:Icon red frigate.png|16 px|{{{1}}}]]
| Cruiser ={{icon|cruiser|16|Cruiser}}
+
  | Mining Frigate = [[File:Icon red mining frigate.png|16 px|Mining Frigate]]
| Elite Cruiser ={{icon|cruiser|16|Elite Cruiser}}
+
  | Destroyer
| Storyline Mission Cruiser ={{icon|cruiser|16|Storyline Mission Cruiser}}
+
  | Commander Destroyer
| Commander Cruiser ={{icon|cruiser|16|Commander Cruiser}}
+
  | Elite Destroyer = [[File:Icon red destroyer.png|16 px|{{{1}}}]]
| Overseer Cruiser ={{icon|cruiser|16|Overseer Cruiser}}
+
  | Cruiser
| Battlecruiser ={{icon|battlecruiser|16|Battlecruiser}}
+
  | Commander Cruiser
| Overseer Battlecruiser ={{icon|battlecruiser|16|Overseer Battlecruiser}}
+
  | Elite Cruiser
| Commander Battlecruiser ={{icon|battlecruiser|16|Commander Battlecruiser}}
+
  | Overseer Cruiser
| Battleship ={{icon|battleship|16|Battleship}}
+
  | Storyline Mission Cruiser =[[File:Icon red cruiser.png|16 px|{{{1}}}]]
| Elite Battleship ={{icon|battleship|16|Elite Battleship}}
+
  | Battlecruiser
| Commander Battleship ={{icon|battleship|16|Commander Battleship}}
+
  | Commander Battlecruiser
| Overseer Battleship ={{icon|battleship|16|Overseer Battleship}}
+
  | Elite Battlecruiser
| Sentry ={{icon|sentry|16|Sentry}}
+
  | Overseer Battlecruiser = [[File:Icon red battlecruiser.png|16 px|{{{1}}}]]
| Carrier ={{icon|carrier|16|Carrier}}
+
  | Battleship
| Capital ={{icon|red capital|16|Capital}}
+
  | Commander Battleship
| Industrial ={{icon|industrial|16|Industrial}}
+
  | Elite Battleship
| Fighter ={{icon|fighter target|16|Fighter}}
+
  | Overseer Battleship
| Supercapital ={{icon|supercapital|16|supercapital}}
+
  | Officer Battleship = [[File:Icon red battleship.png|16 px|{{{1}}}]]
}}
+
  | Sentry = [[File:Icon red tower.png|16 px|Sentry]]
| {{{2}}} x {{co|#9ef37c|{{{1}}} }} {{{3}}}{{#if:{{{note|}}}| &nbsp;{{icon|tag agent|9|{{{note}}} }}|}} {{#if:{{{trigger|}}}|{{icon|x|14|{{{trigger}}}}}|}}
+
  | Barge= [[File:Icon red mining barge.png|16 px|Barge]]
| class=icon | {{#ifeq: {{{point}}} | yes | {{icon|point|24|Warp disruptor or scrambler}} }}
+
  | Hauler
| class=icon | {{#ifeq: {{{ewar|}}} | | | {{#switch: {{{ewar}}}  
+
  | Industrial = [[File:Icon red industrial.png|16 px|Hauler]]
                                            | ECM ={{icon|ecm|24|Jamming}}
+
  | Freighter = [[File:Icon red industrial capital.png|16 px|Freighter]]
                                            | TD ={{icon|td|24|Tracking disruption}}
+
  | Fighter = [[File:Icon red fighter.png|16 px|Fighter]]
                                            | Web ={{icon|web|24|Stasis webifier}}
+
  | Carrier = [[File:Icon red carrier.png|16 px|Carrier]]
                                            | Damp ={{icon|damp|24|Sensor dampening}}
+
  | Supercarrier = [[File:Icon red supercarrier.png|16 px|Supercarrier]]
                                            | TP ={{icon|tp|24|Target painting}}
+
  | Dreadnought= [[File:Icon red dreadnought.png|16 px|Dreadnought]]
                                            | Neut ={{icon|neut|24|Neuting}}
+
  | Titan = [[File:Icon red titan.png|16 px|Titan]]
                                            | {{{ewar}}} }} }} {{#ifeq: {{{ewar2|}}} | | | {{#switch: {{{ewar2}}}  
+
<!-- Neutral SHIPS/TURRETS -->
                                            | ECM ={{icon|ecm|24|Jamming}}
+
  | Neutral Drone = [[File:icon bracket drone.png|16px|Drone]]
                                            | TD ={{icon|td|24|Tracking disruption}}
+
  | Neutral Frigate = [[File:icon white frigate.png|16px|Frigate]]
                                            | Web ={{icon|web|24|Stasis webifier}}
+
  | Neutral Commander Frigate = [[File:icon white frigate.png|16px|Commander Frigate]]
                                            | Damp ={{icon|damp|24|Sensor dampening}}
+
  | Neutral Elite Frigate = [[File:icon white frigate.png|16px|Elite Frigate]]
                                            | TP ={{icon|tp|24|Target painting}}
+
  | Neutral Overseer Frigate = [[File:icon white frigate.png|16px|Overseer Frigate]]
                                            | Neut ={{icon|neut|24|Neuting}}
+
  | Neutral Mining Frigate = [[File:icon_white_mining_frigate.png|16px|mining frigate]]
                                            | {{{ewar2}}} }} }} {{#ifeq: {{{ewar3|}}} | | | {{#switch: {{{ewar3}}}  
+
  | Neutral Destroyer = [[File:icon white destroyer.png|16px|Destroyer]]
                                            | ECM ={{icon|ecm|24|Jamming}}
+
  | Neutral Elite Destroyer = [[File:icon white destroyer.png|16px|Elite Destroyer]]
                                            | TD ={{icon|td|24|Tracking disruption}}
+
  | Neutral Commander Destroyer = [[File:icon white destroyer.png|16px|Commander Destroyer]]
                                            | Web ={{icon|web|24|Stasis webifier}}
+
  | Neutral Cruiser = [[File:icon white cruiser.png|16px|Cruiser]]
                                            | Damp ={{icon|damp|24|Sensor dampening}}
+
  | Neutral Elite Cruiser = [[File:icon white cruiser.png|16px|Elite Cruiser]]
                                            | TP ={{icon|tp|24|Target painting}}
+
  | Neutral Storyline Mission Cruiser = [[File:icon white cruiser.png|16px|Storyline Mission Cruiser]]
                                            | Neut ={{icon|neut|24|Neuting}}
+
  | Neutral Commander Cruiser = [[File:icon white cruiser.png|16px|Commander Cruiser]]
                                            | {{{ewar3}}} }} }}
+
  | Neutral Overseer Cruiser = [[File:icon white cruiser.png|16px|Overseer Cruiser]]
| class=icon | {{#if: {{{cargo|}}} | {{icon|shiny cargo|24| {{{cargo}}} }} |}}
+
  | Neutral Battlecruiser = [[File:icon white battlecruiser.png|16px|Battlecruiser]]
|-
+
  | Neutral Elite Battlecruiser = [[File:icon white battlecruiser.png|16px|Elite Battlecruiser]]
 +
  | Neutral Overseer Battlecruiser = [[File:icon white battlecruiser.png|16px|Overseer Battlecruiser]]
 +
  | Neutral Commander Battlecruiser = [[File:icon white battlecruiser.png|16px|Commander Battlecruiser]]
 +
  | Neutral Battleship = [[File:icon white battleship.png|16px|Battleship]]
 +
  | Neutral Elite Battleship = [[File:icon white battleship.png|16px|Elite Battleship]]
 +
  | Neutral Commander Battleship = [[File:icon white battleship.png|16px|Commander Battleship]]
 +
  | Neutral Overseer Battleship = [[File:icon white battleship.png|16px|Overseer Battleship]]
 +
  | Neutral Officer Battleship = [[File:icon white battleship.png|16px|Officer Battleship]]
 +
  | Neutral Sentry = [[File:icon bracket tower.png|16px|Sentry]]
 +
  | Neutral Carrier = [[File:icon white carrier.png|16px|Carrier]]
 +
  | Neutral Supercarrier = [[File:icon white supercarrier.png|16px|Capital]]
 +
  | Neutral Barge= [[File:icon white mining barge.png|16px|Industrial]]
 +
  | Neutral Hauler
 +
  | Neutral Industrial = [[File:icon white industrial.png|16px|Hauler]]
 +
  | Neutral Freighter= [[File:Icon white industrial capital.png|16px|Freighter]]
 +
  | Neutral Fighter = [[File:icon bracket fighter.png|16px|Fighter]]
 +
  | Neutral Titan = [[File:icon white titan.png|16px|supercapital]]
 +
<!-- Friendly SHIPS/TURRETS -->
 +
  | Friendly Drone = [[File:icon blue drone.png|16px|Drone]]
 +
  | Friendly Frigate = [[File:icon blue frigate.png|16px|Frigate]]
 +
  | Friendly Mining Frigate = [[File:icon blue mining frigate.png|16px|mining frigate]]
 +
  | Friendly Commander Frigate = [[File:icon blue frigate.png|16px|Commander Frigate]]
 +
  | Friendly Elite Frigate = [[File:icon blue frigate.png|16px|Elite Frigate]]
 +
  | Friendly Overseer Frigate = [[File:icon blue frigate.png|16px|Overseer Frigate]]
 +
  | Friendly Destroyer = [[File:icon blue destroyer.png|16px|Destroyer]]
 +
  | Friendly Elite Destroyer = [[File:icon blue destroyer.png|16px|Elite Destroyer]]
 +
  | Friendly Commander Destroyer = [[File:icon blue destroyer.png|16px|16|Commander Destroyer]]
 +
  | Friendly Cruiser = [[File:icon blue cruiser.png|16px|Cruiser]]
 +
  | Friendly Elite Cruiser = [[File:icon blue cruiser.png|16px|Elite Cruiser]]
 +
  | Friendly Storyline Mission Cruiser = [[File:icon blue cruiser.png|16px|Storyline Mission Cruiser]]
 +
  | Friendly Commander Cruiser = [[File:icon blue cruiser.png|16px|Commander Cruiser]]
 +
  | Friendly Overseer Cruiser = [[File:icon blue cruiser.png|16px|Overseer Cruiser]]
 +
  | Friendly Battlecruiser = [[File:icon blue battlecruiser.png|16px|Battlecruiser]]
 +
  | Friendly Elite Battlecruiser = [[File:icon blue battlecruiser.png|16px|Battlecruiser]]
 +
  | Friendly Overseer Battlecruiser = [[File:icon blue battlecruiser.png|16px|Overseer Battlecruiser]]
 +
  | Friendly Commander Battlecruiser = [[File:icon blue battlecruiser.png|16px|Commander Battlecruiser]]
 +
  | Friendly Battleship = [[File:icon blue battleship.png|16px|Battleship]]
 +
  | Friendly Elite Battleship = [[File:icon blue battleship.png|16px|Elite Battleship]]
 +
  | Friendly Commander Battleship = [[File:icon blue battleship.png|16px|Commander Battleship]]
 +
  | Friendly Overseer Battleship = [[File:icon blue battleship.png|16px|Overseer Battleship]]
 +
  | Friendly Officer Battleship = [[File:icon blue battleship.png|16px|Officer Battleship]]
 +
  | Friendly Sentry = [[File:icon blue tower.png|16px|Sentry]]
 +
  | Friendly Carrier = [[File:icon blue carrier.png|16px|Carrier]]
 +
  | Friendly Supercarrier = [[File:icon blue supercarrier.png|16px|Super Carrier]]
 +
  | Friendly Barge= [[File:icon blue mining_barge.png|16px|Mining Barge]]
 +
  | Friendly Hauler
 +
  | Friendly Industrial = [[File:icon blue industrial.png|16px|Hauler]]
 +
  | Friendly Freighter= [[File:blue industrial capital.png|16px|Freighter]]
 +
  | Friendly Fighter = [[File:icon blue fighter.png|16px|Fighter]]
 +
  | Friendly Titan = [[File:icon blue titan.png|16px|supercapital]]
 +
<!-- STRUCTURES -->
 +
  | Accl Gate <!-- Don't use this one-->
 +
  | Acceleration Gate = [[File:Icon bracket accelerationgate.png|16px|Acceleration Gate]]
 +
  | Station = [[File:Icon bracket station.png|16px|Station]]
 +
  | Structure = [[File:Icon bracket structure.png|16px|Structure]]
 +
  | Wormhole = [[File:Icon_bracket_wormhole.png|16px|Wormhole]]
 +
  | Stargate = [[File:Icon bracket stargate.png|16px|Stargate]]
 +
  | Tower = [[File:Icon bracket tower.png|16px|Tower]]
 +
  | Asteroid = [[File:Icon bracket asteroid.png|16px|Asteroid]]
 +
  | Asteroid Field = [[File:Icon bracket asteroidfield.png|16px|Asteroid Field]]
 +
  | Container = [[File:Icon bracket container.png|16px|Container]]
 +
  | Red Container = [[File:Icon bracket container red.png|16px|Container]]
 +
  | Beacon = [[File:Icon bracket beacon.png|16px|Beacon]]
 +
  | Billboard = [[File:Icon bracket billboard.png|16px|Billboard]]
 +
  | Force Field = [[File:Icon bracket forcefield.png|16px|Force Field]]
 +
  | Gas Cloud = [[File:Gas cloud.png|16px|Gas Cloud]]
 +
  | Hackable = [[File:Icon bracket hackable.png|16px|Hackable Structure]]
 +
  | Agent= [[File:Icon bracket agent.png|16px|Agent in space]]
 +
  | Hangar Array = [[File:Icon_PersonalHangarArray.png]]
 +
}}
 +
</td>
 +
 
 +
<td> {{#if: {{{2}}} | {{{2}}} x }} {{#switch: {{{1}}}
 +
<!-- Things that are on this list don't get green text. No green text for structures.-->
 +
  | Accl Gate
 +
  | Acceleration Gate
 +
  | Station
 +
  | Structure
 +
  | Wormhole
 +
  | Stargate
 +
  | Tower
 +
  | Asteroid
 +
  | Asteroid Field
 +
  | Container
 +
  | Red Container
 +
  | Beacon
 +
  | Billboard
 +
  | Force Field
 +
  | Gas Cloud
 +
  | Hackable
 +
  | Agent
 +
  | Hangar Array =
 +
  | Industrial2= {{co|#9ef37c|Industrial }}
 +
  | {{co|#9ef37c|{{{1}}} }}
 +
  }} {{{3}}} {{#if:{{{note|}}}| [[File:Small Info.png|16px|{{{note}}}]]|}} {{#if:{{{trigger|}}}|[[File:Icon large red x.png|16px|{{{trigger}}}]]|}}
 +
</td>
 +
 
 +
<td class=icon> {{#switch: {{{point}}}
 +
    | yes
 +
    | point = [[File:Icon warp disruptor i.png|24px|Warp Disruptor]]
 +
    | scram = [[File:Icon warp scrambler i.png|24px|Warp Scrambler]]
 +
  }}
 +
</td>
 +
 
 +
<td class=icon> {{#if: {{{ewar|}}}
 +
                  | {{#switch: {{{ewar}}}  
 +
                    | ECM = [[File:Icon target max.png|24px|Target Jammer]]
 +
                    | TD = [[File:Icon track disruptor 64.png|24px|Tracking Disruptor]]
 +
                    | Web = [[File:Icon stasis webifier i.png|24px|Stasis Webifier]]
 +
                    | Damp = [[File:Icon remote sensor dampening.png|24px|Remote Sensor Dampener]]
 +
                    | TP = [[File:Icon target painter i.png|24px|Target Painter]]
 +
                    | Neut = [[File:Icon energy neutralizer i.png|24px|Energy Neutralizer]]
 +
                    | GD = [[File:Icon missile guidance computer i.png|24px|Guidance Disruptor]]
 +
                    | {{{ewar}}}
 +
                    }}
 +
                  }} {{#if: {{{ewar2|}}}
 +
                      | {{#switch: {{{ewar2}}}  
 +
                        | ECM = [[File:Icon target max.png|24px|Target Jammer]]
 +
                        | TD = [[File:Icon track disruptor 64.png|24px|Tracking Disruptor]]
 +
                        | Web = [[File:Icon stasis webifier i.png|24px|Stasis Webifier]]
 +
                        | Damp = [[File:Icon remote sensor dampening.png|24px|Remote Sensor Dampener]]
 +
                        | TP = [[File:Icon target painter i.png|24px|Target Painter]]
 +
                        | Neut = [[File:Icon energy neutralizer i.png|24px|Energy Neutralizer]]
 +
                        | GD = [[File:Icon missile guidance computer i.png|24px|Guidance Disruptor]]
 +
                        | {{{ewar2}}}
 +
                        }}
 +
                      }} {{#if: {{{ewar3|}}}
 +
                          | {{#switch: {{{ewar3}}}
 +
                            | ECM = [[File:Icon target max.png|24px|Target Jammer]]
 +
                            | TD = [[File:Icon track disruptor 64.png|24px|Tracking Disruptor]]
 +
                            | Web = [[File:Icon stasis webifier i.png|24px|Stasis Webifier]]
 +
                            | Damp = [[File:Icon remote sensor dampening.png|24px|Remote Sensor Dampener]]
 +
                            | TP = [[File:Icon target painter i.png|24px|Target Painter]]
 +
                            | Neut = [[File:Icon energy neutralizer i.png|24px|Energy Neutralizer]]
 +
                            | GD = [[File:Icon missile guidance computer i.png|24px|Guidance Disruptor]]
 +
                            | {{{ewar3}}}
 +
                            }}
 +
                          }}
 +
</td>
 +
 
 +
<td class=icon> {{#if: {{{cargo|}}} | [[File:Icon container small green.png|24px|{{{cargo}}}]] }} {{#if: {{{drop|}}} | [[File:Icon container small.png|24px|{{{drop}}}]]}}
 +
</td>
 +
 
 +
</tr><!--
 +
-->{{#if: {{{end|}}}{{!}}} }}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
{{Documentation}}  
 
{{Documentation}}  
[[Category:Template]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:52, 2 December 2024


Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to create a content row in 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
{{NPCTableRow|<type>|<count>|<name>|<point= point>|<ewar= ewar>|<ewar2= ewar>|<ewar3= ewar>|<drop= drop>|<cargo= cargo>|<trigger= trigger>|<note= notes>}}
Parameters
type, count and name are anonymous (positional) parameters and must be ordered as written.
type
sets the type and size of an NPC ship or structure. It is displayed as the ships bracket icon and type. A prefix can be added to control the brackets color. See the tables for valid options.
count
The number of NPCs of that type. This is often a range, so feel free to use number ranges (e.g. 10-12).
name
The NPC's name. Consolidate ships of the same type into a single line (e.g. Coreli Watchman/Patroller). If there are a large number of different ship types, list the most common three or four types followed by an ellipsis (e.g. Corelum Chief Guard/Defender/Protector/...). It is however perfectly fine to use a separate row to make it clear which ship type is using EWAR or triggers an action.
point
If an NPC has a Warp Disruptor, set to point= yes or point= point. If an NPC uses a Warp Scrambler (shuts off MWD and stops MJD) you can specify point= scram.
ewar
ewar2
ewar3
Type of electronic warfare used by an NPC. Displayed as an icon
EWAR codes
Type Code Icon
ECM/Jamming ECM Jamming
Tracking disruption TD Tracking disruption
Guidance disruption GD Guidance disruption
Sensor dampening Damp Sensor dampening
Target painting TP Target painting
Stasis webifier Web Stasis webifier
Energy neutralization ("neut") Neut Neuting
drop
If an NPC leaves behind notable loot (e.g. T1 ammo, a trade good), note it here. A dull icon Icon container small.png will be created.
cargo
If an NPC leaves behind valuable loot (worth over 1M ISK e.g. faction modules, tech 2 salvage), note it here. A shiny icon Icon container small green.png will be created.
trigger
If destroying an NPC causes an action (acceleration gates get unlocked, a new wave of enemies spawn, etc), use this parameter.
note
Use to describe important information about an NPC (for instance, an NPC deals extremely high damage, is able to self-repair themselves quickly, ...).
Sample
{{NPCTableHead|Initial defenders}}
{{NPCTableRow|Friendly Barge|1|Digger|drop= lots of stuff}}
{{NPCTableRow|Cruiser|1|Warship|point= yes|eawr= Web|ewar2= TD|note= Important info|trigger= Mission complete|cargo= Expensive stuff}}
|}
gives...
Initial defenders
WD EWAR L


Mining Barge 1 x Friendly Barge Digger lots of stuff
Cruiser 1 x Cruiser Warship Important info Mission complete Warp Disruptor Stasis Webifier Tracking Disruptor Expensive stuff


See also
Visit Template:NPCTableRow/doc to edit this text! (How does this work?) (Refresh this text - why?)