Template:NpcInfobox

(Add rank range and expiry, and standard, matched, and special enemy types)
m (Fix incorrectly passed params)
 
(11 intermediate revisions not shown)
Line 2: Line 2:
<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">
{{#ifeq:{{{type}}}|matched
{{#ifeq:{{{type}}}|matched
-
|Matched
+
|; Rank
 +
: Matched
|{{#if:{{{rank|}}}
|{{#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|}}}
|;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|}}}
{{#if:{{{type|}}}
|;Type
|;Type
Line 33: Line 36:
|matched=[[:Category:Matched enemies|Standard]] [[Category:Matched enemies]]
|matched=[[:Category:Matched enemies|Standard]] [[Category:Matched enemies]]
|special=[[:Category:Special enemies|Standard]] [[Category:Special enemies]]
|special=[[:Category:Special enemies|Standard]] [[Category:Special enemies]]
 +
|elite2=[[:Category:Elite 2 enemies|Elite 2]] [[Category:Elite 2 enemies]]
|elite3=[[:Category:Elite 3 enemies|Elite 3]] [[Category:Elite 3 enemies]]
|elite3=[[:Category:Elite 3 enemies|Elite 3]] [[Category:Elite 3 enemies]]
 +
|elite4=[[:Category:Elite 4 enemies|Elite 4]] [[Category:Elite 4 enemies]]
|elite5=[[:Category:Elite 5 enemies|Elite 5]] [[Category:Elite 5 enemies]]
|elite5=[[:Category:Elite 5 enemies|Elite 5]] [[Category:Elite 5 enemies]]
|boss10=[[:Category:Boss 10 enemies|Boss 10]] [[Category:Boss 10 enemies]]
|boss10=[[:Category:Boss 10 enemies|Boss 10]] [[Category:Boss 10 enemies]]
Line 41: Line 46:
}}
}}
|}}
|}}
-
 
+
{{#if:{{{transformsFrom|}}}
-
{{#if:{{{rangeStart|}}}
+
|; Transforms From
-
|{{#if:{{{rangeEnd|}}}
+
: {{{transformsFrom}}} [[Category:Enemies that transform]]
-
|;Rank Range
+
-
:{{{rangeStart}}} - {{{rangeEnd}}}
+
|}}
|}}
 +
{{#if:{{{transformsInto|}}}
 +
|; Transforms Into
 +
: {{{transformsInto}}} [[Category:Transformed enemies]]
|}}
|}}
-
 
{{#if:{{{expiry|}}}
{{#if:{{{expiry|}}}
|;Expiry
|;Expiry
Line 56: Line 61:
</div>
</div>
</div>
</div>
-
 
{{#if:{{{description|}}}
{{#if:{{{description|}}}
|{{Quote|{{{description|}}}}}
|{{Quote|{{{description|}}}}}
Line 68: Line 72:
{{NpcInfobox
{{NpcInfobox
|image=terrancarrier.png
|image=terrancarrier.png
-
|shield=
+
|shield=tcarrier-shield.png
|description=The Terran Outsiders built the Telarys during the escalating  
|description=The Terran Outsiders built the Telarys during the escalating  
conflict within its borders, hoping to turn the tide of battle.
conflict within its borders, hoping to turn the tide of battle.
Line 85: Line 89:
{{NpcInfobox
{{NpcInfobox
|image=terrancarrier.png
|image=terrancarrier.png
-
|shield=
+
|shield=tcarrier-shield.png
|description=The Terran Outsiders built the Telarys during the escalating  
|description=The Terran Outsiders built the Telarys during the escalating  
conflict within its borders, hoping to turn the tide of battle.
conflict within its borders, hoping to turn the tide of battle.
|rank=500
|rank=500
 +
|rangeStart=300
 +
|rangeEnd=30000
|class=Capital Ship
|class=Capital Ship
|rarity=Extremely Rare
|rarity=Extremely Rare
|faction=The Terran Outsiders
|faction=The Terran Outsiders
|type=elite3
|type=elite3
-
|rangeStart=300
 
-
|rangeEnd=30000
 
|expiry=48 Hours
|expiry=48 Hours
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Current revision as of 20:13, 20 November 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
|rangeStart=300
|rangeEnd=30000
|class=Capital Ship
|rarity=Extremely Rare
|faction=The Terran Outsiders
|type=elite3
|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!