|
|
| (3 intermediate revisions by 2 users not shown) |
| 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;}
| |
|
| |
|
| @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|{{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> |