Difference between revisions of "Template:AccessoryTable"

From SpiralKnights

Jump to: navigation, search
m (minor overhaul)
m (test)
Line 6: Line 6:
 
}}<br/>{{#if:{{{abbreviation|}}}|[[:Category:{{{category link|{{{abbreviation|???}}}}}}-Themed|{{{abbreviation|}}}]]|[[:Category:{{{category link|???}}}-Themed|{{{name|}}}]]}}
 
}}<br/>{{#if:{{{abbreviation|}}}|[[:Category:{{{category link|{{{abbreviation|???}}}}}}-Themed|{{{abbreviation|}}}]]|[[:Category:{{{category link|???}}}-Themed|{{{name|}}}]]}}
  
|style="background: #c7dbea; padding:3px; border-radius: 5px;"                               | {{#ifexist:File:{{{name}}}-Equipped.png
+
|style="background: #c7dbea; padding:3px; border-radius: 5px;"                                                         | {{#ifexist:File:{{{name}}}-Equipped.png
 
|[[File:{{{name}}}-Equipped.png|100px|{{{name}}}]]
 
|[[File:{{{name}}}-Equipped.png|100px|{{{name}}}]]
 
|[[File:Image_Wanted.png|100px|link=File:{{{name}}}-Equipped.png]]
 
|[[File:Image_Wanted.png|100px|link=File:{{{name}}}-Equipped.png]]
 
}}  
 
}}  
  
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align="left" valign="middle"   |{{{acquisition}}}
+
|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:{{{dor|}}}
+
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align="left" valign="top"                               | {{#if:{{{dor|}}}
 
|DoR: ''{{{dor}}}'' <br>
 
|DoR: ''{{{dor}}}'' <br>
 
|
 
|
}}{{{notes|This accessory is similar to others of its kind.}}}</includeonly><noinclude>|}</noinclude></includeonly><noinclude>
+
}}{{{notes|This accessory is like the others, differing only in coloration.}}}</includeonly><noinclude>|}</noinclude></includeonly><noinclude>
 
{{documentation}} [[Category:Accessory Templates]]<noinclude>
 
{{documentation}} [[Category:Accessory Templates]]<noinclude>

Revision as of 21:55, 18 March 2015

[edit] [purge] Template documentation

Usage

To display a sortable table of an individual item type.

Code

{{AccessoryTable
|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.
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 accessory 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