Difference between revisions of "Template:Character Infobox"

From Final Kingdom MUSH
Jump to: navigation, search
m
m
 
(11 intermediate revisions by the same user not shown)
Line 29: Line 29:
 
</noinclude>
 
</noinclude>
 
<includeonly>{{#css:
 
<includeonly>{{#css:
   .CharacterBox {width: 300px; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; margin-right: 1em; padding: 0.2em; float: right; clear: right; text-align:left; border-radius: 5px; border-spacing:1px;}
+
   .CharacterBox {width: 300px; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left; border-radius: 5px; border-spacing:1px;}
 
   .CharacterBox td,th { padding:0px 0px 0px 5px;}
 
   .CharacterBox td,th { padding:0px 0px 0px 5px;}
 
   .CharacterBox th:nth-child(1) { width:100px; }
 
   .CharacterBox th:nth-child(1) { width:100px; }
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|}}}&nbsp;|}}{{{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|}}}''&nbsp;|}}{{{lastname|}}}'''|{{PAGENAME}} }}
|-
+
|-
 
{{#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 70: 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.