Difference between revisions of "Template:Hero Infobox"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:{{{boxwidth|21em}}}; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;"
+
<onlyinclude>{| class="infobox" style="background-color:#333; border-radius: 10px; border: solid 1px #000; padding:3px; padding-right:1px;margin: 0 0 5px; 5px;"
 
|-
 
|-
! colspan="2" style="background-color: #E4F0F7; color: #063B5E; font-size:120%; padding:0.5em;" | {{{name|{{BASEPAGENAME}}}}}
+
! 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>
|- style="text-align:center"
 
| colspan="2" style="padding:0.5em; position:relative" | <div style="position:absolute; right:10px; bottom:0;">  
 
{| style="text-align:center; background:none; "
 
| {{#if:{{{auto|}}}|<span title="{{#var:autotext}}">[[File:Auto icon.png|18px|link=Autoswing|{{#var:autotext}}]]</span>}}
 
 
|-
 
|-
| {{#iferror:{{#expr:{{{stack|}}}>0}}|<!--nothing-->|<span title="Max Stack: {{{stack|}}}">{{stack|{{{stack|}}}}}</span>}}  
+
{{#if: {{{image|}}} |
|}</div>
+
{{!}} class="infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]]
 +
| }}
 
|-
 
|-
{{#if:{{{image<includeonly>|</includeonly>}}} |
+
{{#if: {{{imagecaption|}}} |
{{!}} colspan="2" style="text-align:center;background-color:alpha;" {{!}}{{{image}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
+
{{!}} class="infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
{{!}}-
+
| }}
}}
 
! colspan="2" style="background-color: #E4F0F7; color: #063B5E; padding:0em;" | {{#if: {{{type|}}}| Info }}
 
 
|-
 
|-
{{#if: {{{type|}}}|
+
! colspan="2" style="background-color:#306089; padding:5px;" | <center>'''<div class="infobox-section">Info</div>'''</center>
{{!}} style="width:100px" {{!}} '''Type'''
+
{{#if: {{{type|}}} |
{{!}}  {{#ifexist: {{{type}}} | [[{{{type}}}]] | {{{type}}} }} {{
+
{{{type}}}
#if: {{{type2|}}} | &#32;&ndash;&#32;{{#ifexist: {{{type2}}} | [[{{{type2}}}]] | {{{type2}}} }} }} }}
+
| }}
|}
+
|-
 +
{{#if: {{{defense|}}} |
 +
{{{defense}}}
 +
| }}
 +
|-
 +
|- style="font-size:0; line-height:0;"
 +
! style="width:50%; padding:0" |
 +
! style="width:50%; padding:0" |
 +
|}</onlyinclude>

Revision as of 11:30, 19 August 2015

Unknown
Info