Difference between revisions of "Template:StatBox"

From Fallen Sword Wiki
Jump to: navigation, search
(use the dontedittemplate-template)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| cellpadding="0" cellspacing="0"
+
<includeonly>{| cellpadding="0" cellspacing="0" style="background-color:transparent;"
| align="center" valign="middle" width="60px" height="90" |
+
| align="center" valign="middle" width="60px" height="90" |<div style="position:relative; left:0px; top:0px; background-color:transparent;height:90px;width:60px;">http://66.7.192.165/inventory/2x3.gif<div style="position:absolute; left:0px; top:0px; background-color:transparent;">
<div style="position:relative; left:0px; top:0px; background:transparent;">
+
{| style="background-color:transparent" cellpadding="0" cellspacing="0"
http://66.7.192.165/inventory/2x3.gif
+
<div style="position:absolute; left:0px; top:0px; background:transparent;">
+
{| style="background:transparent" cellpadding="0" cellspacing="0"
+
 
| align="center" valign="middle" width="60px" height="90" | <span class="plainlinks">[{{fullurl:{{{name|{{FULLPAGENAME}}}}}}} {{{image|http://wiki.fallensword.com/images/f/f3/Invisiblespacer.gif}}}]</span>
 
| align="center" valign="middle" width="60px" height="90" | <span class="plainlinks">[{{fullurl:{{{name|{{FULLPAGENAME}}}}}}} {{{image|http://wiki.fallensword.com/images/f/f3/Invisiblespacer.gif}}}]</span>
 
|}
 
|}
 
</div>
 
</div>
<div style="position:absolute; left:0px; top:0px; background:transparent;">
+
<div style="position:absolute; left:0px; top:0px; background-color:transparent;">
{| width="{{{width|460px}}}" cellspacing="2" style="{{{table-css|background:transparent;font-size:7pt;color:#fff;}}}" cellpadding="0" cellspacing="1" class="collapsible collapsed"
+
{| width="{{{width|460px}}}" cellspacing="2" style="{{{table-css|background-color:transparent;font-size:7pt;color:#fff;}}}" cellpadding="0" cellspacing="1" class="collapsible collapsed"
 
! align="center" valign="top" width="60px" | &nbsp;
 
! align="center" valign="top" width="60px" | &nbsp;
 
! align="center" valign="top" width="{{#expr:{{{width|460}}}-60}}px"  | &nbsp;
 
! align="center" valign="top" width="{{#expr:{{{width|460}}}-60}}px"  | &nbsp;
Line 24: Line 21:
 
| epic = #23f711;
 
| epic = #23f711;
 
|  
 
|  
}}">{{{name}}}]]'''</span><br> | Unknown Item<br> }}{{{rarity}}}{{#if: {{{craft|0}}} <> 0 | &nbsp;-&nbsp;{{#switch: {{lc:{{{craft}}}}}
+
}}">{{{name}}}]]'''</span><br> | Unknown Item<br> }}{{{rarity}}}{{#if: {{{craft|0}}} <> 0 | {{#switch: {{lc:{{{craft}}}}}
| uncrafted = <span style="color:#999999;">Uncrafted</span>
+
| uncrafted = &nbsp;-&nbsp;<span style="color:#999999;">Uncrafted</span>
| very poor = <span style="color:#990000;">Very Poor</span>
+
| very poor = &nbsp;-&nbsp;<span style="color:#990000;">Very Poor</span>
| poor = <span style="color:#bb0000;">Poor</span>
+
| poor = &nbsp;-&nbsp;<span style="color:#bb0000;">Poor</span>
| average = <span style="color:#dd0000;">Average</span>
+
| average = &nbsp;-&nbsp;<span style="color:#dd0000;">Average</span>
| good = <span style="color:#dd3300;">Good</span>
+
| good = &nbsp;-&nbsp;<span style="color:#dd3300;">Good</span>
| very good = <span style="color:#dd6600;">Very Good</span>
+
| very good = &nbsp;-&nbsp;<span style="color:#dd6600;">Very Good</span>
| excellent = <span style="color:#dd9900;">Excellent</span>
+
| excellent = &nbsp;-&nbsp;<span style="color:#dd9900;">Excellent</span>
| perfect = <span style="color:#dddd00;">Perfect</span>
+
| perfect = &nbsp;-&nbsp;<span style="color:#dddd00;">Perfect</span>
 
|  
 
|  
 
}} | }}<br>
 
}} | }}<br>
 
{| width="100%" cellpadding="0" cellspacing="0" style="font-size:8pt;background-color:transparent; border-top:1px solid #666666; border-bottom:1px solid #666666;"
 
{| width="100%" cellpadding="0" cellspacing="0" style="font-size:8pt;background-color:transparent; border-top:1px solid #666666; border-bottom:1px solid #666666;"
| valign="top" width="{{#ifeq: {{{set}}} | {{#expr: ({{{width|460}}}-60)/3}}px | {{#expr: ({{{width|460}}}-60)/2}}px }}" style="background-color:transparent;margin-left:3px;margin-right:3px;" |
+
| valign="top" width="{{#ifeq: {{{set}}} | 33% | 50% }}" style="background-color:transparent;margin-left:3px;margin-right:3px;" |
 
{| width="95%" cellspacing="0" cellpadding="0" style="background-color:transparent;font-size:8pt;color:#fff"
 
{| width="95%" cellspacing="0" cellpadding="0" style="background-color:transparent;font-size:8pt;color:#fff"
 
| align="center" colspan="2" | Bonuses
 
| align="center" colspan="2" | Bonuses
Line 49: Line 46:
 
{{#ifeq: {{{stat-9|0}}} | 0 | {{#ifeq: {{{stat-8|0}}} | 0 ||{{!end}}}} | {{StatBoxStat|stat={{{stat-9|}}}|value={{{stat-9-value|0}}}|stat-name-style=color:#999999;}}
 
{{#ifeq: {{{stat-9|0}}} | 0 | {{#ifeq: {{{stat-8|0}}} | 0 ||{{!end}}}} | {{StatBoxStat|stat={{{stat-9|}}}|value={{{stat-9-value|0}}}|stat-name-style=color:#999999;}}
 
{{#ifeq: {{{stat-9|0}}} | 0 ||{{!end}}}} }}}}}}}}}}}}}}}}}}
 
{{#ifeq: {{{stat-9|0}}} | 0 ||{{!end}}}} }}}}}}}}}}}}}}}}}}
| valign="top" width="{{#ifeq: {{{set}}} | {{#expr: ({{{width|460}}}-60)/3}}px | {{#expr: ({{{width|460}}}-60)/2}}px }}" style="background-color:transparent;margin-left:3px;margin-right:3px;" |
+
| valign="top" width="{{#ifeq: {{{set}}} | 33% | 50% }}" style="background-color:transparent;margin-left:3px;margin-right:3px;" |
 
{| width="95%" cellspacing="0" cellpadding="0" style="background-color:transparent;font-size:8pt;color:#fff"
 
{| width="95%" cellspacing="0" cellpadding="0" style="background-color:transparent;font-size:8pt;color:#fff"
 
| align="center" colspan="2" | Enhancements
 
| align="center" colspan="2" | Enhancements
Line 79: Line 76:
 
{{#ifeq: {{{enhancement-25|0}}} | 0 | {{#ifeq: {{{enhancement-24|0}}} | 0 ||{{!end}}}} | {{StatBoxStat|stat={{{enhancement-25|}}}|value={{{enhancement-25-value|0}}}|stat-name-style=color:#999999;}}
 
{{#ifeq: {{{enhancement-25|0}}} | 0 | {{#ifeq: {{{enhancement-24|0}}} | 0 ||{{!end}}}} | {{StatBoxStat|stat={{{enhancement-25|}}}|value={{{enhancement-25-value|0}}}|stat-name-style=color:#999999;}}
 
{{#ifeq: {{{enhancement-25|0}}} | 0 ||{{!end}}}} }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
 
{{#ifeq: {{{enhancement-25|0}}} | 0 ||{{!end}}}} }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
| align="center" width="{{#ifeq: {{{set}}} | {{#expr: ({{{width|460}}}-60)/3}}px | 0px }}" valign="top" style="background-color:transparent;text-align:center;" | {{#ifeq: {{{set|0}}} | 0 || <span style="color:#ffffff">Set Details</span><br>{{#ifeq: {{{set-item-1|No}}} | No || [[{{{set-item-1|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-2|No}}} | No || [[{{{set-item-2|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-3|No}}} | No || [[{{{set-item-3|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-4|No}}} | No || [[{{{set-item-4|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-5|No}}} | No || [[{{{set-item-5|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-6|No}}} | No || [[{{{set-item-6|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-7|No}}} | No || [[{{{set-item-7|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-8|No}}} | No || [[{{{set-item-8|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-9|No}}} | No || [[{{{set-item-9|{{none}}}}}]]}}}}
+
| align="center" width="{{#ifeq: {{{set}}} | 33% | 0px }}" valign="top" style="background-color:transparent;text-align:center;" | {{#ifeq: {{{set|0}}} | 0 || <span style="color:#ffffff">Set Details</span><br>{{#ifeq: {{{set-item-1|No}}} | No || [[{{{set-item-1|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-2|No}}} | No || [[{{{set-item-2|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-3|No}}} | No || [[{{{set-item-3|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-4|No}}} | No || [[{{{set-item-4|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-5|No}}} | No || [[{{{set-item-5|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-6|No}}} | No || [[{{{set-item-6|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-7|No}}} | No || [[{{{set-item-7|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-8|No}}} | No || [[{{{set-item-8|{{none}}}}}]]<br>}}{{#ifeq: {{{set-item-9|No}}} | No || [[{{{set-item-9|{{none}}}}}]]}}}}
 
|}
 
|}
 
|-
 
|-
Line 88: Line 85:
 
|-
 
|-
 
| align="left" | <span style="color:#999999;">Durability:</span>
 
| align="left" | <span style="color:#999999;">Durability:</span>
| align="right" | <span style="color:#ffffff;">{{{durability|0}}}</span>
+
| align="right" | <span style="color:#ffffff;">{{{durability-min|{{{durability|0}}}}}} <nowiki>/</nowiki> {{{durability|0}}}</span>
 
|}
 
|}
 
|-
 
|-
Line 105: Line 102:
 
</div></div>
 
</div></div>
 
-->
 
-->
|}
+
|}</includeonly><noinclude>{{DontEditTemplate}}
 
+
</includeonly><noinclude><center>
+
{| width="100%" style="border:3px dashed #f00;"
+
| align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Do not edit this page!
+
|-
+
| align="center" valign="middle" style="font-family:Verdana;font-weight:normal;" |
+
<small>If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there.</small>
+
|-
+
| align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Editing this page may cause the template to stop working properly for other pages currently using this template.
+
|}
+
</center>
+
  
 
== How to Use ==
 
== How to Use ==
Line 182: Line 168:
 
|rarity=
 
|rarity=
 
|craft=
 
|craft=
 +
|level=
 +
|durability=
 
|stat-1=
 
|stat-1=
 
|stat-1-value=
 
|stat-1-value=

Latest revision as of 20:23, 23 July 2009

Ambox_content.png Editing this template may cause all pages using it to stop working.
This is a template that is being used by many pages on the wiki. Changes made to this page is instantly applied to all these pages, and any editing mistake can break them. Do not edit the template unless you know what you are doing.
If you would like to make a customized version of this template for your own use, copy it to a new template and edit from there.


How to Use

This template allows you to shows an item and allows an a viewer to see the stats if they click [show]. This template is still in its early stages of development and more parameters or alternate templates may become available in the future.

Example Code
2x3.gif
2292.gif
{{StatBox
|image=http://66.7.192.165/items/2292.gif
|name=Blade of Vashku
|rarity=Unique
|craft=Perfect
|stat-1=Attack
|stat-1-value=3
|stat-2=Defense
|stat-2-value=897
|stat-3=Damage
|stat-3-value=56
|stat-4=Stamina Gain
|stat-4-value=8
|enhancement-1=Piercing Strike
|enhancement-1-value=45
|set=Vashku Set
|set-item-1=Blade of Vashku
|set-item-2=Armor of Vashku
|set-item-3=Shield of Vashku
|forge-level=3
|guild=Anathema
}}

*Stats shown above are for demonstration only and are not true for that specific item.

All Parameters

*As this template is improved, more parameters will be added to customize styles.

{{StatBox
|image=
|name=
|rarity=
|craft=
|level=
|durability=
|stat-1=
|stat-1-value=
|stat-2=
|stat-2-value=
|stat-3=
|stat-3-value=
|stat-4=
|stat-4-value=
|stat-5=
|stat-5-value=
|stat-6=
|stat-6-value=
|stat-7=
|stat-7-value=
|stat-8=
|stat-8-value=
|stat-9=
|stat-9-value=
|enhancement-1=
|enhancement-1-value=
|enhancement-2=
|enhancement-2-value=
|enhancement-3=
|enhancement-3-value=
|enhancement-4=
|enhancement-4-value=
|enhancement-5=
|enhancement-5-value=
|enhancement-6=
|enhancement-6-value=
|enhancement-7=
|enhancement-7-value=
|enhancement-8=
|enhancement-8-value=
|enhancement-9=
|enhancement-9-value=
|enhancement-10=
|enhancement-10-value=
|enhancement-11=
|enhancement-11-value=
|enhancement-12=
|enhancement-12-value=
|enhancement-13=
|enhancement-13-value=
|enhancement-14=
|enhancement-14-value=
|enhancement-15=
|enhancement-15-value=
|enhancement-16=
|enhancement-16-value=
|enhancement-17=
|enhancement-17-value=
|enhancement-18=
|enhancement-18-value=
|enhancement-19=
|enhancement-19-value=
|enhancement-20=
|enhancement-20-value=
|enhancement-21=
|enhancement-21-value=
|enhancement-22=
|enhancement-22-value=
|enhancement-23=
|enhancement-23-value=
|enhancement-24=
|enhancement-24-value=
|enhancement-25=
|enhancement-25-value=
|set=
|set-item-1=
|set-item-2=
|set-item-3=
|set-item-4=
|set-item-5=
|set-item-6=
|set-item-7=
|set-item-8=
|set-item-9=
|forge-level=
|guild=
}}