Jump to content

Template:Infobox character: Difference between revisions

From Worm Wiki
Valravn (talk | contribs)
No edit summary
Valravn (talk | contribs)
Undo revision 4471 by Valravn (talk)
Line 1: Line 1:
{{infobox
{| class="infobox" style="font-size:89%; width:300px;"
|above  = {{{name|}}}
|-
|label1  = Civilian Name
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
|data1  = {{{civname|}}}
|- style="text-align:center;"
|label2  = Alias(es)
|-
|data2  = {{{alias|}}}
{{#if: {{{civname|}}} | {{!}} '''Civilian Name''' {{!!}} {{{civname}}} }}
|label3  = Designation(s)
|-
|data3  = {{{designation|}}}
{{#if: {{{alias|}}} | {{!}} '''Aliases''' {{!!}} {{{alias}}} }}
|label4  = Alignment
|-
|data4  = {{{align|}}}
{{#if: {{{designation|}}} | {{!}} '''Designation''' {{!!}} {{{designation}}} }}
|label5  = Status
|-
|data5  = {{{status|}}}
{{#if: {{{align|}}} | {{!}} '''Alignment''' {{!!}} {{{align}}} }}
|label6  = Team(s)
|-
|data6  = {{{team|}}}
{{#if: {{{location|}}} | {{!}} '''Location''' {{!!}} {{{location}}} }}
|label7  = Location
|-
|data7  = {{{location|}}}
{{#if: {{{team|}}} | {{!}} '''Teams''' {{!!}} {{{team}}} }}
|label8  = {{#if:{{{relations|}}}|Relations}}
|- style="text-align:top;"
|data8  = {{{relations|}}}
|-
 
{{#if: {{{relations|}}} | {{!}} '''Relations''' {{!!}} {{{relations}}} }}
|abovestyle  = font-size: large;
|-
|bodystyle    = width: 23em; padding: 0em;
{{#if: {{{status|}}} | {{!}} '''Status''' {{!!}} {{{status}}} }}
|captionstyle = color: #FFFF00;
|-
|labelstyle  = padding-right: 0.2em;
|}<noinclude><br style="clear:both;" />
}}<noinclude><br style="clear:both;" />
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Revision as of 04:30, May 26, 2012

{{#if: | | Civilian Name || {{{civname}}} }} {{#if: | | Aliases || {{{alias}}} }} {{#if: | | Designation || {{{designation}}} }} {{#if: | | Alignment || {{{align}}} }} {{#if: | | Location || {{{location}}} }} {{#if: | | Teams || {{{team}}} }} {{#if: | | Relations || {{{relations}}} }} {{#if: | | Status || {{{status}}} }}
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: Hero | | Alignment || Hero }} {{#if: Vancouver, Canada | | Location || Vancouver, Canada }} {{#if: The Guild
The Protectorate (honorary) | | Teams || The Guild
The Protectorate (honorary) }} {{#if: Andrew Richter (creator, deceased) | | Relations || Andrew Richter (creator, deceased) }} {{#if: Active | | Status || Active }}
Dragon