Difference between revisions of "Template:Expected NPC"

From EVE University Wiki
Jump to: navigation, search
m
m (Forgot to remove comment markup.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{{!}} class="wikitable complex"
+
<includeonly>{| class="wikitable complex"
 
|+ Total expected enemies
 
|+ Total expected enemies
{{!}}-  
+
|-
! Enemy Type  
+
! Enemy Type !! Count
! Count
+
|-
{{!}}-    
+
{{#if: {{{TotalExpFrigates|}}}
{{#if: {{{TotalExpFrigates|}}}       | {{!}}{{!}} {{icon|red frigate|16}} Frigates           {{!}}{{!}} {{{TotalExpFrigates}}}
+
  | {{!}} [[image:icon_red_frigate.png|16px|link=]] Frigates {{!}}{{!}} {{{TotalExpFrigates}}}
{{!}}- |}}  
+
    {{!}}-
{{#if: {{{TotalExpDestroyers|}}}     | {{!}}{{!}} {{icon|red destroyer|16}} Destroyer        {{!}}{{!}} {{{TotalExpDestroyers}}}
+
}}  
{{!}}- |}}  
+
{{#if: {{{TotalExpDestroyers|}}}
{{#if: {{{TotalExpCruisers|}}}       | {{!}}{{!}} {{icon|red cruiser|16}} Cruiser             {{!}}{{!}} {{{TotalExpCruisers}}}      
+
  | {{!}} [[image:icon_red_destroyer.png|16px|link=]] Destroyers {{!}}{{!}} {{{TotalExpDestroyers}}}
{{!}}- |}}
+
    {{!}}-
{{#if: {{{TotalExpBattlecruisers|}}} | {{!}}{{!}} {{icon|red battlecruiser|16}} Battlecruiser {{!}}{{!}} {{{TotalExpBattlecruisers}}}  
+
}}  
{{!}}- |}}
+
{{#if: {{{TotalExpCruisers|}}}
{{#if: {{{TotalExpBattleships|}}}   | {{!}}{{!}} {{icon|red battleship|16}} Battleship      {{!}}{{!}} {{{TotalExpBattleships}}}  
+
  | {{!}} [[image:icon_red_cruiser.png|16px|link=]] Cruiser {{!}}{{!}} {{{TotalExpCruisers}}}
{{!}}- |}}
+
    {{!}}-
{{#if: {{{TotalExpCapitals|}}}       | {{!}}{{!}} {{icon|red dreadnought|16}} Capital            {{!}}{{!}} {{{TotalExpCapitals}}}      
+
}}
{{!}}- |}}
+
{{#if: {{{TotalExpBattlecruisers|}}}
{{#if: {{{TotalExpSentries|}}}       | {{!}}{{!}} {{icon|red sentry|16}} Sentry              {{!}}{{!}} {{{TotalExpSentries}}}      
+
  | {{!}} [[image:icon_red_battlecruiser.png|16px|link=]] Battlecruisers {{!}}{{!}} {{{TotalExpBattlecruisers}}}
{{!}}-
+
    {{!}}-
|}}  
+
}}
{{!}}}
+
{{#if: {{{TotalExpBattleships|}}}
 +
  | {{!}} [[image:icon_red_battleship.png|16px|link=]] Battleships {{!}}{{!}} {{{TotalExpBattleships}}}
 +
    {{!}}-
 +
}}
 +
{{#if: {{{TotalExpDreadnoughts|}}}
 +
  | {{!}} [[image:icon_red_dreadnought.png|16px|link=]] Dreadnoughts {{!}}{{!}} {{{TotalExpDreadnoughts}}}
 +
    {{!}}-
 +
}}
 +
{{#if: {{{TotalExpCarriers|}}}
 +
  | {{!}} [[image:icon_red_carrier.png|16px|link=]] Carriers {{!}}{{!}} {{{TotalExpCarriers}}}
 +
    {{!}}-
 +
}}
 +
{{#if: {{{TotalExpTitans|}}}
 +
  | {{!}} [[image:icon_red_titan.png|16px|link=]] Titans {{!}}{{!}} {{{TotalExpTitans}}}
 +
    {{!}}-
 +
}}
 +
{{#if: {{{TotalExpSentries|}}}
 +
  | {{!}} [[image:icon_red_tower.png|16px|link=]] Sentries {{!}}{{!}} {{{TotalExpSentries}}}
 +
}}
 +
|}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}  
 
{{Documentation}}  
[[Category:Template]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:57, 4 February 2023

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to create the table for expected enemy numbers for combat sites. It takes CSS for formatting from {{NPCTableCSS}} (Included in {{CMBSiteInfo}} and the deprecated {{CMBSite}} so include one of them to get a slightly different looking table.
Dependencies
Uses
{{NPCTableCSS}}
Syntax
{{Expected NPC
| TotalExpFrigates       = 
| TotalExpDestroyers     = 
| TotalExpCruisers       = 
| TotalExpBattlecruisers = 
| TotalExpBattleships    = 
| TotalExpDreadnoughts   = 
| TotalExpCarriers       =
| TotalExpTitans         =
| TotalExpSentries       = 
}}
Parameters
Empty or omitted parameters will not be shown.
TotalExpFrigates
The total number of expected frigates
TotalExpDestroyers
The total number of expected destroyers
TotalExpCruisers
The total number of expected cruisers
TotalExpBattlecruisers
The total number of expected battlecruisers
TotalExpBattleships
The total number of expected battleships
TotalExpDreadnoughts
The total number of expected dreadnoughts
TotalExpCarriers
The total number of expected Carriers
TotalExpTitans
The total number of expected Titans
TotalExpSentries
The total number of expected sentries
Sample
{{Expected NPC
| TotalExpFrigates       = 3
| TotalExpDestroyers     = 2
| TotalExpCruisers       = 
| TotalExpBattlecruisers = 4
| TotalExpBattleships    = 5
| TotalExpDreadnoughts   = 6
| TotalExpSentries       = 7
}}
gives...
Total expected enemies
Enemy Type Count
Icon red frigate.png Frigates 3
Icon red destroyer.png Destroyers 2
Icon red battlecruiser.png Battlecruisers 4
Icon red battleship.png Battleships 5
Icon red dreadnought.png Dreadnoughts 6
Icon red tower.png Sentries 7
Visit Template:Expected NPC/doc to edit this text! (How does this work?) (Refresh this text - why?)