Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Expected NPC/doc: Difference between revisions

Template page
Arin Mara (talk | contribs)
mNo edit summary
m Update to clarify where the CSS is coming from.
Line 1: Line 1:
{{update|Does not use the standardized auto generated template documentation [[User:Arin Mara|Arin Mara]] ([[User talk:Arin Mara|talk]]) 14:46, 19 April 2022 (UTC)}}
{{NPCTableCSS}}
{{#css:
; Description
table.headers_left tr th {text-align: left; }
: 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 {font-size: 0.9em; line-height: 1.1em; padding-bottom: 0;}
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;}


.wikitable.NPC .head-first {min-width: 360px; }
; Dependencies
.wikitable.NPC .head th p {display: none; }
:; Uses
.wikitable.NPC caption {text-align:left; margin-left: 0.5em; }
:: {{T|NPCTableCSS}}
.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; }
}}{{FlashyCSS}}


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.
; Syntax
<pre style="margin-left: 1em">
{{Expected NPC
| TotalExpFrigates      =
| TotalExpDestroyers    =
| TotalExpCruisers      =
| TotalExpBattlecruisers =
| TotalExpBattleships    =
| TotalExpDreadnoughts  =
| TotalExpSentries      =
}}
</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
::; TotalExpSentries : The total number of expected sentries


== Sample output ==
; Sample
<code><nowiki>{{Expected NPC</nowiki><br>
<pre>
<nowiki>| TotalExpFrigates      = 3 </nowiki><br>
{{Expected NPC</nowiki>
<nowiki>| TotalExpDestroyers   = 2 </nowiki><br>
| TotalExpFrigates      = 3
<nowiki>| TotalExpCruisers       = 3</nowiki><br>
| TotalExpDestroyers     = 2
<nowiki>| TotalExpBattlecruisers = 4</nowiki><br>
| TotalExpCruisers       =  
<nowiki>| TotalExpBattleships = 5</nowiki><br>
| TotalExpBattlecruisers = 4
<nowiki>| TotalExpDreadnoughts       = 6</nowiki><br>
| TotalExpBattleships   = 5
<nowiki>| TotalExpSentries      = 7</nowiki><br>
| TotalExpDreadnoughts   = 6
<nowiki>}}</nowiki></code>
| TotalExpSentries      = 7
 
}}
:gives...
</pre>
: 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|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
<includeonly>[[Category:Image templates}}]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>