Template:NpcInfobox

(Fix category links)
m (Update spacing in attempt to fix errant spacing on including pages)
 
(7 intermediate revisions not shown)
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}}}}} {{#if:{{{shield|}}}|<div style="position: absolute; top: 0; max-width: inherit;">{{GameImage|npcs/{{{shield}}}}}</div>|}}</div>
<div class="content">
<div class="content">
-
{{#if:{{{rank|}}}
+
{{#ifeq:{{{type}}}|matched
 +
|Matched
 +
|{{#if:{{{rank|}}}
|;Rank
|;Rank
-
:{{{rank}}} [[Category:Rank {{{rank}}} non-player enemies]]
+
:{{formatnum:{{{rank}}}}} [[Category:Rank {{formatnum:{{{rank}}}}} non-player enemies]]
 +
|}}
 +
}}
 +
{{#if:{{{rangeStart|}}}
 +
|{{#if:{{{rangeEnd|}}}
 +
|;<span title="The rank range within which players are eligible to find this enemy on their battle list">Range</span>
 +
:<small class="muted">{{formatnum:{{{rangeStart}}}}} - {{formatnum:{{{rangeEnd}}}}}</small>
 +
|}}
|}}
|}}
{{#if:{{{class|}}}
{{#if:{{{class|}}}
Line 19: Line 29:
:{{{faction}}} [[Category:{{{faction}}} non-player enemies]]
:{{{faction}}} [[Category:{{{faction}}} non-player enemies]]
|}}
|}}
-
{{#if:{{{type|}}}|
+
{{#if:{{{type|}}}
-
;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:{{{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=tcarrier-shield.png
 +
|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=tcarrier-shield.png
 +
|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>

Current revision as of 18:42, 9 May 2024


Displays an NPC infobox.

Example Usage

NpcInfobox
terrancarrier.png
tcarrier-shield.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=tcarrier-shield.png
|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!