Difference between revisions of "Template:Character Infobox"

From Redwall MUCK Wiki
(Created page with "{{Character Infobox |firstname= |lastname= |middlename= |image= |imageoptions= |caption= |species= |death = Only fill in if your character died |age= |sex= |height= |weight= |...")
 
Line 1: Line 1:
<noinclude>
This is the "Character Infobox" template.
It should be called in the following format:
<pre>
{{Character Infobox
{{Character Infobox
|firstname=
|firstname=
Line 7: Line 11:
|caption=
|caption=
|species=
|species=
|birthdate =
|birthplace =
|death = Only fill in if your character died
|death = Only fill in if your character died
|age=
|age=
Line 17: Line 23:
|organizations=
|organizations=
|position=
|position=
|alignment=
|forcealignment=
}}
}}
</pre>
Edit the page to see the template text.
</noinclude>
<includeonly>{{#css:
  .CharacterBox {width: 320px; 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 th:nth-child(1) { width:100px; }
  .CharacterBox tr:nth-child(2n+1) {background-color: rgba(70,70,70,.2)}
  .CharacterBox tr:nth-child(2n+2) {background-color: rgba(70,70,70,.3)}
  .CharacterBox tr:nth-last-child(1) td {border-radius:0px 0px 5px 5px;}
  td#image {padding:0px; margin-left: 0px; margin-bottom: 0px;}
}}{{#switch: {{{forcealignment|Neutral}}} |
Dark = {{#css: .CharacterBox { background-color: #212121; color: white;}
  .CharacterBox a { color:lightgray;} .CharacterBox a:visited { color:lavender;} 
}} |
Light = {{#css: .CharacterBox { background-color: #999999; }
  .CharacterBox tr:nth-child(2n+1) {background-color: rgba(255,255,255,.6)}
  .CharacterBox tr:nth-child(2n+2) {background-color: rgba(255,255,255,.9)}
}} |
Grey = {{#css: .CharacterBox { background-color: #404040; }
}} |
{{#css: .CharacterBox { background-color: #9999CC; color:white; }
  .CharacterBox a { color:lightgray;} .CharacterBox a:visited { color:lavender;} 
}}
}}{| class="CharacterBox"
! style="text-align: center; background-color:rgba(70,70,70,.3); border-radius: 5px 5px 0px 0px;" colspan="2" width="100%" |{{#if:{{{firstname|}}}|'''{{{firstname}}} {{#if:{{{middlename|}}} |''{{{middlename|}}}''&nbsp;|}}{{{lastname|}}}'''|{{PAGENAME}} }}
|- 
{{#if:{{{image|}}}| {{#set:image={{{image}}}}}
{{!}} id="image" colspan="2" {{!}}<center>[[File:{{{image|}}}|{{{imageoptions|320px}}}]]</center>
{{#if:{{{caption|}}}|<center>{{{caption}}}</center>|}}
{{!}}-|}}| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Appearance'''
|-
{{#if:{{{death|}}}|
! Died
{{!}} {{{death}}}|}}
|-
! Age
| {{{age|Undefined}}}
|-
! Species
| [[Species::{{{species|Undefined}}}]]
|-
! Sex
| [[Sex::{{{sex|Undefined}}}]]
|-
! Height
| {{{height|Undefined}}}
|-
! Weight
| {{{weight|Undefined}}}
|-
| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Background'''
|-
! Ship
| {{#arraymap:{{#ifeq:{{{ship|None}}}|None|None{{#set:ship={{{ship|None}}} }}|{{{ship|None}}}}}|,|x|[[ship::x]]}}
|-
! Organization
| {{#arraymap:{{#ifeq:{{{organizations|None}}}|None|Independent|{{{organizations|Independent}}}}}|,|x|[[organization::x]]}}
|-
! Position
| {{#set:position={{{position|None}}} }}{{{position|None}}}
|-
! Alignment
| {{#set:alignment={{{alignment|Neutral}}} }}{{{alignment|Neutral}}}
|} {{#if:{{{death|{{{retired|}}}}}}|[[Category:Retired Characters]]|[[Category:Played Characters]]}}
{{#if: {{{death|}}}| {{#set:death={{{death}}}}}|}}
{{#if: {{{retired|}}}| {{#set:death=Retired}}|}}
</includeonly>

Revision as of 12:09, 1 March 2017

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

{{Character Infobox
|firstname=
|lastname=
|middlename=
|image=
|imageoptions=
|caption=
|species=
|birthdate =
|birthplace =
|death = Only fill in if your character died
|age=
|sex=
|height=
|weight=
|series=
|styles=
|ship=
|organizations=
|position=
|forcealignment=
}}

Edit the page to see the template text.