Difference between revisions of "Template:ClassInfobox"

From EncyclopAtys

Jump to: navigation, search
m
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{| class="infobox" border="0" style="width:100%;"
 +
|-
 +
{{#if: {{{image|}}} | ! style="width:200px;" rowspan="4" {{!}} [[image:{{{image}}}|left|200px]] |}}
 +
! align="left" | '''{{{Race}}}'''
 +
! style="width:100%" | <!-- pushes the captions to the left -->
 +
{{#if: {{{Locale|}}} | {{!}}-
 +
!align="left" {{!}} '''Locale:'''
 +
{{!}} {{{Locale|}}} |  }}
 +
{{#if: {{{Faction|}}} | {{!}}-
 +
!align="left" {{!}} '''Faction:'''
 +
{{!}} {{{Faction}}} |  }}
 +
|-
 +
! align="left" | '''Description:'''
 +
| {{{Description}}}
 +
|}<noinclude>
 +
{{clear}}
 +
==Usage==
 +
<pre>
 +
{{ClassInfoBox
 +
|image=
 +
|race=
 +
|Locale=
 +
|Faction=
 +
|Description=
 +
}}
 +
</pre>
 +
[[Category: Infobox templates|ClassInfoBox]]
 +
 +
<!--
 +
Old template for future reference
 +
 +
Old template did not work properly because no amount of line breaks were detected after the template (still a problem) and secondly because it did not push the contents to the left, making the content be off-center unless a long description is given.
 +
 
{| class="infobox" style="width:100%"
 
{| class="infobox" style="width:100%"
 
|- class="hiddenStructure{{{image|}}}"
 
|- class="hiddenStructure{{{image|}}}"
Line 11: Line 44:
 
|- class="hiddenStructure{{{Description|}}}"
 
|- class="hiddenStructure{{{Description|}}}"
 
!align="left" style="width:100px" | '''Summary:'''
 
!align="left" style="width:100px" | '''Summary:'''
| {{{Description}}}
+
| {{{Description}}} -->
|}<noinclude>
+
 
[[Category: Infobox templates|ClassInfoBox]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:52, 22 August 2014

{{{Race}}}


Description: {{{Description}}}


Usage

{{ClassInfoBox
|image=
|race=
|Locale=
|Faction=
|Description=
}}