Difference between revisions of "Template:Hero Infobox"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
Line 1: Line 1:
<onlyinclude>{| class="infobox" style="background-color:#333; border-radius: 10px; border: solid 1px #000; padding:3px; padding-right:1px;margin: 0 0 5px; 5px;"
+
{| class="infobox" style="font-size:89%; width:{{{width|23em}}}; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;"
 
|-
 
|-
! class="infobox-header" colspan="2" style="background-color:#306089; padding:7px; border-top-left-radius:5px;border-top-right-radius:5px;" | <center>{{{title|''Unknown''}}}</center>
+
! colspan="3" style="background-color: #f2f2f2; color: #063B5E; font-size:120%; padding:0.5em;" | <div style="line-height:17px;">{{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}{{#if:{{{namesub|}}}|<br><span style="color: #f2f2f2; font-size:80%;">(''{{{namesub|}}}'')</span>}}</div>
 
|-
 
|-
{{#if: {{{image|}}} |
+
! colspan="3" | {{#if:{{{imagealt|}}}|{{{imagealt}}}|[[File:{{#if:{{{image|}}}|{{{image}}}|{{#if:{{{name|}}}|{{{name}}}.png|{{BASEPAGENAME}}.png}}}}]]}}
{{!}} class="infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]]
 
| }}
 
 
|-
 
|-
{{#if: {{{imagecaption|}}} |
+
! colspan="3" style="background-color: #f2f2f2; color: #063B5E; padding:0em;" | Information
{{!}} class="infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
 
| }}
 
 
|-
 
|-
! colspan="2" style="background-color:#306089; padding:5px;" | <center>'''<div class="infobox-section">Info</div>'''</center>
+
| style="width:35%" |
{{#if: {{{type|}}} |
+
| style="width:40%" |
{{{type}}}
+
| style="width:25%" |
| }}
 
 
|-
 
|-
{{#if: {{{defense|}}} |
+
{{#if: {{{damage|}}}|
{{{defense}}}
+
{{!}} '''Damage'''
| }}
+
{{!}} colspan="2" {{!}} {{{damage|}}} }}
|-
+
|}
|- style="font-size:0; line-height:0;"
 
! style="width:50%; padding:0" |
 
! style="width:50%; padding:0" |
 
|}</onlyinclude>
 

Revision as of 12:02, 19 August 2015

Hero Infobox
File:Hero Infobox.png
Information