Difference between revisions of "Template:Expected NPC/doc"

From EVE University Wiki
Jump to: navigation, search
m (Fix 2 errors left over from previous edit.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#css:
+
{{NPCTableCSS}}
table.headers_left tr th {text-align: left; }
+
; Description
table.complex {font-size: 0.9em; line-height: 1.1em; padding-bottom: 0;}
+
: This template is used to create the table for expected enemy numbers for combat sites. It takes CSS for formatting from {{Tl|NPCTableCSS}} (Included in {{Tl|CMBSiteInfo}} and the deprecated {{Tl|CMBSite}} so include one of them to get a slightly different looking table.
table.complex caption {padding: 0.25em; text-align:left; }
 
table.complex tr th {background-color: #222; padding: 0.35em;}
 
table.complex tr td {padding: 0.25em; }
 
table.complex tr td.icon {text-align: center; padding: 0; }
 
h4, h5, h6 {line-height: 1; padding-top: 0; padding-bottom: 0;}
 
  
@keyframes flashy { 50% { opacity: 0; } }
+
; Dependencies
@-webkit-keyframes flashy { 50% { opacity: 0; } }
+
:; Uses
@-moz-keyframes flashy { 50% { opacity: 0; } }
+
:: {{T|NPCTableCSS}}
@-o-keyframes flashy { 50% { opacity: 0; } }
+
 
.flashy img {
+
; Syntax
    animation-name: flashy;
+
<pre style="margin-left: 1em">
    animation-duration: 1s;
+
{{Expected NPC
    animation-timing-function: linear;
+
| TotalExpFrigates      =
    animation-iteration-count: infinite;
+
| TotalExpDestroyers     =
    animation-direction: alternate;
+
| TotalExpCruisers      =
    -webkit-animation-name: flashy;
+
| TotalExpBattlecruisers =
    -webkit-animation-duration: 1s;
+
| TotalExpBattleships    =
    -webkit-animation-timing-function: linear;
+
| TotalExpDreadnoughts  =
    -webkit-animation-iteration-count: infinite;
+
| TotalExpCarriers      =
    -webkit-animation-direction: alternate;
+
| TotalExpTitans        =
    -moz-animation-name: flashy;
+
| TotalExpSentries      =
    -moz-animation-duration: 1s;
 
    -moz-animation-timing-function: linear;
 
    -moz-animation-iteration-count: infinite;
 
    -moz-animation-direction: alternate;
 
    -o-animation-name: flashy;
 
    -o-animation-duration: 1s;
 
    -o-animation-timing-function: linear;
 
    -o-animation-iteration-count: infinite;
 
     -o-animation-direction: alternate;
 
}
 
.wikitable.NPC .head-first {min-width: 360px; }
 
.wikitable.NPC .head th p {display: none; }
 
.wikitable.NPC caption {text-align:left; margin-left: 0.5em; }
 
.wikitable.NPC th {background-color: #222; padding: 0.5em 0.5em 0.4em; }
 
.wikitable.NPC td {padding: 0.65em 0.5em 0.5em; line-height: 1; }
 
.wikitable.NPC td.icon {padding: 0.1em; text-align: center; width: 24px; white-space: nowrap; }
 
.wikitable.NPC td.icon a {padding: 0 0.2em; }
 
.wikitable.NPC td.icon a img {margin: -6px; }
 
.wikitable.NPC .mw-collapsible-toggle {position: absolute; left: 10px; }
 
 
}}
 
}}
 +
</pre>
 +
:; 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
  
This template is used to create the table for expected enemy numbers for combat sites. It takes CSS for formatting from {{t|CMBSite}} so either include it or the CSS blurb from it to get skightly different looking table.
+
; Sample
 
+
<pre>
== Sample output ==
+
{{Expected NPC
<code><nowiki>{{Expected NPC</nowiki><br>
+
| TotalExpFrigates      = 3
<nowiki>| TotalExpFrigates      = 3 </nowiki><br>
+
| TotalExpDestroyers     = 2
<nowiki>| TotalExpDestroyers   = 2 </nowiki><br>
+
| TotalExpCruisers       =  
<nowiki>| TotalExpCruisers       = 3</nowiki><br>
+
| TotalExpBattlecruisers = 4
<nowiki>| TotalExpBattlecruisers = 4</nowiki><br>
+
| TotalExpBattleships   = 5
<nowiki>| TotalExpBattleships = 5</nowiki><br>
+
| TotalExpDreadnoughts   = 6
<nowiki>| TotalExpDreadnoughts       = 6</nowiki><br>
+
| TotalExpSentries      = 7
<nowiki>| TotalExpSentries      = 7</nowiki><br>
+
}}
<nowiki>}}</nowiki></code>
+
</pre>
 
+
: gives...
:gives...
 
 
{{Expected NPC
 
{{Expected NPC
 
| TotalExpFrigates      = 3
 
| TotalExpFrigates      = 3
| TotalExpDestroyers   = 2
+
| TotalExpDestroyers     = 2
| TotalExpCruisers       = 3
+
| TotalExpCruisers       =  
 
| TotalExpBattlecruisers = 4
 
| TotalExpBattlecruisers = 4
| TotalExpBattleships = 5
+
| TotalExpBattleships   = 5
| TotalExpDreadnoughts = 6
+
| TotalExpDreadnoughts   = 6
 
| TotalExpSentries      = 7
 
| TotalExpSentries      = 7
 
}}
 
}}
 +
 +
<includeonly>[[Category:Image templates]]<!-- Any categories for the template itself --></includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 13:59, 4 February 2023

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