Difference between revisions of "Template:Characterbox"

From Ouroboros Portal
Jump to: navigation, search
(cleanup attempt (going for function over asthetics on first pass))
Line 1: Line 1:
 
{| class="infobox" style="width: 250px; text-align: left; font-size: 70%; background-color: 778FE1; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
 
{| class="infobox" style="width: 250px; text-align: left; font-size: 70%; background-color: 778FE1; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
|-
+
!-
! style="background: cedff2;font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid ; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" |{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">{{#if: {{#pos:{{{image}}}|mage:}} |{{{image}}}|[[Image:{{{image}}}]]}} | [[Image:blankperson.jpg]] }}
+
!style="background: cedff2;font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid ; padding: 2px; -moz-border-radius:10px;" align="center" colspan=2
|-
+
!{{#if: {{{image|}}}
{{#if: {{{origin|}}} | <tr> <th>Origin</th> <td>''{{#if: {{#pos:{{{origin}}}|pisode:}} |{{{origin}}}|{{#ifexist: {{{origin}}} | [[Origin:{{{origin}}}|{{{origin}}}]] | {{{origin}}} }}}}''</td> </tr>}}<!--
+
|[[File:{{{image}}}]]
-->{{#if: {{{archetype|}}} | <tr> <th>archetype</th> <td>''{{#if: {{#pos:{{{archetype}}}|pisode:}} |{{{archetype}}}|{{#ifexist: {{{archetype}}} | [[Archetype:{{{archetype}}}|{{{archetype}}}]] | {{{archetype}}} }}}}''</td> </tr>}}
+
|[[Image:blankperson.jpg]]
|-
+
}}
! style="background: cedff2; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #778FE1; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | Character details
+
!-
{{#if: {{{primary|}}} | <tr> <th>{{#if: {{#pos:{{{primary}}}|,}} | Primary&nbsp;Powerset }}</th> <td>{{{primary}}}</td> </tr>}}<!--
+
!style="background: cedff2; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #778FE1; padding: 2px; -moz-border-radius:10px;" align="center" colspan=2 ! Character Details
-->{{#if: {{{secondary|}}} | <tr> <th>{{#if: {{#pos:{{{secondary}}}|,}} | Secondary&nbsp;Powerset }}</th> <td>{{{secondary}}}</td> </tr>}}<!--
+
{{#if: {{{origin|}}}
-->{{#if: {{{other|}}} | <tr> <th>{{#if: {{#pos:{{{other}}}|,}} | Other&nbsp;powers  }}</th> <td>{{{other}}}</td> </tr>}}<!--
+
|!-
-->{{#if: {{{formal name|}}} | <tr> <th>Formal&nbsp;name</th> <td>{{{formal name}}}</td> </tr>}}<!--
+
!'''Origin'''!{{{origin}}}
-->{{#if: {{{gender|}}} | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch:{{lc:{{{gender|}}}}} | f | female=[[Image:Venus_symbol_red.png|Female]] | m | male=[[Image:Mars_symbol_blue.png|Male]] | {{{gender}}} }}</td> </tr>}}
+
}}
<!--
+
{{#if: {{{archetype|}}}
-->{{#if: {{{supergroup|}}} | <tr> <th>{{#if: {{#pos:{{{supergroup}}}|,}} | Supergroups | Supergroup }}</th> <td>{{{Supergroup}}}</td> </tr>}}
+
|!-
 +
!'''Archetype'''!{{{archetype}}}
 +
}}
 +
{{#if: {{{primary|}}}
 +
|!-
 +
!'''Primary'''!{{{primary}}}
 +
}}
 +
{{#if: {{{secondary|}}}
 +
|!-
 +
!'''Secondary'''!{{{secondary}}}
 +
}}
 +
{{#if: {{{other|}}}
 +
|!-
 +
!'''Other'''!{{{other}}}
 +
}}
 +
{{#if: {{{formal|}}}
 +
|!-
 +
!'''Formal Name'''!{{{formal}}}
 +
}}
 +
{{#if: {{{gender|}}}
 +
|!-
 +
!'''Gender'''!{{{gender}}}
 +
}}
 +
{{#if: {{{supergroup|}}}
 +
|!-
 +
!'''Supergroup'''!{{{supergroup}}}
 +
}}
 
|}
 
|}
 
 
<noinclude>
 
 
==Usage==
 
Produces a formatted sidebar for character pages.  See the formatted box below for a blank template for use in articles.
 
 
 
{| style="background: transparent;"
 
|<pre>{{Character box
 
| name =
 
| image = <!-- Image of the character. -->
 
| caption = <!-- Caption for the image. -->
 
| origin =
 
| archetype =
 
| primary =
 
| secondary =
 
| other Powers =
 
| formal name = <!-- Full formal name of the character. -->
 
| gender = <!-- 'Male' or 'Female' will be replaced by the corresponding icon -->
 
| Supergroup =
 
}}</pre>
 
|}
 
 
</noinclude>
 

Revision as of 20:37, 1 June 2009

- style="background: cedff2;font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid ; padding: 2px; -moz-border-radius:10px;" align="center" colspan=2 File:Blankperson.jpg - style="background: cedff2; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #778FE1; padding: 2px; -moz-border-radius:10px;" align="center" colspan=2 ! Character Details