Difference between revisions of "Template:Character Infobox"

From Final Kingdom MUSH
Jump to: navigation, search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 36: Line 36:
 
   .CharacterBox tr:nth-last-child(1) td {border-radius:0px 0px 5px 5px;}
 
   .CharacterBox tr:nth-last-child(1) td {border-radius:0px 0px 5px 5px;}
  
   #Image {padding:0px;}
+
   td#image {padding:0px; margin-left: 0px; margin-bottom: 0px;}
  #Image tr {padding:0px;}
+
  #Image tr td {padding:0px;}
+
 
}}{| class="CharacterBox"
 
}}{| class="CharacterBox"
! style="text-align: center; background-color:#ccccff; border-radius: 5px 5px 0px 0px;" colspan="2" width="100%" |{{#if:{{{firstname|}}}|'''{{{firstname}}} {{#if:{{{middlename|}}} |{{{middlename|}}} |}}{{{lastname|}}}'''|{{PAGENAME}} }}
+
! style="text-align: center; background-color:#ccccff; border-radius: 5px 5px 0px 0px;" colspan="2" width="100%" |{{#if:{{{firstname|}}}|'''{{{firstname}}} {{#if:{{{middlename|}}} |''{{{middlename|}}}'' |}}{{{lastname|}}}'''|{{PAGENAME}} }}
|- id="image"
+
|-
 
{{#if:{{{image|}}}|
 
{{#if:{{{image|}}}|
{{!}} colspan="2" {{!}}<center>[[File:{{{image|}}}|{{{imageoptions|300px}}}]]</center>
+
{{!}} id="image" colspan="2" {{!}}<center>[[File:{{{image|}}}|{{{imageoptions|300px}}}]]</center>
 
{{#if:{{{caption|}}}|<center>{{{caption}}}</center>|}}
 
{{#if:{{{caption|}}}|<center>{{{caption}}}</center>|}}
 
{{!}}-|}}| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Appearance'''
 
{{!}}-|}}| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Appearance'''
Line 74: Line 72:
 
|-
 
|-
 
! Group
 
! Group
| {{#arraymap:{{{group|Unaffiliated}}}|,|x|[[group::x]]}}
+
| {{#arraymap:{{#ifeq:{{{group|Unaffiliated}}}|None|Unaffiliated|{{{group|Unaffiliated}}}}}|,|x|[[group::x]]}}
 
|-
 
|-
 
! Occupation/Job
 
! Occupation/Job

Latest revision as of 11:52, 17 January 2013

This is the "Character Infobox" template. It should be called in the following format:

{{Character Infobox
|firstname=
|lastname=
|middlename=
|image=
|imageoptions=
|caption=
|age=
|species=
|sex=
|height=
|weight=
|series=
|styles=
|hometown=
|group=
|occupation=
|alignment=
|themesong=
|quote=
|footer=
}}

Edit the page to see the template text.