Difference between revisions of "Template:NPCTableHead"

From EVE University Wiki
Jump to: navigation, search
(Moving CSS to template in-place, so template is full independent)
(Template:CSS and <includeonly> iteraction is broken, so getting all CSS from NPCTableRow)
Line 1: Line 1:
 
{{#css:
 
{{#css:
 +
@keyframes flashy { 50% { opacity: 0; } }
 +
@-webkit-keyframes flashy { 50% { opacity: 0; } }
 +
@-moz-keyframes flashy { 50% { opacity: 0; } }
 +
@-o-keyframes flashy { 50% { opacity: 0; } }
 +
.flashy img {
 +
    animation-name: flashy;
 +
    animation-duration: 1s;
 +
    animation-timing-function: linear;
 +
    animation-iteration-count: infinite;
 +
    animation-direction: alternate;
 +
    -webkit-animation-name: flashy;
 +
    -webkit-animation-duration: 1s;
 +
    -webkit-animation-timing-function: linear;
 +
    -webkit-animation-iteration-count: infinite;
 +
    -webkit-animation-direction: alternate;
 +
    -moz-animation-name: flashy;
 +
    -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 th p {display: none; }
 
.wikitable.NPC .head th p {display: none; }
 
.wikitable.NPC caption {text-align:left; margin-left: 0.5em; }
 
.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 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; }
 +
.wikitable.NPC td.icon a {padding: 0 0.1em; }
 
}}
 
}}
 
{| class="wikitable collapsible NPC"  
 
{| class="wikitable collapsible NPC"  

Revision as of 21:08, 11 May 2016

Ships WD EWAR L
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to start an NPCTable. It needs to be paired with the standard wiki parser code to end the table |}. It needs to be used once for every NPCTable on a page.
Dependencies
Requires
{{NPCTableCSS}} is required only once per page where there's at least one NPCTable. It is included into {{CMBSiteInfo}} and {{CMBSite}}(deprecated), so when one of those is used there is no need to add it separately.
Paired with
|} to close the table, or include |end=true}} as the last parameter of the last {{NPCTableRow}}.
Sub templates
{{NPCTableRow}} one or more for each NPCTable.
{{NPCTableSeparator}} zero or more for each NPCTable.
Syntax
{{NPCTableHead|<caption>}}
Parameters
caption
Caption of the table. May be omitted.
Sample
{{NPCTableHead|Initial defenders}}
|}
gives...
Initial defenders
Ships WD EWAR L


Note: #222222 is used for the background color of the NPCTable headers. But because the background color of the documentation section of a template is also #222222 it can not be seen on a template page.


See also
Visit Template:NPCTableHead/doc to edit this text! (How does this work?) (Refresh this text - why?)