Difference between revisions of "Template:Infobox component"

From Underrail Wiki
Jump to navigation Jump to search
(magic)
m (removing old junk)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
+
#REDIRECT [[Template:Infobox item]]
{| style={{Infobox common style}}
 
|-
 
{{#if:{{{example|}}}
 
|{{!}} style="color:white; text-align:center;" colspan="2" {{!}}''This is an example of '''{{PAGENAME}}'''.<br>Its actual stats depend on quality.''
 
----
 
|}}
 
 
 
|-
 
| rowspan="3" width="50px" height="50px" align="center" valign="center" title="{{#if:{{{image|}}}|{{PAGENAME}} icon|Default icon}}" |{{#if:{{{image|}}}|[[File:{{{image}}}|link=]]|[[File:Misc_icon.png|link=]]}}
 
 
 
|- <!-- color of item name is quality-dependent -->
 
| style="color:{{#switch: {{{itemquality}}} | low = gray | normal = white | high = lightgreen | rarity = MediumPurple | artifact = Orange | white }}; font-weight:bold;" title="{{#switch: {{{itemquality}}} | low = Quality: Low | normal = Quality: Normal | high = Quality: High | rarity = Quality: Rarity | artifact = Quality: Artifact | No quality specified }}" |{{{name|(item's name)}}}
 
 
 
|-
 
| style="color:yellow;" title="Item type" |Component
 
 
 
|-
 
| style="color:gray;" colspan="2" title="Item description" |{{{description|component's description}}}
 
 
 
|-
 
{{#if:{{{quality|}}}
 
|{{!}} style="color:white;" colspan="2"  title="Quality" {{!}}{{#ifexpr: {{{quality|}}} < 0 | Quality range:| Quality:}} {{{quality|quality of the component (optional)}}}
 
|}}
 
 
 
|-
 
{{#if:{{{skillsreq|}}}
 
|{{!}} style="color:white;" colspan="2"  title="List of required crafting skills" {{!}}Required crafting skills{{#if:{{{quality|}}}|{{#ifexpr: {{{quality|}}} < 0 |&nbsp;(as percentage of quality)|}}|}}:
 
{{{skillsreq|required crafting skills, each line intended with a ":"!}}}
 
|}}
 
 
 
|-
 
|  style="color:yellow;" colspan="2" title="Base trading value" |Value: {{{value|component's value}}}
 
|}{{#if:{{{example|}}}|<includeonly>
 
[[Category:Items with example stats]]</includeonly>
 
|}}<noinclude>
 
<br style="clear:both;"/>{{documentation}}</noinclude>
 

Latest revision as of 11:48, 18 October 2013