Jump to content

Template:Infobox character: Difference between revisions

From Worm Wiki
Valravn (talk | contribs)
No edit summary
Valravn (talk | contribs)
No edit summary
Line 10: Line 10:
{{#if: {{{gender|}}} | {{!}} '''Gender''' {{!!}} {{{gender}}} }}
{{#if: {{{gender|}}} | {{!}} '''Gender''' {{!!}} {{{gender}}} }}
|-
|-
{{#if: {{{designation|}}} | {{!}} '''Designation''' {{!!}} {{{designation}}} }}
{{#if: {{{classification|}}} | {{!}} '''Classification''' {{!!}} {{{classification}}} }}
|-
|-
{{#if: {{{align|}}} | {{!}} '''Alignment''' {{!!}} {{{align}}} }}
{{#if: {{{align|}}} | {{!}} '''Alignment''' {{!!}} {{{align}}} }}

Revision as of 05:09, May 26, 2012

{{#if: | | Civilian Name || {{{civname}}} }} {{#if: | | Aliases || {{{alias}}} }} {{#if: | | Gender || {{{gender}}} }} {{#if: | | Classification || {{{classification}}} }} {{#if: | | Alignment || {{{align}}} }} {{#if: | | Status || {{{status}}} }} {{#if: | | Location || {{{location}}} }} {{#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: Female | | Gender || Female }} {{#if: Tinker | | Classification || Tinker }} {{#if: Hero | | Alignment || Hero }} {{#if: Active | | Status || Active }} {{#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) }}
Dragon