Jump to content

Template:Infobox character: Difference between revisions

From Worm Wiki
Default (talk | contribs)
This needs an update
 
Valravn (talk | contribs)
No edit summary
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px;"
{| class="infobox" style="font-size:89%; width:300px;"
|-
|-  
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
|- style="text-align:center;"
| colspan="2" style="padding:0.5em;" | [[{{{image|File:Placeholder person.png}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
|-
! colspan="2" style="background-color:#3366CC; color:#ffffff;" | Vital statistics
|-
| style="width:30%;" | '''Title'''
| style="width:70%;" | {{{title}}}
|-
|-
| '''Gender'''
{{#if: {{{civname|}}} | {{!}} '''Civilian Name''' {{!!}} {{{civname}}} }}
| {{{gender}}}
|-
|-
| '''Race'''
{{#if: {{{alias|}}} | {{!}} '''Aliases''' {{!!}} {{{alias}}} }}
| {{{race}}}
|-
|-
| '''Faction'''
{{#if: {{{designation|}}} | {{!}} '''Designation''' {{!!}} {{{designation}}} }}
| {{{faction}}}
|-
|-
| '''Health'''
{{#if: {{{side|}}} | {{!}} '''Side''' {{!!}} {{{side}}} }}
| {{{health}}}
|-
|-
| '''Level'''
{{#if: {{{team|}}} | {{!}} '''Teams''' {{!!}} {{{team}}} }}
| {{{level}}}
|-
|-
| '''Status'''
{{#if: {{{relations|}}} | {{!}} '''Relations''' {{!!}} {{{relations}}} }}
| {{{status}}}
|-
|-
| '''Location'''
| {{{location}}}
|}<noinclude><br style="clear:both;" />
|}<noinclude><br style="clear:both;" />
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Revision as of 03:56, May 26, 2012

{{#if: | | Civilian Name || {{{civname}}} }} {{#if: | | Aliases || {{{alias}}} }} {{#if: | | Designation || {{{designation}}} }} {{#if: | | Side || {{{side}}} }} {{#if: | | Teams || {{{team}}} }} {{#if: | | Relations || {{{relations}}} }}
Infobox character


Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to create a character infobox.
Syntax
Type {{infobox character{{#ifeq: ...|---|||<...>}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}}} somewhere, with parameters as shown below.
Sample output
{{infobox character
| name        = Dragon
| alias       = Dragon
| civname     = None
| gender       = Female
| classification = [[Tinker]]
| align       = Hero
| status      = Active
| team        = [[The Guild]] <br/>[[The Protectorate]] (honorary)
| location    = Vancouver, Canada
| relations   = [[Andrew Richter]] (creator, deceased)
}}

Results in...

{{#if: None | | Civilian Name || None }} {{#if: Dragon | | Aliases || Dragon }} {{#if: | | Designation || {{{designation}}} }} {{#if: | | Side || {{{side}}} }} {{#if: The Guild
The Protectorate (honorary) | | Teams || The Guild
The Protectorate (honorary) }} {{#if: Andrew Richter (creator, deceased) | | Relations || Andrew Richter (creator, deceased) }}
Dragon