Difference between revisions of "Template:Infobox component"

From Underrail Wiki
Jump to navigation Jump to search
m
m
Line 11: Line 11:
  
 
|- <!-- color of item name is quality-dependent -->
 
|- <!-- 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:{{#switch: {{{itemquality}}} | low = gray | normal = white | high = lightgreen | rarity = MediumPurple | artifact = Orange | white }}; font-weight:bold;" title="{{#switch: {{{itemquality}}} | low = Item quality: Low | normal = Item quality: Normal | high = Item quality: High | rarity = Item quality: Rarity | artifact = Item quality: Artifact | No quality specified }}" |{{{name|(item's name)}}}
  
 
|-
 
|-
Line 20: Line 20:
  
 
|-
 
|-
{{#if:{{{quality|}}}
+
{{#if:<noinclude>string</noinclude>{{{quality|}}}
|{{!}} style="color:white;" colspan="2"  title="Quality" {{!}}{{#ifexpr: {{{quality|}}} < 0 | Quality range:| Quality:}} {{{quality|quality of the component (optional)}}}
+
|{{!}} style="color:white;" colspan="2"  title="Component quality" {{!}}{{#ifexpr: {{{quality|1}}} < 0 | Quality range:| Quality:}} {{{quality|quality OR quality range (optional)}}}
 
|}}
 
|}}
  
 
|-
 
|-
{{#if:{{{skillsreq|}}}
+
{{#if:<noinclude>string</noinclude>{{{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)|}}|}}:
+
|{{!}} style="color:white;" colspan="2"  title="List of required crafting skills" {{!}}Required crafting skills{{#if:<noinclude>string</noinclude>{{{quality|}}}|{{#ifexpr: {{{quality|1}}} < 0 |&nbsp;(as percentage of quality)|}}|}}:
 
{{{skillsreq|required crafting skills, each line intended with a ":"!}}}
 
{{{skillsreq|required crafting skills, each line intended with a ":"!}}}
 
|}}
 
|}}
  
 
|-
 
|-
| style="color:yellow;" colspan="2" title="Base trading value" |Value: {{{value|component's value}}}
+
| style="color:yellow;" colspan="2" title="Base trading value" |Value: {{{value|component's value}}}
 
|}{{#if:{{{example|}}}|<includeonly>
 
|}{{#if:{{{example|}}}|<includeonly>
 
[[Category:Items with example stats]]</includeonly>
 
[[Category:Items with example stats]]</includeonly>
 
|}}<noinclude>
 
|}}<noinclude>
 
<br style="clear:both;"/>{{documentation}}</noinclude>
 
<br style="clear:both;"/>{{documentation}}</noinclude>

Revision as of 17:33, 10 August 2013

Misc icon.png
(item's name)
Component
component's description
Quality: quality OR quality range (optional)
Required crafting skills:

required crafting skills, each line intended with a ":"!

Value: component's value


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_component/doc to view this documentation. (edit) (How does this work?)

Template:Infobox component/doc