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

Revision as of 04:27, May 26, 2012

No Title

{{#if: |

[[{{{image}}}|250px]]

}}

No Title

No information {{#if: |

{{{Row 2 title}}}

No information {{#if: |

{{{Row 3 title}}}

No information {{#if: |

{{{Row 4 title}}}

No information {{#if: |

{{{Row 5 title}}}

No information {{#if: |

{{{Row 6 title}}}

No information {{#if: |

{{{Row 7 title}}}

No information {{#if: |

{{{Row 8 title}}}

No information {{#if: |

{{{Row 9 title}}}

No information {{#if: |

{{{Row 10 title}}}

No information {{#if: |

Too many parameters

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}


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...


No Title

{{#if: |

[[{{{image}}}|250px]]

}}

No Title

No information {{#if: |

{{{Row 2 title}}}

No information {{#if: |

{{{Row 3 title}}}

No information {{#if: |

{{{Row 4 title}}}

No information {{#if: |

{{{Row 5 title}}}

No information {{#if: |

{{{Row 6 title}}}

No information {{#if: |

{{{Row 7 title}}}

No information {{#if: |

{{{Row 8 title}}}

No information {{#if: |

{{{Row 9 title}}}

No information {{#if: |

{{{Row 10 title}}}

No information {{#if: |

Too many parameters

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}