YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Character Infobox"

From Discovery Wiki
Jump to navigationJump to search
(+added stub)
m (Alters the margin depending on the alignment of the infobox now.)
 
(53 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
<noinclude>If you want to set the CSS styles of this infobox or colours, get a wiki Admin to change the Monobook.css. Most infoboxes' styles are controlled from there. This allows freedom for skins, while not changing the content of the infobox. (Say for example if you don't like this current one modelled off Freelancer User Interface, and want a default Wiki skin.)<!--</noinclude>
 
<noinclude>If you want to set the CSS styles of this infobox or colours, get a wiki Admin to change the Monobook.css. Most infoboxes' styles are controlled from there. This allows freedom for skins, while not changing the content of the infobox. (Say for example if you don't like this current one modelled off Freelancer User Interface, and want a default Wiki skin.)<!--</noinclude>
{{#if: {{{image|}}}||[[Category:Stubs]] [[Category:Characters without profile images]] {{Stub|This Article needs a Picture for the '''Character'''. This is an automatically generated message that will disappear when an image is used.}}
+
{| class="infobox bordered" style="float: {{#ifeq:{{{align|right}}}|right|right|left}}; background-color:14193F; margin-left: {{#ifeq:{{{align|right}}}|right|1em|0em}}; margin-right: {{#ifeq:{{{align|right}}}|right|0em|1em}}; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
{| class="infobox bordered" style="float: right; background-color:14193F; margin-left: 1em; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
 
|-
 
|-
 
| colspan="2" class="infobox-name" | '''{{{name}}}'''
 
| colspan="2" class="infobox-name" | '''{{{name}}}'''
 
|-
 
|-
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
| [[image:{{{image}}}|center|264px]]
+
| [[image:{{{image}}}|center|{{#if: {{{imagesize|}}} | {{{imagesize}}} | 264px }}]]
| [[Image:Nocharimage.jpg|center|264px]]
+
| {{#ifexist: File:{{{name|}}}.png
}}
+
  | [[image:{{{name|}}}.png|center|{{#if: {{{imagesize|}}} | {{{imagesize}}} | 264px }}]]
 +
  | {{#ifexist: File:{{{name|}}}.jpg
 +
  | [[image:{{{name|}}}.jpg|center|{{#if: {{{imagesize|}}} | {{{imagesize}}} | 264px }}]]
 +
  | [[Image:Nocharimage.jpg|center|264px]]}}}}}}
 +
|-
 +
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{caption|}}} | {{{caption}}} | }}
 +
|-
 +
| colspan="2" class="infobox-section" | Profile
 
|-
 
|-
 +
 
| class="infobox-data-title" | '''Origin'''
 
| class="infobox-data-title" | '''Origin'''
| style="padding-right: 1em;" | {{#if: {{{origin|}}}
+
| style="padding-right: 1em;" | {{#if: {{{origin|}}}| {{{origin}}}| ''unknown''
| {{{origin}}}
+
}}{{#if: {{{occupation|}}}|<br />
| ''unknown''
+
{{!}}-
}}
+
{{!}} class="infobox-data-title" {{!}} '''Occupation'''
|-
+
{{!}} style="padding-right: 1em;" {{!}} {{{occupation}}}
| class="infobox-data-title" | '''Alignment'''
+
}}{{#if: {{{iff|}}}|<br />
| style="padding-right: 1em;" | {{#switch: {{{alignment}}}
+
{{!}}-
| LAWFUL = Lawful
+
{{!}} class="infobox-data-title" {{!}} '''IFF'''
| UNLAWFUL = Unlawful
+
{{!}} style="padding-right: 1em;" {{!}} {{{iff}}}
| QUASI-LEGAL = Quasi-legal
+
}}{{#if: {{{gender|}}}|<br />
| CORPORATION = Lawful/Corporation
+
{{!}}-
| INDEPENDENT = Independent
+
{{!}} class="infobox-data-title" {{!}} {{#ifeq: {{{prude|}}}|no|'''Sex'''|'''Gender'''|}}
| #default = {{{alignment}}}
+
{{!}} style="padding-right: 1em;" {{!}} {{{gender}}}
 +
}}{{#if: {{{height|}}}|<br />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Height'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{height}}}
 +
}}{{#if: {{{weight|}}}|<br />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Weight'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{weight}}}
 +
}}{{#if: {{{hair|}}}|<br />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Hair color'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{hair}}}
 +
}}{{#if: {{{eye|}}}|<br />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Eye color'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{eye}}}
 
}}
 
}}
 
|-
 
|-
Line 30: Line 53:
 
| {{{affiliation}}}
 
| {{{affiliation}}}
 
| ''unknown''
 
| ''unknown''
 +
}}{{#if: {{{service_time|}}}|<br />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" style="width: 100px;" {{!}} '''{{{service_what}}}'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{service_time}}}
 +
}}{{#if: {{{rank|}}}|<br />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Rank'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{rank}}}
 +
}}{{#if: {{{status|}}}|<br />
 +
{{!}}-
 +
{{!}} class="infobox-data-title" {{!}} '''Status'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{status}}}
 
}}
 
}}
|-
 
| colspan="2" class="infobox-section" | Profile
 
 
|-
 
|-
 
| class="infobox-data-title" | '''Born'''
 
| class="infobox-data-title" | '''Born'''
Line 38: Line 71:
 
| {{{birth_date}}}
 
| {{{birth_date}}}
 
| ''unknown''
 
| ''unknown''
}}
+
}}{{#if: {{{death_date|}}}|<br />
{{#if: {{{death_date|}}}
+
{{!}}-
| {{!}}-
 
 
{{!}} class="infobox-data-title" {{!}} '''Died'''
 
{{!}} class="infobox-data-title" {{!}} '''Died'''
 
{{!}} style="padding-right: 1em;" {{!}} {{{death_date}}}
 
{{!}} style="padding-right: 1em;" {{!}} {{{death_date}}}
}}
+
}}{{#if: {{{toc|}}} | <nowiki />
 +
{{!}}-
 +
{{!}} colspan="2" class="infobox-section" {{!}} Table of contents
 +
{{!}}-
 +
{{!}} colspan="2" class="infoboxtoc" {{!}} __TOC__ }}
 
|}
 
|}
[[Category:People]]{{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}
+
{{#ifeq:{{NAMESPACE}}|Template||[[Category:People]]{{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}}}<noinclude>-->
<noinclude>
 
-->
 
 
==Usage==
 
==Usage==
<pre><nowiki>{{Character_Infobox
+
<pre><nowiki>
| name = Mireille Ceyes
+
{{Character Infobox
| image = mirwiki.jpg
+
| name =
 +
| image =
 +
| imagesize =
 +
| caption =
 +
| origin =
 +
| gender =
 +
| height =
 +
| weight =
 +
| hair =
 +
| eye =
 +
| occupation =
 +
| affiliation =
 +
| service_what =
 +
| service_time =
 +
| rank =
 +
| status =
 +
| birth_date =
 +
| death_date =
 +
| toc =
 +
}}</nowiki></pre>
 +
 
 +
==Example==
 +
<pre><nowiki>{{Character Infobox
 +
| name = Harold Angus Kane
 +
| image = wiki-kane.jpg
 +
| imagesize = 263px
 +
| caption = Harold Kane, 818 A.S.
 
| origin = {{House Link | Liberty}}
 
| origin = {{House Link | Liberty}}
| alignment = Lawful
+
| gender = Male
| affiliation = Sirius Coalition Revolutionary Army
+
| height =
| birth_date = July 23 783 [[A.S.]], [[Planet Manhattan]]
+
| weight =
| death_date = Still alive
+
| hair =
 +
| eye =
 +
| occupation = Taskmaster and High Command member of the [[Vagrant Raiders|VR]]
 +
| affiliation = [[Vagrant Raiders]]
 +
| service_what =
 +
| service_time =
 +
| rank = Taskmaster
 +
| status = Active (818 A.S.)
 +
| birth_date = March 15, 795 [[A.S.]], [[Padua Base]]
 +
| death_date =
 +
| toc = yes
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  
 
==Result==
 
==Result==
{{Character_Infobox
+
{{Character Infobox
| name = Mireille Ceyes
+
| name = Harold Angus Kane
| image = mirwiki.jpg
+
| image = wiki-kane.jpg
 +
| imagesize = 263px
 +
| caption = Harold Kane, 818 A.S.
 
| origin = {{House Link | Liberty}}
 
| origin = {{House Link | Liberty}}
| alignment = Lawful
+
| gender = Male
| affiliation = Sirius Coalition Revolutionary Army
+
| height =
| birth_date = July 23 783 [[A.S.]], [[Planet Manhattan]]
+
| weight =
| death_date = Still alive
+
| hair =
}}
+
| eye =
 
+
| occupation = Taskmaster and High Command member of the [[Vagrant Raiders|VR]]
[[Category:Templates]]
+
| affiliation = [[Vagrant Raiders]]
</noinclude>
+
| service_what =
 +
| service_time =
 +
| rank = Taskmaster
 +
| status = Active (818 A.S.)
 +
| birth_date = March 15, 795 [[A.S.]], [[Padua Base]]
 +
| death_date =
 +
| toc = yes
 +
}}[[Category:Templates]]</noinclude>

Latest revision as of 09:45, 31 August 2013

If you want to set the CSS styles of this infobox or colours, get a wiki Admin to change the Monobook.css. Most infoboxes' styles are controlled from there. This allows freedom for skins, while not changing the content of the infobox. (Say for example if you don't like this current one modelled off Freelancer User Interface, and want a default Wiki skin.)

Usage

{{Character Infobox
| name =
| image = 
| imagesize =
| caption =
| origin =
| gender =
| height =
| weight =
| hair =
| eye =
| occupation = 
| affiliation =
| service_what =
| service_time =
| rank =
| status =
| birth_date =
| death_date =
| toc =
}}

Example

{{Character Infobox
| name = Harold Angus Kane
| image = wiki-kane.jpg
| imagesize = 263px
| caption = Harold Kane, 818 A.S.
| origin = {{House Link | Liberty}}
| gender = Male
| height =
| weight =
| hair =
| eye =
| occupation = Taskmaster and High Command member of the [[Vagrant Raiders|VR]]
| affiliation = [[Vagrant Raiders]]
| service_what = 
| service_time = 
| rank = Taskmaster
| status = Active (818 A.S.)
| birth_date = March 15, 795 [[A.S.]], [[Padua Base]]
| death_date =
| toc = yes
}}

Result

Harold Angus Kane
Error creating thumbnail: Unable to save thumbnail to destination
Harold Kane, 818 A.S.
Profile
Origin Flag-liberty.png Liberty
Occupation Taskmaster and High Command member of the VR
Gender Male
Affiliation Vagrant Raiders
Rank Taskmaster
Status Active (818 A.S.)
Born March 15, 795 A.S., Padua Base
Table of contents