Difference between revisions of "Template:StatBox"
Line 6: | Line 6: | ||
|} | |} | ||
</div><div style="position:absolute; left:0px; top:0px; background:transparent;"> | </div><div style="position:absolute; left:0px; top:0px; background:transparent;"> | ||
− | {| width=" | + | {| width="{{{width|200px}}}" style="background:transparent;{{{table-css|font-size:7pt;color:#fff;}}}" cellpadding="0" cellspacing="1" class="collapsible collapsed" |
! align="center" valign="middle" width="60px" | | ! align="center" valign="middle" width="60px" | | ||
− | ! align="center" valign="middle" width=" | + | ! align="center" valign="middle" width="140px" | |
− | + | ||
|- | |- | ||
| | | | ||
− | | align="center | + | | align="center" style="{{{title-css|background-color:#000;}}}" | <span style="{{{name-css|font-size:8pt;}}}">'''[[{{{name|}}}]]'''</span><br>Crafted: {{{craft|N/A}}} |
|- | |- | ||
| | | | ||
− | | align="left" width=" | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" width="125px" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[Attack]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{attack|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[Defense]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{defense|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[Armor]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{armor|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[HP]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{hp|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[Damage]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{damage|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[Stamina]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{stamina|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[Stamina Gain]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{stamina-gain|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[Gold Gain]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{gold-gain|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="left" style="background-color:#000; | + | | |
− | | align="right" style="background-color:#000; | + | {| cellspacing="0" cellpadding="0" style="color:#fff;" width="100%" |
+ | | align="left" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | [[XP Gain]]: | ||
+ | | align="right" style="{{{stat-css|background-color:#000;padding-left:5px;padding-right:5px;}}}" | <tt>{{formatnum:{{{xp-gain|0}}}}}</tt> | ||
+ | |} | ||
|- | |- | ||
| | | | ||
− | | align="center | + | | align="center" style="{{{bottom-css|background-color:#000;padding-bottom:5px;}}}" | Upgrade Level:<br>{{{HF|<nowiki>[none]</nowiki>}}} |
|} | |} | ||
</div></div> | </div></div> | ||
Line 107: | Line 133: | ||
|} | |} | ||
+ | |||
+ | == All Parameters == | ||
+ | {| width="100%" | ||
+ | ! List | ||
+ | ! Descriptions | ||
+ | |- | ||
+ | | width="25%" style="border:1px solid #aaa;" valign="top" |<pre>{{StatBox | ||
+ | |name= | ||
+ | |craft= | ||
+ | |image= | ||
+ | |attack= | ||
+ | |defense= | ||
+ | |armor= | ||
+ | |hp= | ||
+ | |damage= | ||
+ | |stamina= | ||
+ | |stamina-gain= | ||
+ | |gold-gain= | ||
+ | |xp-gain= | ||
+ | |HF= | ||
+ | |table-css= | ||
+ | |title-css= | ||
+ | |name-css= | ||
+ | |stat-css= | ||
+ | |bottom-css= | ||
+ | |width= | ||
+ | }}</pre> | ||
+ | | width="75%" style="border:1px solid #aaa;" | | ||
+ | '''name:''' This is the item name. Leaving it out will just leave that line blank. | ||
+ | |||
+ | '''craft:''' This is the item's crafted level. It defaults to <tt>N/A</tt>. | ||
+ | |||
+ | '''image:''' This is the item's image URL. Leaving it out will leave the statbox without an item. | ||
+ | |||
+ | {| width="100%" | ||
+ | | '''attack:'''<br>'''defense:'''<br>'''armor:'''<br>'''hp:'''<br>'''damage:'''<br>'''stamina:'''<br>'''stamina-gain:'''<br>'''gold-gain:'''<br>'''xp-gain:''' | ||
+ | | valign="top" | These are the item stats. Currently all of them will be listed in the template but leaving them out will default them to <tt>0</tt> | ||
+ | |} | ||
+ | |||
+ | '''HF:''' This is the item's hellforge level. It defaults to <tt>{{none}}</tt> | ||
+ | |||
+ | * <tt><nowiki>{{Hellforged1}}</nowiki></tt>: {{Hellforged1}} | ||
+ | * <tt><nowiki>{{Hellforged2}}</nowiki></tt>: {{Hellforged2}} | ||
+ | * <tt><nowiki>{{Hellforged3}}</nowiki></tt>: {{Hellforged3}} | ||
+ | * <tt><nowiki>{{Hellforged4}}</nowiki></tt>: {{Hellforged4}} | ||
+ | * <tt><nowiki>{{Hellforged5}}</nowiki></tt>: {{Hellforged5}} | ||
+ | |||
+ | '''table-css: Default: <tt>font-size:7pt;color:#fff;</tt> | ||
+ | |||
+ | '''title-css: Default: <tt>background-color:#000;</tt> | ||
+ | |||
+ | '''name-css: Default: <tt>font-size:8pt;</tt> | ||
+ | |||
+ | '''stat-css: Default: <tt>background-color:#000;padding-left:5px;padding-right:5px;</tt> | ||
+ | |||
+ | '''bottom-css: Default: <tt>background-color:#000;padding-bottom:5px;</tt> | ||
+ | |} | ||
+ | |||
+ | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 15:04, 26 August 2008
Do not edit this page! |
If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there. |
Editing this page may cause the template to stop working properly for other pages currently using this template. |
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 | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
All Parameters
|