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 (Fixing templates that include categories when transcluding themselves.) |
|||
Line 28: | Line 28: | ||
{{!}} class="infobox-data-title" {{!}} {{#ifeq: {{{prude|}}}|no|'''Sex'''|'''Gender'''|}} | {{!}} class="infobox-data-title" {{!}} {{#ifeq: {{{prude|}}}|no|'''Sex'''|'''Gender'''|}} | ||
{{!}} style="padding-right: 1em;" {{!}} {{{gender}}} | {{!}} 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 olor''' | ||
+ | {{!}} style="padding-right: 1em;" {{!}} {{{hair}}} | ||
+ | }}{{#if: {{{eye|}}}|<br /> | ||
+ | {{!}}- | ||
+ | {{!}} class="infobox-data-title" {{!}} '''Eye color''' | ||
+ | {{!}} style="padding-right: 1em;" {{!}} {{{eye}}} | ||
}}{{#if: {{{sex|}}}|<br /> | }}{{#if: {{{sex|}}}|<br /> | ||
{{!}}- | {{!}}- | ||
Line 62: | Line 78: | ||
}} | }} | ||
|} | |} | ||
− | {{#ifeq:{{NAMESPACE}}|Template||[[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> | <pre><nowiki> | ||
Line 83: | Line 88: | ||
| origin = | | origin = | ||
| gender = | | gender = | ||
+ | | height = | ||
+ | | weight = | ||
+ | | hair = | ||
+ | | eye = | ||
| occupation = | | occupation = | ||
| affiliation = | | affiliation = | ||
Line 94: | Line 103: | ||
==Example== | ==Example== | ||
− | <pre><nowiki> | + | <pre><nowiki>{{Character Infobox |
− | {{ | ||
| name = Harold Angus Kane | | name = Harold Angus Kane | ||
| image = wiki-kane.jpg | | image = wiki-kane.jpg | ||
Line 102: | Line 110: | ||
| origin = {{House Link | Liberty}} | | origin = {{House Link | Liberty}} | ||
| gender = Male | | gender = Male | ||
+ | | height = | ||
+ | | weight = | ||
+ | | hair = | ||
+ | | eye = | ||
| occupation = Taskmaster and High Command member of the [[Vagrant Raiders|VR]] | | occupation = Taskmaster and High Command member of the [[Vagrant Raiders|VR]] | ||
| affiliation = [[Vagrant Raiders]] | | affiliation = [[Vagrant Raiders]] | ||
Line 113: | Line 125: | ||
==Result== | ==Result== | ||
− | {{ | + | {{Character Infobox |
| name = Harold Angus Kane | | name = Harold Angus Kane | ||
| image = wiki-kane.jpg | | image = wiki-kane.jpg | ||
Line 120: | Line 132: | ||
| origin = {{House Link | Liberty}} | | origin = {{House Link | Liberty}} | ||
| gender = Male | | gender = Male | ||
+ | | height = | ||
+ | | weight = | ||
+ | | hair = | ||
+ | | eye = | ||
| occupation = Taskmaster and High Command member of the [[Vagrant Raiders|VR]] | | occupation = Taskmaster and High Command member of the [[Vagrant Raiders|VR]] | ||
| affiliation = [[Vagrant Raiders]] | | affiliation = [[Vagrant Raiders]] | ||
Line 128: | Line 144: | ||
| birth_date = March 15, 795 [[A.S.]], [[Padua Base]] | | birth_date = March 15, 795 [[A.S.]], [[Padua Base]] | ||
| death_date = | | death_date = | ||
− | }} | + | }}[[Category:Templates]]</noinclude> |
− | |||
− | [[Category:Templates]] | ||
− | </noinclude> |
Revision as of 20:35, 24 January 2012
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 = }}
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 = }}
Result
Harold Angus Kane | |
Error creating thumbnail: Unable to save thumbnail to destination | |
Harold Kane, 818 A.S. | |
Profile | |
Origin | 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 |