Difference between revisions of "Template:Infobox Object"

From UnReal World Wiki
Jump to: navigation, search
m (Changed combat information to armor information for clothing)
 
(55 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px; vertical-align:top; text-align:left;" align="right"
+
{| class="infobox" align="right"  
! colspan="3" style="background-color:#307B30; color:#ffffff; font-size:120%; padding:1em; text-align:center;" | {{{name|{{PAGENAME}}}}}
+
! class="namebox bgimage9" colspan="3" | <span class="textshadow">{{{name|{{PAGENAME}}}}}</span>
 
|- style="text-align:center;"
 
|- style="text-align:center;"
| colspan="3" style="padding:0.5em;" | [[{{{image|Image:{{PAGENAME}}.png}}}]]<br/>''{{{caption| }}}''
+
| class="imagebox"  colspan="3" style="padding:0.5em" | [[{{{image|Image:{{PAGENAME}}.png}}}]]<br/>''{{{caption| }}}''
 +
|-
 +
! class="sectionbox" colspan="3" | Basic Info
 
|-
 
|-
! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" | Basic Info
 
|- style="vertical-align:top; text-align:left;"
 
 
| '''Cultures:'''
 
| '''Cultures:'''
| {{{cultures}}}
+
| style="width: 60%;"| {{{cultures}}}
 
|-
 
|-
 
| '''Weight:'''
 
| '''Weight:'''
Line 17: Line 17:
 
| '''Flammable:'''
 
| '''Flammable:'''
 
| {{{flammable}}}
 
| {{{flammable}}}
 +
|-
 
{{#ifeq: {{{flammable}}} | Yes |  
 
{{#ifeq: {{{flammable}}} | Yes |  
    {{$}}
 
 
     {{!}} '''Burn Duration:'''
 
     {{!}} '''Burn Duration:'''
 
     {{!}} {{{burnTime}}} |
 
     {{!}} {{{burnTime}}} |
 +
}}
 +
{{#ifeq: {{{clothing}}} | Yes |
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Clothing Type:''' 
 +
  {{!}} {{{clothingType}}}
 +
  {{$}}
 +
  {{!}} '''Body Part:''' 
 +
  {{!}} {{{bodyPart}}}
 +
  {{$}}
 
}}
 
}}
 
|-
 
|-
| '''Weapon:'''
+
{{#if: {{#ask: [[requires::{{PAGENAME}}]]}}
| {{{weapon}}}
+
| {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
|-
+
    | {{!}} colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}, and {{#ask: [[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
| '''Craftable:'''
+
      {{!}}-
| {{{craftable}}}
+
    | {{!}} '''Required By:'''
 +
      {{!}}  colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}
 +
      {{!}}-
 +
  }}
 +
| {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
 +
    | {{!}} '''Required By:'''
 +
      {{!}}  colspan=2 {{!}} {{#ask:[[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
 +
      {{!}}-
 +
  }}
 +
}}
 
|-
 
|-
 
{{#ifeq: {{{weapon}}} | Yes |
 
{{#ifeq: {{{weapon}}} | Yes |
   ! colspan="3" style="background-color:#307B30; color:#ffffff; text-align:center;" {{!}} Combat Information
+
   ! class="sectionbox" colspan="3" {{!}} Combat Information
 
   {{$}} style="vertical-align:top;"
 
   {{$}} style="vertical-align:top;"
 
   {{!}} '''Skill Required:'''   
 
   {{!}} '''Skill Required:'''   
Line 52: Line 70:
 
   |
 
   |
 
}}
 
}}
{{#if: {{{Craftable}}} | Yes |
+
{{#ifeq: {{{clothing}}} | Yes |
   ! colspan="3" style="background-color:#307B30; color:#ffffff; text-align:center;" {{!}} Crafting Information
+
<!-- Add material protection values here, so when they change, all the individual pages don't need to be edited -->
 +
{{#switch: {{{Material}}}
 +
| Fur =   ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 5
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 3
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 3
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 5
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 3.3
 +
  {{$}}
 +
| Wool =    ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 4
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 2
 +
  {{$}}
 +
| Leather =    ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 2
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 3
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 3
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 3
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 2.2
 +
  {{$}}
 +
| Nettle|Linen =    ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 3
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 0
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 0
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 1.3
 +
  {{$}}
 +
| Iron =    ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 2
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 9
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 10
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 6
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 8
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 7
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 7
 +
  {{$}}
 +
| Lamellar =    ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 2
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 8
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 9
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 4
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 5
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 5
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 5.5
 +
  {{$}}
 +
| Mail =    ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 2
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 7
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 8
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 5
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 4.3
 +
  {{$}}
 +
| Birch =    ! class="sectionbox" colspan="3" {{!}} Armor information
 +
  {{$}} style="vertical-align:top;"
 +
  {{!}} '''Warmth:'''
 +
  {{!}} 1
 +
  {{$}} 
 +
  {{!}} '''Tear Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Edge Protection:'''
 +
  {{!}} 2
 +
  {{$}}
 +
  {{!}} '''Squeeze Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Point Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Blunt Protection:'''
 +
  {{!}} 1
 +
  {{$}}
 +
  {{!}} '''Average:'''
 +
  {{!}} 1.3
 +
  {{$}}
 +
|
 +
}}
 +
}}
 +
{{#ifeq: {{{craftable}}} | Yes |
 +
  ! class="sectionbox" colspan="3" {{!}} Crafting Information
 
   {{$}} style="vertical-align:top;"
 
   {{$}} style="vertical-align:top;"
 
   {{!}} '''Skills Required:'''
 
   {{!}} '''Skills Required:'''
Line 60: Line 268:
 
   {{!}} '''Tools Required:'''
 
   {{!}} '''Tools Required:'''
 
   {{!}} {{{tools}}}
 
   {{!}} {{{tools}}}
   {{$}}
+
   {{$}}
 +
  {{!}} '''Prefers:'''
 +
  {{!}} {{{prefers}}}
 +
  {{$}}
 
   {{!}} '''Ingredients:'''
 
   {{!}} '''Ingredients:'''
 
   {{!}} {{{ingredients}}}
 
   {{!}} {{{ingredients}}}
 
   {{$}}
 
   {{$}}
   {{!}} '''Initial Craft Time:'''
+
   {{!}} '''Craft Time:'''
 
   {{!}} {{{craftTime}}}
 
   {{!}} {{{craftTime}}}
 
   {{$}}  
 
   {{$}}  
Line 72: Line 283:
 
|
 
|
 
}}
 
}}
{{#if: {{#ask: [[requires::{{PAGENAME}}]]}}
+
|}
| {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
+
[[Category:Object]]
    | {{!}} colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}, and {{#ask: [[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
+
{{#ifeq: {{{weapon}}} | Yes |
       {{!}}-
+
  [[Category:Weapon]]
    | {{!}} '''Required By:'''
+
  {{#switch: {{{combatSkill}}}
       {{!}} colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}
+
      | [[requires::Axe_(Skill){{!}}Axe]]
       {{!}}-
+
      | [[requires::Axe (Skill){{!}}Axe]] = [[Category:Axe]]
  }}
+
      | [[requires::Sword_(Skill){{!}}Sword]]
| {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
+
      | [[requires::Sword (Skill){{!}}Sword]] = [[Category:Sword]]
    | {{!}} '''Required By:'''
+
       | [[requires::Dagger_(Skill){{!}}Dagger]]
       {{!}} colspan=2 {{!}} {{#ask:[[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
+
      | [[requires::Dagger (Skill){{!}}Dagger]] = [[Category:Dagger]]
       {{!}}-
+
       | [[requires::Bow_(Skill){{!}}Bow]]
 +
      | [[requires::Bow (Skill){{!}}Bow]] = [[Category:Bow]]
 +
       | [[requires::Spear_(Skill){{!}}Spear]]
 +
      | [[requires::Spear (Skill){{!}}Spear]] = [[Category:Spear]]
 +
      | [[requires::Flail_(Skill){{!}}Flail]]
 +
       | [[requires::Flail (Skill){{!}}Flail]] = [[Category:Flail]]
 +
      | [[requires::Club_(Skill){{!}}Club]]
 +
       | [[requires::Club (Skill){{!}}Club]] = [[Category:Club]]
 
   }}
 
   }}
 
}}
 
}}
|}
+
{{#ifeq: {{{clothing}}} | Yes | [[Category:Clothing]] | }}

Latest revision as of 01:22, 16 February 2017

Infobox Object
File:Infobox Object.png
Basic Info
Cultures: {{{cultures}}}
Weight: {{{weight}}}
Trade Value: {{{value}}}
Flammable: {{{flammable}}}