Difference between revisions of "Template:ClassInfobox"
From EncyclopAtys
(Created page with '{| class="infobox" style="width:100%" |- class="hiddenStructure{{{image|}}}" ! rowspan="4" |[[image:{{{image}}}|120px]] | colspan="2" | '''{{{Race}}}''' |- class="hiddenStructure...') |
m |
||
| (9 intermediate revisions by 3 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|}}}" | ||
| − | ! rowspan="4" |[[image:{{{image}}}|120px]] | + | ! rowspan="4" |[[image:{{{image}}}|left|120px]] |
| colspan="2" | '''{{{Race}}}''' | | colspan="2" | '''{{{Race}}}''' | ||
|- class="hiddenStructure{{{Locale|}}}" | |- class="hiddenStructure{{{Locale|}}}" | ||
| 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> | ||
Latest revision as of 00:52, 22 August 2014
| {{{Race}}} |
|
|---|---|
| Description: | {{{Description}}} |
Usage
{{ClassInfoBox
|image=
|race=
|Locale=
|Faction=
|Description=
}}