Difference between revisions of "Template:CostumeTable"

From SpiralKnights

Jump to: navigation, search
m (test)
m (Fixed invisible anchor text breaking for long names in Chrome.)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{|</noinclude>|-  valign="top"
+
<includeonly>|-  valign="top"  
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" | {{#ifexist:File:Equipment-{{{icon name|{{{name}}}}}} icon.png|[[File:Equipment-{{{icon name|{{{name}}}}}} icon.png|36px|left|]]|[[File:Icon-costume.png|36px|left|link=File:Equipment-{{{icon name|{{{name}}}}}} icon.png]]}} {{{name}}}
+
 
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" align="center" valign = "top" | [[File:{{{name}}}-Equipped.png|100px|{{{description}}}]] [[File:{{{name}}}-Equipped 2.png|100px|{{{description}}}]]
+
|style="background: #c7dbea; padding:13px 3px 3px 3px; border-radius: 5px;" align="center" valign="top" | <span style="font-size:1px; visibility:hidden;">{{anchor|{{{name|}}} }}</span>{{#ifexist:File:Equipment-{{{name}}} icon.png
| style="background: #c7dbea; color: #000000; padding: 3px 3px 3px 3px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" align="center" valign = "middle" | Group: [[Costumes (Groups)#{{{group}}}|{{{group}}}]]  <br/><br/> {{showhide|Notes|content= Acquisition: {{{acquisition}}}<br/><br/>{{{notes}}}|width=200px}}<noinclude>|}</noinclude>
+
|[[File:Equipment-{{{name}}} icon.png|36px]]
 +
|[[File:Icon-costume.png|36px|link=File:Equipment-{{{name}}} icon.png]]
 +
}}<br>[[:Category:{{{category link|{{{abbreviation}}}}}}-Themed|{{{abbreviation}}}]]
 +
 
 +
|style="background: #c7dbea; padding:3px; border-radius: 5px;"                                 | [[File:{{{name}}}-Equipped.png|100px|{{{name}}}]]
 +
 
 +
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align="center" valign="middle"  | {{{acquisition}}}
 +
 
 +
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align="left" valign="top"       | {{#if:{{{description|}}}|'''Description''': ''{{{description}}}''<br>
 +
----
 +
|}}{{{notes|This costume is like the others. It does not have different textures or special effects.}}}{{#if:{{{dor|}}}
 +
|<br><br> Initial release: {{DoRSource
 +
|1  = {{{dor}}}
 +
|dor = {{{dor}}}
 +
}}
 +
|
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 +
 
 +
[[Category:Costume Templates]]</noinclude>

Latest revision as of 22:28, 27 March 2020

[edit] [purge] Template documentation

Usage

To display a sortable table of an individual item type.

Code

{{CostumeTable
|name         = 
|abbreviation = 
|acquisition  = 
|dor          = 
}}

Parameters

Required

name
The true name of the item. Use {{PAGENAME}} unless there is a disambiguation or other naming issue.
abbreviation
The part of the name that separates it from other items. This is usually a color pattern.
acquisition
How to get the item. Frequently uses Template:PrizeBox.
dor
The date of release. Day, full name of month, year. Works with Template:DoRSource.

Optional

category link
Manually fixes a category link in case the abbreviation is not a color pattern.
description
Use only if the item has its own description. Items with the same description have it written near the top of the page in the appropriate ToC section.
notes
Use only if there is something significant about the item that makes it stand out from the others (besides color). Defaults to phrase: "This costume is like the others. It does not have different textures or special effects."

Examples

See what links here for examples of this template in action.

Personal tools