Difference between revisions of "Template:Npcwh"

From EVE University Wiki
Jump to: navigation, search
m (Missed a few things.)
m (Making parameters optional.)
Line 52: Line 52:
 
| Orthrus | o | orth = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Orthrus {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">11,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">5500</td><td nowrap style="vertical-align:text-top; text-align:center;">47 / 47</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
 
| Orthrus | o | orth = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Orthrus {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">11,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">5500</td><td nowrap style="vertical-align:text-top; text-align:center;">47 / 47</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
 
| Sirius | s | siri = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Sirius {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">5,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">2500</td><td nowrap style="vertical-align:text-top; text-align:center;">26 / 26</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
 
| Sirius | s | siri = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Sirius {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">5,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">2500</td><td nowrap style="vertical-align:text-top; text-align:center;">26 / 26</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
| Wave = <tr><td colspan="15" style="text-align:center;" nowrap><span style="font-size:1.25em;line-height:1.5em;font-weight:bold;">{{{w}}} {{{n}}}</span></td></tr>
+
| Wave = <tr><td colspan="15" style="text-align:center;" nowrap><span style="font-size:1.25em;line-height:1.5em;font-weight:bold;">{{#if: {{{w|}}} | {{{w}}} }} {{{n}}}</span></td></tr>
 
| End = </table>
 
| End = </table>
 
}}
 
}}

Revision as of 13:44, 25 June 2014

This is a very simple conditional template test.


To use this template, simply use the following syntax:

  • {{npcwh|Start}} - This begins the table and adds headers.
  • {{npcwh|Wave|w=Wave|n=1}} - This specifies a Wave header. Whatever value you pass to w= goes into the header as the title. Whatever value you pass to n= goes into the header as the number. You can make Wave headers, Escalation headers, and Capital Escalation headers by calling {{npcwh|Wave}} * <nowiki>{{npcwh|Sleepless Warden|n=2x|t={{trigger}}}} - Here we specify the name of the Sleeper, the number of sleepers, and that it will trigger a new wave.
  • {{npcwh|Sleepless Upholder|n=3x|t=}} - Here we again specify the name of the Sleeper, the number, and we leave the trigger blank.
  • {{npcwh|Emergent Keeper|n=4x|t=}} - Same as above.
  • {{npcwh|End}} - This tells the table to stop.

You can also shorten the names like so:

  • {{npcwh|swar|n=2x|t={{trigger}}}}
  • {{npcwh|suph|n=3x|t=}}
  • {{npcwh|skee|n=4x|t=}}

This takes the first letter of the first word (Sleepless/Awakened/Emergent) and adds the first three letters of the second word (Warden/Upholder/Keeper in the cases above).

Example Usage

Sleeper Ship Name Effect(s) Sig Res Speed Attack Orbit Optimal Falloff Armor HP Armor Resists Hull HP Turret DPS
(EM/Therm)
Missile DPS
(Exp/Kin)
Wave 1
Template:Npcimg2x Sleepless Warden TRIGGER for next waveIcon remote armor repair i.png4001401,305255,00055,000170,00085,00035,20070 / 70 / 70 / 701760029 / 29170 / 170
Template:Npcimg3x Sleepless Upholder Vamp.png400140800225,00065,000150,00075,00016,80065 / 65 / 65 / 658400191 / 19130 / 30
Template:Npcimg4x Emergent Keeper Vamp.pngIcon remote armor repair i.png351,0502,88015,0005,00010,0005,0001,76050 / 50 / 50 / 508804 / 48 / 8
Template:Npcimg16x Awakened Keeper Icon stasis webifier i.pngIcon warp scrambler i.pngVamp.png1503602,115105,00030,00070,00035,0007,70050 / 50 / 50 / 50385018 / 189 / 9
Template:Npcimg2x Argos 5000250,0000250,00050,0007,00040 / 40 / 40 / 40350037 / 370 / 0
Capital Escalation 1
Template:Npcimg10x Sleepless Warden Icon remote armor repair i.png4001401,305255,00055,000170,00085,00035,20070 / 70 / 70 / 701760029 / 29170 / 170