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

Template:NPCTableCSS: Difference between revisions

Template page
Arin Mara (talk | contribs)
Extracted FlashyCSS
Re-add background color using design-token.
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
table.complex {font-size: 0.9em; line-height: 1.1em; padding-bottom: 0;}
table.complex {font-size: 0.9em; line-height: 1.1em; padding-bottom: 0;}
table.complex caption {padding: 0.25em; text-align:left; }
table.complex caption {padding: 0.25em; text-align:left; }
table.complex tr th {background-color: #222; padding: 0.35em;}
table.complex tr th {padding: 0.35em; background-color: var(--background-color-warning-subtle);}
table.complex tr td {padding: 0.25em; }
table.complex tr td {padding: 0.25em; }
table.complex tr td.icon {text-align: center; padding: 0; }
table.complex tr td.icon {text-align: center; padding: 0; }
Line 12: Line 12:
.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 {padding: 0.5em 0.5em 0.4em; background-color: var(--background-color-warning-subtle);}
.wikitable.NPC td {padding: 0.65em 0.5em 0.5em; line-height: 1; }
.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 {padding: 0.1em; text-align: center; width: 24px; white-space: nowrap; }
Line 18: Line 18:
.wikitable.NPC td.icon a img {margin: -6px; }
.wikitable.NPC td.icon a img {margin: -6px; }
.wikitable.NPC .mw-collapsible-toggle {position: absolute; left: 1em;}
.wikitable.NPC .mw-collapsible-toggle {position: absolute; left: 1em;}
}}{{FlashyCSS}}<noinclude>
}}<noinclude>
{{Documentation}}  
{{Documentation}}  
</noinclude>
</noinclude>

Latest revision as of 14:22, 20 May 2025

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template gives NPC tables the CSS they need to look right. It should be included once on all pages that use {{NPCTableHead}}, {{Expected NPC}} or {{Loot table}}.
This template is included in {{CMBSiteInfo}} and {{CMBSiteBox}}(deprecated) so that articles that use one of these templates do not need {{NPCTableCSS}} anymore.
Dependencies
Used by
{{NPCTableHead}}
{{NPCTableRow}}
{{NPCTableSeparator}}
{{Expected NPC}}
{{Loot table}}
Included in
{{CMBSiteInfo}}
{{CMBSiteBox}} deprecated.
Syntax
{{NPCTableCSS}}
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.

This template contains the CSS code for the NPCTable set, "Expected NPC" and "Loot table" templates. The template has no parameters. It should be placed once at a page whit one or more of the templates on it. The template is included in the CMBSiteInfo and CMBSiteBox templates so it is not needed on pages with one of those templates.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified
Visit Template:NPCTableCSS/doc to edit this text! (How does this work?) (Refresh this text - why?)