Difference between revisions of "Template:Character Infobox"

From Final Kingdom MUSH
Jump to: navigation, search
m
m
 
(14 intermediate revisions by the same user not shown)
Line 35: Line 35:
 
   .CharacterBox tr:nth-child(2n+2) {background-color: rgba(0,70,70,.3)}
 
   .CharacterBox tr:nth-child(2n+2) {background-color: rgba(0,70,70,.3)}
 
   .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;}
 +
 +
  td#image {padding:0px; margin-left: 0px; margin-bottom: 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}} }}
|-
+
|-
{{#if:{{{image|}}} |
+
{{#if:{{{image|}}}|
{{!}} colspan="2" {{!}}[[File:{{{image|}}}|{{{imageoptions|300px}}}]]
+
{{!}} 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'''
 
|-
 
|-
 
! Age
 
! Age
Line 67: Line 69:
 
|-
 
|-
 
! Hometown
 
! Hometown
| {{#ifeq:{{{hometown|None}}}|None|None|{{#set:hometown={{{hometown}}} }}{{{hometown}}}}}
+
| {{#arraymap:{{{hometown|None}}}|,|x|[[hometown::x]]}}
 
|-
 
|-
 
! 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.