Template:NpcInfobox

(Fix category links)
(Add rank range and expiry, and standard, matched, and special enemy types)
Line 1: Line 1:
 +
<includeonly>
<div class="infobox">
<div class="infobox">
<div class="header"><span class="icon icon-alien">{{PAGENAME}}</span></div>
<div class="header"><span class="icon icon-alien">{{PAGENAME}}</span></div>
<div class="image-container">{{GameImage|npcs/{{{image|station3.png}}}}}</div>
<div class="image-container">{{GameImage|npcs/{{{image|station3.png}}}}}</div>
<div class="content">
<div class="content">
-
{{#if:{{{rank|}}}
+
{{#ifeq:{{{type}}}|matched
 +
|Matched
 +
|{{#if:{{{rank|}}}
|;Rank
|;Rank
:{{{rank}}} [[Category:Rank {{{rank}}} non-player enemies]]
:{{{rank}}} [[Category:Rank {{{rank}}} non-player enemies]]
|}}
|}}
 +
}}
 +
{{#if:{{{class|}}}
{{#if:{{{class|}}}
|;Class
|;Class
:{{{class}}} [[Category:{{{class}}} non-player enemies]]
:{{{class}}} [[Category:{{{class}}} non-player enemies]]
|}}
|}}
 +
{{#if:{{{rarity|}}}
{{#if:{{{rarity|}}}
|;Rarity
|;Rarity
:{{{rarity}}} [[Category:{{{rarity}}} non-player enemies]]
:{{{rarity}}} [[Category:{{{rarity}}} non-player enemies]]
|}}
|}}
 +
{{#if:{{{faction|}}}
{{#if:{{{faction|}}}
|;Faction
|;Faction
:{{{faction}}} [[Category:{{{faction}}} non-player enemies]]
:{{{faction}}} [[Category:{{{faction}}} non-player enemies]]
|}}
|}}
-
{{#if:{{{type|}}}|
+
 
-
;Type
+
{{#if:{{{type|}}}
 +
|;Type
:{{#switch: {{{type}}}
:{{#switch: {{{type}}}
-
|elite3=[[:Category:Elite 3 non-player enemies|Elite 3]] [[Category:Elite 3 non-player enemies]]
+
|standard=[[:Category:Standard enemies|Standard]] [[Category:Standard enemies]]
-
|elite5=[[:Category:Elite 5 non-player enemies|Elite 5]] [[Category:Elite 5 non-player enemies]]
+
|matched=[[:Category:Matched enemies|Standard]] [[Category:Matched enemies]]
-
|boss10=[[:Category:Boss 10 non-player enemies|Boss 10]] [[Category:Boss 10 non-player enemies]]
+
|special=[[:Category:Special enemies|Standard]] [[Category:Special enemies]]
-
|boss12=[[:Category:Boss 12 non-player enemies|Boss 12]] [[Category:Boss 12 non-player enemies]]
+
|elite3=[[:Category:Elite 3 enemies|Elite 3]] [[Category:Elite 3 enemies]]
-
|boss15=[[:Category:Boss 15 non-player enemies|Boss 15]] [[Category:Boss 15 non-player enemies]]
+
|elite5=[[:Category:Elite 5 enemies|Elite 5]] [[Category:Elite 5 enemies]]
 +
|boss10=[[:Category:Boss 10 enemies|Boss 10]] [[Category:Boss 10 enemies]]
 +
|boss12=[[:Category:Boss 12 enemies|Boss 12]] [[Category:Boss 12 enemies]]
 +
|boss15=[[:Category:Boss 15 enemies|Boss 15]] [[Category:Boss 15 enemies]]
|#default=???
|#default=???
}}
}}
 +
|}}
 +
 +
{{#if:{{{rangeStart|}}}
 +
|{{#if:{{{rangeEnd|}}}
 +
|;Rank Range
 +
:{{{rangeStart}}} - {{{rangeEnd}}}
 +
|}}
 +
|}}
 +
 +
{{#if:{{{expiry|}}}
 +
|;Expiry
 +
:{{{expiry}}}
|}}
|}}
<div style="clear: both;"></div>
<div style="clear: both;"></div>
-
</div> <!-- .content -->
+
</div>
-
</div> <!-- .infobox -->
+
</div>
{{#if:{{{description|}}}
{{#if:{{{description|}}}
|{{Quote|{{{description|}}}}}
|{{Quote|{{{description|}}}}}
|}}
|}}
 +
</includeonly>
 +
<noinclude>
 +
Displays an NPC infobox.
 +
 +
== Example Usage ==
 +
 +
{{NpcInfobox
 +
|image=terrancarrier.png
 +
|shield=
 +
|description=The Terran Outsiders built the Telarys during the escalating
 +
conflict within its borders, hoping to turn the tide of battle.
 +
|rank=500
 +
|class=Capital Ship
 +
|rarity=Extremely Rare
 +
|faction=The Terran Outsiders
 +
|type=elite3
 +
|rangeStart=300
 +
|rangeEnd=30000
 +
|expiry=48 Hours
 +
}}
 +
 +
 +
<pre>
 +
{{NpcInfobox
 +
|image=terrancarrier.png
 +
|shield=
 +
|description=The Terran Outsiders built the Telarys during the escalating
 +
conflict within its borders, hoping to turn the tide of battle.
 +
|rank=500
 +
|class=Capital Ship
 +
|rarity=Extremely Rare
 +
|faction=The Terran Outsiders
 +
|type=elite3
 +
|rangeStart=300
 +
|rangeEnd=30000
 +
|expiry=48 Hours
 +
}}
 +
</pre>
 +
</noinclude>

Revision as of 22:55, 5 May 2024


Displays an NPC infobox.

Example Usage

NpcInfobox
terrancarrier.png
Rank
500
Range
300 - 30,000
Class
Capital Ship
Rarity
Extremely Rare
Faction
The Terran Outsiders
Type
Elite 3
Expiry
48 Hours

The Terran Outsiders built the Telarys during the escalating conflict within its borders, hoping to turn the tide of battle.

— In-game description



{{NpcInfobox
|image=terrancarrier.png
|shield=
|description=The Terran Outsiders built the Telarys during the escalating 
conflict within its borders, hoping to turn the tide of battle.
|rank=500
|class=Capital Ship
|rarity=Extremely Rare
|faction=The Terran Outsiders
|type=elite3
|rangeStart=300
|rangeEnd=30000
|expiry=48 Hours
}}

Looking for something?

Use the form below to search the wiki:

 

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!