Difference between revisions of "User:Epeli/item infobox"

From Underrail Wiki
Jump to navigation Jump to search
(testing a comprehensive item infobox)
 
(Redirected page to Template:Infobox item)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
+
#REDIRECT [[Template:Infobox item]]
just a test for huge item infobox template with all the parameters for different item types.
 
 
 
{| 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 components used and/or quality.''
 
----
 
|}}
 
 
 
|-
 
| rowspan="3" width="50px" height="50px" align="center" valign="center" |{{#if:{{{image|}}}|[[File:{{{image}}}|full|Item's icon]]|[[File:Misc_icon.png|full|Default icon]]}}
 
 
 
|- <!-- 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;" |{{{name|item's name}}}
 
 
 
|-
 
| style="color:yellow;" |{{{type|item's type}}}
 
 
 
|-
 
| style="color:gray;" colspan="2" |{{{description|item's description}}}
 
 
 
<!-- armor/component/weapon switch, adds necessary fields
 
  -->{{#switch: {{{type}}}
 
| armor = {{!}}-
 
{{!}} style="color:white;" colspan="2" {{!}}Resistances:
 
{{{resistances|multiple lines, each intended with ":"}}}
 
 
 
{{!}}-
 
{{!}} style="color:white;" colspan="2" {{!}}Encumbrance: <font color="red">{{{encumbrance|armor's encumbrance}}}</font>
 
| component ={{!}}-
 
{{#if:{{{quality|}}}
 
|{{!}} style="color:white;" colspan="2" {{!}}Quality: {{{quality|quality of the component (optional)}}}
 
|}}
 
 
 
|-
 
| style="color:white;" colspan="2" |Required crafting skills:
 
{{{skillsreq|required crafting skills, each line intended with a ":"!}}}
 
| weapon = |-
 
| style="color:white;" colspan="2"  |Damage: {{{damage|}}}
 
 
 
|- <!-- impact speed color depends on "impactspeed" value -->
 
| style="color:{{#switch: {{{impactspeed}}} | Very Low = teal  | Low = teal | Medium = gray | High = DarkSalmon | Very High = DarkSalmon | gray }};" colspan="2" |Impact Speed: {{{impactspeed|}}}
 
 
 
|-
 
| style="color:white;" colspan="2"  |Action Points: {{{ap|}}}
 
 
 
|-
 
| style="color:white;" colspan="2"  colspan="2"  |Range: {{{range|}}}
 
 
 
|-
 
{{#if:{{{precision|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Precision: {{{precision|(optional)}}}
 
|}}
 
 
 
|-
 
{{#if:{{{burstprec.|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Burst precision: {{{burstprec.|(optional)}}}
 
|}}
 
 
 
|-
 
{{#if:{{{cqprec.|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Close quarters precision: <font color="red">{{{cqprec.|(optional)}}}</font>
 
|}}
 
 
 
|-
 
{{#if:{{{moveprec.|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Move and shoot precision: <font color="red">{{{moveprec.|(optional)}}}</font>
 
|}}
 
 
 
|-
 
| style="color:white;" colspan="2"  |Critical chance: {{{critchance|}}}
 
 
 
|-
 
{{#if:{{{minstr|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}
 
 
 
 
 
Minimal strength: {{{minstr|(optional)}}}
 
|}}
 
 
 
|-
 
{{#if:{{{minskill|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Minimal weapon skill: {{{minskill|(optional)}}}
 
|}}
 
 
 
|-
 
{{#if:{{{ammotype|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}
 
 
 
 
 
Ammo type: {{{ammotype|(optional)}}}
 
|}}
 
 
 
|-
 
{{#if:{{{magcap|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Magazine capacity: {{{magcap|(optional)}}}
 
|}}
 
 
 
|-
 
{{#if:{{{energy/shot|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Energy usage per shot: <font color="green">{{{energy/shot|(optional)}}}</font>
 
|}}
 
 
 
|-
 
{{#if:{{{energy|}}}
 
|{{!}} style="color:white;" colspan="2"  {{!}}Energy: {{{energy|energy capacity(optional)}}}
 
|}}
 
| #default = }}
 
 
 
|-
 
{{#if:{{{whitestats|}}}
 
|{{!}} style="color:white;" colspan="2" {{!}}{{{whitestats|energy capacity and other white stats (optional)}}}
 
|}}
 
 
 
{{#switch: {{{type}}}
 
| Blueprint =
 
|{{!}} style="color:green;" colspan="2" {{!}}Use: Download blueprint into your wristpad.
 
| #default =|-
 
{{#if:{{{greenstats|}}}
 
|{{!}} style="color:green;" colspan="2" {{!}}{{{greenstats|uses, equip effects and other green stats (optional)}}}
 
|}}
 
}}
 
 
 
|-
 
{{#if:{{{whitestats2|}}}
 
|{{!}} style="color:white;" colspan="2" {{!}}{{{whitestats2|any white stats below the green stats (optional)}}}
 
|}}
 
 
 
<!-- plot item switch, omits value from plot items
 
  -->{{#switch: {{{type}}}
 
| Plot =
 
| #default = {{!}}-
 
{{!}} style="color:yellow;" colspan="2" {{!}}Value: {{{value|item's value}}}
 
}}
 
 
 
<!-- blueprint switch, adds components table to blueprints
 
  -->{{#switch: {{{type}}} | Blueprint =-----
 
 
 
{| cellspacing="10" style="background-color:#000000; color:#ffffff;"
 
|-
 
| colspan="3" |{{{description2|crafting recipe's description}}}
 
 
 
|- align="left" valign="top"
 
| width="33%" style="padding:15px; border:2px solid #808080; border-radius:1em;" |'''{{{component1|First component}}}'''
 
 
 
{{#if:{{{component2|}}}
 
|{{!}} width="34%" style="padding:15px; border:2px solid #808080; border-radius:1em;" {{!}}'''{{{component2|Second component (optional)}}}'''
 
|}}
 
{{#if:{{{component4|}}}|{{!}}- align="left" valign="top"|}}
 
{{#if:{{{component3|}}}
 
|{{!}} width="33%" style="padding:15px; border:2px solid #808080; border-radius:1em;" {{!}}'''{{{component3|Third component (optional)}}}'''
 
|}}
 
{{#if:{{{component4|}}}
 
|{{!}} width="33%" style="padding:15px; border:2px solid #808080; border-radius:1em;" {{!}}'''{{{component4|Fourth component (optional)}}}'''
 
|}}
 
 
 
|- align="left" valign="top"
 
 
 
{{#if:{{{optional1|}}}
 
|{{!}} width="33%" style="padding:15px; border:2px dashed #808080; border-radius:1em;" {{!}}'''{{{optional1|Optional component 1}}}'''
 
<font color="gray">Optional.
 
 
 
Composition difficulty. Using this slot will also increase the total skill requirements by <font color="white">{{{diffmod1|n%}}}</font> of the occupying item's requirements.</font>
 
|}}
 
{{#if:{{{optional2|}}}
 
|{{!}} width="34%" style="padding:15px; border:2px dashed #808080; border-radius:1em;" {{!}}'''{{{optional2|Optional component 2}}}'''
 
<font color="gray">Optional.
 
 
 
Composition difficulty. Using this slot will also increase the total skill requirements by <font color="white">{{{diffmod2|n%}}}</font> of the occupying item's requirements.</font>
 
|}}
 
{{#if:{{{optional3|}}}
 
|{{!}} width="33%" style="padding:15px; border:2px dashed #808080; border-radius:1em;" {{!}}'''{{{optional3|Optional component 3}}}'''
 
<font color="gray">Optional.
 
 
 
Composition difficulty. Using this slot will also increase the total skill requirements by <font color="white">{{{diffmod3|n%}}}</font> of the occupying item's requirements.</font>
 
|}}
 
| #default =}}
 
|}
 
<br style="clear:both;"/>
 
 
 
 
 
=syntax=
 
<pre>
 
{{item infobox
 
| example      = [marks the infobox as example. remove this line if stats are exact]
 
| image        = [leave this field empty if there's no image yet]
 
| quality      = [accepted values: low, normal, high, rarity, artifact. defaults to normal if omitted]
 
| name          =
 
| type          =
 
| description  =
 
| whitestats    = [optional. energy capacity and other stats written in white]
 
| greenstats    = [optional. uses, equip effects and other stats written in green]
 
| whitestats2  = [optional. any stats written in white, below the green section]
 
| value        =
 
|
 
|armor-only attributes:
 
| resistances  = [multiple lines, each intended with ":"]
 
| encumbrance  =
 
|
 
|blueprint-only attributes:
 
| description2  = [description on the crafting recipe]
 
| component1    =
 
| component2    = [optional]
 
| component3    = [optional]
 
| component4    = [optional]
 
| optional1    = [optional]
 
| diffmod1      = [difficulty modifier for first optional component]
 
| optional2    = [optional]
 
| diffmod2      = [difficulty modifier for second optional component]
 
| optional3    = [optional]
 
| diffmod3      = [difficulty modifier for third optional component]
 
|
 
|component-only attributes:
 
| quality      = [optional]
 
| skillsreq    = [multiple lines, intended with ":"]
 
|
 
|weapon-only attributes:
 
| damage        =
 
| impactspeed  = [accepted values: Very Low, Low, Medium, High, Very High]
 
| ap            =
 
| range        =
 
| precision    = [optional]
 
| burstprec.    = [optional]
 
| cqprec.      = [optional]
 
| moveprec.    = [optional]
 
| critchance    =
 
| minstr        = [optional]
 
| minskill      = [optional]
 
| ammotype      = [optional]
 
| magcap        = [optional]
 
| energy/shot  = [optional]
 
| energy        = [optional]
 
}}
 
</pre>
 
 
 
=examples=
 
{{item infobox
 
| example      = [marks the infobox as example. remove this line if stats are exact]
 
| image        =
 
| quality      = [accepted values: low, normal, high, rarity, artifact. defaults to normal if omitted]
 
| name          = random item
 
| type          = something
 
| description  = blah blah
 
| whitestats    = [optional. energy capacity and other stats written in white]
 
| greenstats    = [optional. uses, equip effects and other stats written in green]
 
| whitestats2  = [optional. any stats written in white, below the green section]
 
| value        =
 
|
 
|armor-only attributes:
 
| resistances  = [multiple lines, each intended with ":"]
 
| encumbrance  = n%
 
|
 
|blueprint-only attributes:
 
| description2  = [description on the crafting recipe]
 
| component1    = a component!
 
| component2    = [optional]
 
| component3    = [optional]
 
| component4    = [optional]
 
| optional1    = [optional]
 
| diffmod1      = [difficulty modifier for first optional component]
 
| optional2    = [optional]
 
| diffmod2      = [difficulty modifier for second optional component]
 
| optional3    = [optional]
 
| diffmod3      = [difficulty modifier for third optional component]
 
|
 
|component-only attributes:
 
| quality      = [optional]
 
| skillsreq    = [multiple lines, intended with ":"]
 
|
 
|weapon-only attributes:
 
| damage        = 1
 
| impactspeed  = [accepted values: Very Low, Low, Medium, High, Very High]
 
| ap            = 2
 
| range        = 3
 
| precision    = [optional]
 
| burstprec.    = [optional]
 
| cqprec.      = [optional]
 
| moveprec.    = [optional]
 
| critchance    = 4
 
| minstr        = [optional]
 
| minskill      = [optional]
 
| ammotype      = [optional]
 
| magcap        = [optional]
 
| energy/shot  = [optional]
 
| energy        = [optional]
 
}}
 

Latest revision as of 02:46, 13 October 2017