Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Npcwh: Difference between revisions

Template page
{{{t}}} is conditional also.
m Change background color to design-token.
 
(37 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}  
{{#switch: {{{1|}}}  
| Start =  
| Start | start =
<table class="wikitable sortable">
<table class="wikitable sortable">
<tr>
<tr style="background-color: var(--background-color-warning-subtle);">
<th nowrap style="background-color:#222222;" data-sort-type="number"> </th>
<th nowrap data-sort-type="number"> </th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Sleeper Ship Name</th>
<th nowrap data-sort-type="number">Sleeper Ship Name</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Effect(s)</th>
<th nowrap data-sort-type="number">Effect(s)</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Sig</th>
<th nowrap data-sort-type="number">Sig</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Res</th>
<th nowrap data-sort-type="number">Speed</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Speed</th>
<th nowrap data-sort-type="number">Attack</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Attack</th>
<th nowrap data-sort-type="number">Orbit</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Orbit</th>
<th nowrap data-sort-type="number">DPS/Volley</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Optimal</th>
<th nowrap data-sort-type="number">DPS/Volley</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Falloff</th>
<th nowrap data-sort-type="number">EHP</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Armor HP</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Armor Resists</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Hull HP</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Turret DPS<br>(EM/Therm)</th>
<th nowrap style="background-color:#222222;" data-sort-type="number">Missile DPS<br>(Exp/Kin)</th>
</tr>
</tr>
| Awakened Defender | ad | adef = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{
| Start2 | start2 =
<table class="wikitable">
| Awakened Defender | ad | adef = <tr>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:icon_red_cruiser.png|16px|link=|Cruiser]]
</td>
<td nowrap style="vertical-align:text-top;text-align:left;">
{{#if: {{{2|}}} | {{{2}}} }} Awakened Defender {{#if: {{{3|}}} | {{{3}}} }}
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:Icon_ship_sig.png|18px|link=]] 150
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:Icon_velocity.png|18px|link=]] 1,480 m/s
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:Icon_target_range.png|18px|link=]] 45 km
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
15 km [[image:icon_orbit.png|18px|link=]] 185 m/s
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
28 [[image:icon_turret.png|18px|link=|DPS,Volley,Interval]] 140 (5 s)
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
28 [[image:icon_torpedoes.png|18px|link=|DPS,Volley,Interval]] 420 (15 s)
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:icon_hull.png|18px|link=]] 26,833
</td>
</tr>
| Awakened Escort | ae | aesc = <tr>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:icon_red_cruiser.png|16px|link=|Cruiser]]
</td>
<td nowrap style="vertical-align:text-top;text-align:left;">
{{#if: {{{2|}}} | {{{2}}} }} Awakened Escort {{#if: {{{3|}}} | {{{3}}} }}
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:Icon_ship_sig.png|18px|link=]] 150
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:Icon_velocity.png|18px|link=]] 980 m/s
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
[[image:Icon_target_range.png|18px|link=]] 68 km
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
45 km [[image:icon_orbit.png|18px|link=]] 140 m/s
</td>
<td nowrap style="vertical-align:text-top;text-align:center;padding:0px 5px;">
44 [[image:icon_turret.png|18px|link=|DPS,Volley,Interval]] 220 (5 s)
</
}}
}}
<noinclude>This is a simple (?) template to add Wormhole NPCs to any page anywhere. This might be helpful for a Wormhole Site Running Page, for instance, or for a page explaining exactly what sleepers are and how to deal with them.
<noinclude>
 
{{documentation}}
==Syntax==
 
To use this template, simply use the following syntax:
* <nowiki>{{npcwh|Start}} - This begins the table and adds headers.</nowiki>
* <nowiki>{{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 with this.</nowiki>
** <nowiki>You don't have to specify "w" or "n". You can write {{npcwh|Wave}} if you want, which will insert an empty row into the table.</nowiki>
* <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.</nowiki>
* <nowiki>{{npcwh|Sleepless Upholder|n=3x|t=}} - Here we again specify the name of the Sleeper, the number, and we leave the trigger blank.</nowiki>
* <nowiki>{{npcwh|Emergent Keeper|n=4x|t=}} - Same as above.</nowiki>
* <nowiki>{{npcwh|End}} - This tells the table to stop.</nowiki>
 
You can also shorten the names like so:
* <nowiki>{{npcwh|swar|n=2x|t={{trigger}}}}</nowiki>
* <nowiki>{{npcwh|suph|n=3x|t=}}</nowiki>
* <nowiki>{{npcwh|skee|n=4x|t=}}</nowiki>
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==
{{npcwh|Start}}
{{npcwh|Wave|w=Wave|n=1}}
{{npcwh|swar|n=2x|t={{trigger}}}}
{{npcwh|suph|n=3x|t=}}
{{npcwh|ekee|n=4x|t=}}
{{npcwh|akee|n=16x|t=}}
{{npcwh|argo|n=2x|t=}}
{{npcwh|Wave|w=Capital Escalation|n=1}}
{{npcwh|swar|n=10x|t=}}
{{npcwh|End}}
</noinclude>
</noinclude>