Template:Character Infobox: Difference between revisions

From Pax Republica
Jump to navigation Jump to search
test>Volund
m (1 revision)
 
m (Protected "Template:Character Infobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
{| style="font-size: 80%; color: #ffffff; background: rgb(195 154 108 / 0.15); border: 1px #c39a6c solid; float:right; margin-left:25px; width:200px;"  cellspacing=2 cellpadding=6 valign="top" 
This is the "Character Infobox" template.
|-valign="top"
It should be called in the following format:
|style= align="center" colspan="3"|{{#ifexist: File:{{{name|null}}}.jpg | [[File:{{{name|null}}}.jpg|150px|center]] | [[File:missing_image.jpg|80px|center|link=Changing Template Images]]}}
<pre>
|-valign="top"
{{Character Infobox
| style="padding-top:15px" align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Name'''</span>
|firstname=
| style="padding-top:15px" align="left" width="50%"|<span style="color:#ffffff; padding-top:15px; font-weight:300;">{{{name|Unknown}}}</span>
|lastname=
|-valign="top"
|middlename=
| style= align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Age'''</span>
|image=
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{age|Unknown}}}</span>
|imageoptions=
|-valign="top"
|caption=
| style= align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Faction'''</span>
|age=
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{faction|Unaffiliated}}}</span>
|species=
|-valign="top"
|sex=
| style=align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Rank'''</span>
|height=
| style= align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{rank|Unknown}}}</span>
|weight=
|-valign="top"
|series=
| style= align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Species'''</span>
|styles=
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{species|Unknown}}}</span>
|hometown=
|-valign="top"
|group=
| style= align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Occupation'''</span>
|occupation=
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{occupation|Unknown}}}</span>
|alignment=
|-valign="top"
|themesong=
| style= align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Hair'''</span>
|quote=
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{hair|Unknown}}}</span>
|footer=
|-valign="top"
}}
| style=align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Eyes'''</span>
</pre>
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{eyes|Unknown}}}</span>
Edit the page to see the template text.
|-valign="top"
</noinclude>
| style=align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Height'''</span>
<includeonly>{{#css:
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{height|Unknown}}}</span>
  .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;}
|-valign="top"
  .CharacterBox td,th { padding:0px 0px 0px 5px;}
| style=align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Weight'''</span>
  .CharacterBox th:nth-child(1) { width:100px; }
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{weight|Unknown}}}</span>
  .CharacterBox tr:nth-child(2n+1) {background-color: rgba(0,70,70,.2)}
|-valign="top"
  .CharacterBox tr:nth-child(2n+2) {background-color: rgba(0,70,70,.3)}
| style=align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Status'''</span>
  .CharacterBox tr:nth-last-child(1) td {border-radius:0px 0px 5px 5px;}
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{Status|Unknown}}}</span>
|-valign="top"
| style=align="left" width="50%"|<span style="color:#c39a6c; padding-left:25px;">'''Char_id'''</span>
| style=align="left" width="50%"|<span style="color:#ffffff; font-weight:300;">{{{Char_id|None}}}</span>
{{!}}-valign="top"
|{{#if:{{{subgroup|}}}
{{!}} style=align="left" width="50%"{{!}}<span style="color:#c39a6c; padding-left:25px;">'''Subgroup'''</span>
{{!}} style=align="left" width="50%"{{!}}<span style="color:#ffffff; font-weight:300;">{{{subgroup}}}</span>
|}}
{{#vardefine: charid | {{{Char_id}}}}}
|-
|}
<includeonly>
[[Category:Characters]]
[[Category:{{{faction}}}]]


  td#image {padding:0px; margin-left: 0px; margin-bottom: 0px;}
{{#cargo_store:_table=Characters|ID={{{Char_id}}}}}
}}{| 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}} }}
|- 
{{#if:{{{image|}}}|
{{!}} id="image" colspan="2" {{!}}<center>[[File:{{{image|}}}|{{{imageoptions|300px}}}]]</center>
{{#if:{{{caption|}}}|<center>{{{caption}}}</center>|}}
{{!}}-|}}| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Appearance'''
|-
! 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'''
|-
! Series
| {{#arraymap:{{{series|Final Kingdom}}}|,|x|[[Category:x]]x}}
|-
! Combat Styles
| {{{styles}}}
|-
! Hometown
| {{#arraymap:{{{hometown|None}}}|,|x|[[hometown::x]]}}
|-
! Group
| {{#arraymap:{{#ifeq:{{{group|Unaffiliated}}}|None|Unaffiliated|{{{group|Unaffiliated}}}}}|,|x|[[group::x]]}}
|-
! Occupation/Job
| {{#set:occupation={{{occupation|None}}} }}{{{occupation|None}}}
|-
! Force:
| [[alignment::{{{alignment}}}]]
{{#if: {{{themesong|}}} | {{!}}-
! Theme Song
{{!}} {{{themesong}}} | }}
|-
| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Quote'''
|-
| colspan="2" style="text-align:center;" | ''{{#set:Quote={{{quote}}} }}{{{quote}}}''
{{#if: {{{footer|}}} |
{{!}}-
{{!}} colspan="2" style="text-align:center;" bgcolor="9e9e9e" {{!}} '''Recent Events'''
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} ''{{#set:Recent Events={{{footer}}} }}{{{footer}}}'' |}}
|} [[Category:Characters]]
</includeonly>
</includeonly>
<noinclude>[[Category:General wiki templates|{{PAGENAME}}]]
{{#cargo_declare:_table=Characters|ID=String}}
</noinclude>

Latest revision as of 08:03, 27 December 2023

Name Unknown
Age Unknown
Faction Unaffiliated
Rank Unknown
Species Unknown
Occupation Unknown
Hair Unknown
Eyes Unknown
Height Unknown
Weight Unknown
Status Unknown
Char_id None

This template defines the table "Characters". View table.