Difference between revisions of "Template:NPCTableRow"

From EVE University Wiki
Jump to: navigation, search
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.)
 
(48 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{#css:
+
<includeonly>
@keyframes flashy { 50% { opacity: 0; } }
+
<tr>
@-webkit-keyframes flashy { 50% { opacity: 0; } }
+
 
@-moz-keyframes flashy { 50% { opacity: 0; } }
+
<td class=icon> {{#switch: {{{1}}}
@-o-keyframes flashy { 50% { opacity: 0; } }
+
<!-- Hostile SHIPS/TURRETS -->
.flashy img {
+
  | Drone = [[File:Icon red drone.png|16 px|Drone]]
    animation-name: flashy;
+
  | Frigate
    animation-duration: 1s;
+
  | Commander Frigate
    animation-timing-function: linear;
+
  | Elite Frigate
    animation-iteration-count: infinite;
+
  | Overseer Frigate = [[File:Icon red frigate.png|16 px|{{{1}}}]]
    animation-direction: alternate;
+
  | Mining Frigate = [[File:Icon red mining frigate.png|16 px|Mining Frigate]]
    -webkit-animation-name: flashy;
+
  | Destroyer
    -webkit-animation-duration: 1s;
+
  | Commander Destroyer
    -webkit-animation-timing-function: linear;
+
  | Elite Destroyer = [[File:Icon red destroyer.png|16 px|{{{1}}}]]
    -webkit-animation-iteration-count: infinite;
+
  | Cruiser
    -webkit-animation-direction: alternate;
+
  | Commander Cruiser
    -moz-animation-name: flashy;
+
  | Elite Cruiser
    -moz-animation-duration: 1s;
+
  | Overseer Cruiser
    -moz-animation-timing-function: linear;
+
  | Storyline Mission Cruiser =[[File:Icon red cruiser.png|16 px|{{{1}}}]]
    -moz-animation-iteration-count: infinite;
+
  | Battlecruiser
    -moz-animation-direction: alternate;
+
  | Commander Battlecruiser
    -o-animation-name: flashy;
+
  | Elite Battlecruiser
    -o-animation-duration: 1s;
+
  | Overseer Battlecruiser = [[File:Icon red battlecruiser.png|16 px|{{{1}}}]]
    -o-animation-timing-function: linear;
+
  | Battleship
    -o-animation-iteration-count: infinite;
+
  | Commander Battleship
    -o-animation-direction: alternate;
+
  | Elite Battleship
} }}
+
  | Overseer Battleship
 +
  | Officer Battleship = [[File:Icon red battleship.png|16 px|{{{1}}}]]
 +
  | Sentry = [[File:Icon red tower.png|16 px|Sentry]]
 +
  | Barge= [[File:Icon red mining barge.png|16 px|Barge]]
 +
  | Hauler
 +
  | Industrial = [[File:Icon red industrial.png|16 px|Hauler]]
 +
  | Freighter = [[File:Icon red industrial capital.png|16 px|Freighter]]
 +
  | Fighter = [[File:Icon red fighter.png|16 px|Fighter]]
 +
  | Carrier = [[File:Icon red carrier.png|16 px|Carrier]]
 +
  | Supercarrier = [[File:Icon red supercarrier.png|16 px|Supercarrier]]
 +
  | Dreadnought= [[File:Icon red dreadnought.png|16 px|Dreadnought]]
 +
  | Titan = [[File:Icon red titan.png|16 px|Titan]]
 +
<!-- Neutral SHIPS/TURRETS -->
 +
  | Neutral Drone = [[File:icon bracket drone.png|16px|Drone]]
 +
  | Neutral Frigate = [[File:icon white frigate.png|16px|Frigate]]
 +
  | Neutral Commander Frigate = [[File:icon white frigate.png|16px|Commander Frigate]]
 +
  | Neutral Elite Frigate = [[File:icon white frigate.png|16px|Elite Frigate]]
 +
  | Neutral Overseer Frigate = [[File:icon white frigate.png|16px|Overseer Frigate]]
 +
  | Neutral Mining Frigate = [[File:icon_white_mining_frigate.png|16px|mining frigate]]
 +
  | Neutral Destroyer = [[File:icon white destroyer.png|16px|Destroyer]]
 +
  | Neutral Elite Destroyer = [[File:icon white destroyer.png|16px|Elite Destroyer]]
 +
  | Neutral Commander Destroyer = [[File:icon white destroyer.png|16px|Commander Destroyer]]
 +
  | Neutral Cruiser = [[File:icon white cruiser.png|16px|Cruiser]]
 +
  | Neutral Elite Cruiser = [[File:icon white cruiser.png|16px|Elite Cruiser]]
 +
  | Neutral Storyline Mission Cruiser = [[File:icon white cruiser.png|16px|Storyline Mission Cruiser]]
 +
  | Neutral Commander Cruiser = [[File:icon white cruiser.png|16px|Commander Cruiser]]
 +
  | Neutral Overseer Cruiser = [[File:icon white cruiser.png|16px|Overseer Cruiser]]
 +
  | 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>
  
<includeonly>
+
<td class=icon> {{#switch: {{{point}}}
|-
+
    | yes
| class=icon style="width: 20px;" | {{#switch: {{{1}}}
+
    | point = [[File:Icon warp disruptor i.png|24px|Warp Disruptor]]
| Drone ={{icon|drone|16|Drone}}
+
    | scram = [[File:Icon warp scrambler i.png|24px|Warp Scrambler]]
| Frigate ={{icon|frigate|16|Frigate}}
+
  }}
| Commander Frigate ={{icon|frigate|16|Commander Frigate}}
+
  </td>
  | Elite Frigate ={{icon|frigate|16|Elite Frigate}}
+
 
| Overseer Frigate ={{icon|frigate|16|Overseer Frigate}}
+
  <td class=icon> {{#if: {{{ewar|}}}
  | Destroyer ={{icon|destroyer|16|Destroyer}}
+
                  | {{#switch: {{{ewar}}}  
| Commander Destroyer ={{icon|destroyer|16|Commander Destroyer}}
+
                    | ECM = [[File:Icon target max.png|24px|Target Jammer]]
| Cruiser ={{icon|cruiser|16|Cruiser}}
+
                    | TD = [[File:Icon track disruptor 64.png|24px|Tracking Disruptor]]
| Elite Cruiser ={{icon|cruiser|16|Elite Cruiser}}
+
                    | Web = [[File:Icon stasis webifier i.png|24px|Stasis Webifier]]
| Storyline Mission Cruiser ={{icon|cruiser|16|Storyline Mission Cruiser}}
+
                    | Damp = [[File:Icon remote sensor dampening.png|24px|Remote Sensor Dampener]]
| Commander Cruiser ={{icon|cruiser|16|Commander Cruiser}}
+
                    | TP = [[File:Icon target painter i.png|24px|Target Painter]]
| Overseer Cruiser ={{icon|cruiser|16|Overseer Cruiser}}
+
                    | Neut = [[File:Icon energy neutralizer i.png|24px|Energy Neutralizer]]
| Battlecruiser ={{icon|battlecruiser|16|Battlecruiser}}
+
                    | GD = [[File:Icon missile guidance computer i.png|24px|Guidance Disruptor]]
| Overseer Battlecruiser ={{icon|battlecruiser|16|Overseer Battlecruiser}}
+
                    | {{{ewar}}}
| Commander Battlecruiser ={{icon|battlecruiser|16|Commander Battlecruiser}}
+
                    }}
| Battleship ={{icon|battleship|16|Battleship}}
+
                  }} {{#if: {{{ewar2|}}}
| Commander Battleship ={{icon|battleship|16|Commander Battleship}}
+
                      | {{#switch: {{{ewar2}}}  
| Overseer Battleship ={{icon|battleship|16|Overseer Battleship}}
+
                        | ECM = [[File:Icon target max.png|24px|Target Jammer]]
| Sentry ={{icon|sentry|16|Sentry}}
+
                        | TD = [[File:Icon track disruptor 64.png|24px|Tracking Disruptor]]
| Capital ={{icon|red capital|16|Capital}}
+
                        | Web = [[File:Icon stasis webifier i.png|24px|Stasis Webifier]]
| Industrial ={{icon| red industrial|16|Industrial}}
+
                        | Damp = [[File:Icon remote sensor dampening.png|24px|Remote Sensor Dampener]]
}}
+
                        | TP = [[File:Icon target painter i.png|24px|Target Painter]]
| {{{2}}} x {{co|#9ef37c|{{{1}}} }} {{{3}}}{{#if:{{{note|}}}| <span class="flashy"> {{icon|tag agent|9|{{{note}}} }}</span> |}} {{#if:{{{trigger|}}}|{{icon|x|14|{{{trigger}}}}}|}}
+
                        | Neut = [[File:Icon energy neutralizer i.png|24px|Energy Neutralizer]]
| class=icon| {{#ifeq: {{{point}}} | yes | {{icon|point|16|Warp disruptor or scrambler}} }}
+
                        | GD = [[File:Icon missile guidance computer i.png|24px|Guidance Disruptor]]
| class=icon | {{#ifeq: {{{ewar|}}} | | | {{#switch: {{{ewar}}}  
+
                        | {{{ewar2}}}
                                            | ECM ={{icon|ecm|18|Jamming}}
+
                        }}
                                            | TD ={{icon|td|18|Tracking disruption}}
+
                      }} {{#if: {{{ewar3|}}}
                                            | Web ={{icon|web|18|Stasis webifier}}
+
                          | {{#switch: {{{ewar3}}}
                                            | Damp ={{icon|damp|18|Sensor dampening}}
+
                            | ECM = [[File:Icon target max.png|24px|Target Jammer]]
                                            | TP ={{icon|tp|18|Target painting}}
+
                            | TD = [[File:Icon track disruptor 64.png|24px|Tracking Disruptor]]
                                            | Neut ={{icon|neut|18|Neuting}}
+
                            | Web = [[File:Icon stasis webifier i.png|24px|Stasis Webifier]]
                                            | {{{ewar}}} }} }} {{#ifeq: {{{ewar2|}}} | | | {{#switch: {{{ewar2}}}  
+
                            | Damp = [[File:Icon remote sensor dampening.png|24px|Remote Sensor Dampener]]
                                            | ECM ={{icon|ecm|18|Jamming}}
+
                            | TP = [[File:Icon target painter i.png|24px|Target Painter]]
                                            | TD ={{icon|td|18|Tracking disruption}}
+
                            | Neut = [[File:Icon energy neutralizer i.png|24px|Energy Neutralizer]]
                                            | Web ={{icon|web|18|Stasis webifier}}
+
                            | GD = [[File:Icon missile guidance computer i.png|24px|Guidance Disruptor]]
                                            | Damp ={{icon|damp|18|Sensor dampening}}
+
                            | {{{ewar3}}}
                                            | TP ={{icon|tp|18|Target painting}}
+
                            }}
                                            | Neut ={{icon|neut|18|Neuting}}
+
                          }}
                                            | {{{ewar2}}} }} }} {{#ifeq: {{{ewar3|}}} | | | {{#switch: {{{ewar3}}}  
+
</td>
                                            | ECM ={{icon|ecm|18|Jamming}}
+
 
                                            | TD ={{icon|td|18|Tracking disruption}}
+
<td class=icon> {{#if: {{{cargo|}}} | [[File:Icon container small green.png|24px|{{{cargo}}}]] }} {{#if: {{{drop|}}} | [[File:Icon container small.png|24px|{{{drop}}}]]}}
                                            | Web ={{icon|web|18|Stasis webifier}}
+
</td>
                                            | Damp ={{icon|damp|18|Sensor dampening}}  
+
 
                                            | TP ={{icon|tp|18|Target painting}}
+
</tr><!--
                                            | Neut ={{icon|neut|15|Neuting}}
+
-->{{#if: {{{end|}}}{{!}}} }}  
                                            | {{{ewar3}}} }} }}
 
| class=icon | {{#if: {{{cargo|}}} | {{icon|shiny cargo|16| {{{cargo}}} }} |}}
 
|-
 
 
</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?)