Difference between revisions of "Template:Infobox character"

From Dwaia Wiki
Jump to navigation Jump to search
m (1 revision imported: Person template from Wikipedia.)
m (Removed the extra Alias row)
 
(18 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Infobox|child={{{child|}}}
+
<table class="infobox">
| bodyclass  = biography vcard
+
{{ Infobox default title      | {{{name|{{PAGENAME}}}}} }}
  
| above      = {{Br separated entries
+
{{ Infobox conditional image  | {{{image|}}}       }}
| 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}|<div class="honorific-prefix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}</div>}}
+
{{ Infobox conditional caption | {{{imagecaption|}}}     }}
| 2 = <div class="fn" style="display:inline">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div>
 
| 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}</div>}}
 
}}
 
| abovestyle = {{{abovestyle|}}}
 
  
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
 
| caption    = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
 
  
| label1    = Native&nbsp;name
+
{{ Infobox conditional data    | Aliases    | {{{aliases|}}}       }}
| data1      = {{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}}
+
{{ Infobox conditional data    | Relatives  | {{{relatives|}}}       }}
 +
{{ Infobox conditional data    | Affiliation| {{{affiliation|}}}       }}
  
| label2    = Pronunciation
+
{{ Infobox conditional section
| data2     = {{{pronunciation|}}}
+
| cond = {{{element|}}}{{{level|}}}{{{skills|}}}{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}} <!-- This checks if any of the stats are defined by concatenating them and seeing if the string is empty -->
 +
| title = Stats
 +
|
 +
{{ Infobox conditional data    | Elements  | {{{element|}}}        }}
 +
{{ Infobox conditional data    | Level     | {{{level|}}}        }}
 +
{{ Infobox conditional data    | Skills    | {{{skills|}}}        }}
 +
{{ Infobox conditional data    | STR        | {{{str|}}}        }}
 +
{{ Infobox conditional data    | DEX        | {{{dex|}}}        }}
 +
{{ Infobox conditional data    | CON        | {{{con|}}}        }}
 +
{{ Infobox conditional data    | INT        | {{{int|}}}        }}
 +
{{ Infobox conditional data    | WIS        | {{{wis|}}}        }}
 +
{{ Infobox conditional data    | CHA        | {{{cha|}}}        }}
 +
{{ Infobox conditional caption | [[Stats Explained|What are these stats?]]        }}
 +
}}
  
| label10    = Born
+
{{ Infobox conditional section
| data10    = {{Br separated entries|1={{#if:{{{birth_name|{{{birthname|}}}}}}|<div style="display:inline" class="nickname">{{{birth_name|{{{birthname|}}}}}}</div>}}|2={{{birth_date|}}}|3={{#if:{{{birth_place|}}}|<div style="display:inline" class="birthplace">{{{birth_place|}}}</div>}}}}
+
| cond = {{{country|}}}{{{marital|}}}{{{birthDate|}}}{{{birthPlace|}}}{{{deathDate|}}}{{{deathPlace|}}}
 +
| title = Biographical information
 +
|
 +
{{ Infobox conditional data    | Country        | {{{country|}}}        }}
 +
{{ Infobox conditional data    | Marital status | {{{marital|}}}       }}
 +
{{ Infobox conditional data    | Date of birth  | {{{birthDate|}}}       }}
 +
{{ Infobox conditional data    | Place of birth | {{{birthPlace|}}}       }}
 +
{{ Infobox conditional data    | Date of death  | {{{deathDate|}}}       }}
 +
{{ Infobox conditional data    | Place of death | {{{deathPlace|}}}       }}
 +
}}
  
| label11    = Bapti{{#if:{{{baptized|}}}|z|s}}ed
+
{{ Infobox conditional section
| data11    = {{#if:{{{birth_date|}}}||{{{baptized|{{{baptised|}}}}}}}}
+
| cond = {{{species|}}}{{{gender|}}}{{{height|}}}{{{weight|}}}
 +
| title = Biographical information
 +
|
 +
{{ Infobox conditional data    | Species    | {{{species|}}}       }}
 +
{{ Infobox conditional data    | Gender    | {{{gender|}}}        }}
 +
{{ Infobox conditional data    | Height    | {{{height|}}}        }}
 +
{{ Infobox conditional data    | Weight    | {{{weight|}}}       }}
 +
{{ Infobox conditional data    | Eye color  | {{{eyes|}}}        }}
 +
}}
  
| label12    = Disappeared
+
</table>
| data12    = {{Br separated entries|1={{{disappeared_date|}}}|2={{{disappeared_place|}}}}}
+
<noinclude>
  
| label13   = Status
+
==How to use==
| data13    = {{{status|{{{disappeared_status|}}}}}}
+
Fill in the fields in this empty template with the appropriate values for the character. Fields that are not filled are automatically hidden.
 +
<pre>
 +
{{infobox character
 +
| name        =
 +
| image        =
 +
| imagecaption =
 +
| aliases      =
 +
| affiliation  =
 +
| element      =
 +
| level        =
 +
| skills      =
 +
| str          =
 +
| con          =
 +
| dex          =
 +
| int          =
 +
| cha          =
 +
| wis          =
 +
| marital      =
 +
| birthDate   =
 +
| birthPlace  =
 +
| deathDate    =
 +
| deathPlace  =
 +
| species      =
 +
| gender      =
 +
| height      =
 +
| weight      =
 +
| eyes        =
 +
}}
 +
</pre>
  
| label14    = Died
+
==Example==
| data14    = {{Br separated entries|1={{{death_date|}}}|2={{#if:{{{death_place|}}}|<div style="display:inline" class="deathplace">{{{death_place|}}}</div>}}}}
+
<table><tr style="vertical-align:top;"><td>
 +
This source code...
 +
<pre>
 +
{{infobox character
 +
| name = gremscro big hands
 +
| image = 3d61387525a4b6817f6e4f80395f16bf.png
 +
| imagecaption = he
 +
| aliases = gremscro,<br/>big hands
 +
| relatives = [[Biggie Hands]] (father),<br/>[[Handa Biggs]] (mother),<br/>[[gremscro big hands]] (himself)
 +
| affiliation = idunno
 +
| element      = [[Meat (element)|Meat]]
 +
| level        = ∞
 +
| skills      = all
 +
| str          = big hands
 +
| con          = big hands
 +
| dex          = big hands
 +
| int          = big hands
 +
| cha          = big hands
 +
| wis          = big hands
 +
| country = [[Edgeon // The Dark Rift]]
 +
| marital = big
 +
| species = gremscro big hands
 +
| gender = big hands
 +
| height = 1.80m (body),<br/>1.20m (hands)
 +
| weight = 105kg (body),<br/>400kg (hands)
 +
}}
 +
</pre>
 +
</td><td>
 +
...becomes this infobox:
 +
{{infobox character
 +
| name = gremscro big hands
 +
| image = 3d61387525a4b6817f6e4f80395f16bf.png
 +
| imagecaption = he
 +
| aliases = gremscro,<br/>big hands
 +
| relatives = [[Biggie Hands]] (father),<br/>[[Handa Biggs]] (mother),<br/>[[gremscro big hands]] (himself)
 +
| affiliation = idunno
 +
| element      = [[Meat (element)|Meat]]
 +
| level        = ∞
 +
| skills      = all
 +
| str          = big hands
 +
| con          = big hands
 +
| dex          = big hands
 +
| int          = big hands
 +
| cha          = big hands
 +
| wis          = big hands
 +
| country = [[Edgeon // The Dark Rift]]
 +
| marital = big
 +
| species = gremscro big hands
 +
| gender = big hands
 +
| height = 1.80m (body),<br/>1.20m (hands)
 +
| weight = 105kg (body),<br/>400kg (hands)
 +
}}
 +
</td></tr></table>
  
| label15    = Cause&nbsp;of death
+
[[Category:Templates]]
| data15    = {{{death cause|{{{death_cause|}}}}}}
+
</noinclude>
 
 
| label16    = Body discovered
 
| data16    = {{{body discovered|{{{body_discovered|}}}}}}
 
 
 
| label17    = {{#if:{{{burial_place|}}}|Burial place|Resting place}}
 
| data17    = {{#if:{{{burial_place|}}}|{{Br separated entries|1={{{burial_place|}}}|2={{{burial_coordinates|}}}}}|{{Br separated entries|1={{{resting place|{{{resting_place|{{{restingplace|}}}}}}}}}|2={{{resting place coordinates|{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}}}}}}}}
 
| class17    = label
 
 
 
| label18    = Monuments
 
| data18    = {{{monuments|}}}
 
 
 
| label19    = Residence
 
| data19    = {{{residence|}}}
 
| class19    = {{#if:{{{death_date|}}}{{{death_place|}}}||label}}
 
 
 
| label20    = Nationality
 
| data20    = {{{nationality|}}}
 
| class20    = category
 
 
 
| label21    = Other&nbsp;names
 
| data21    = {{{other names|{{{other_names|{{{othername|{{{nickname|{{{alias|}}}}}}}}}}}}}}}
 
| class21    = nickname
 
 
 
| label23    = Citizenship
 
| data23    = {{{citizenship|}}}
 
| class23    = category
 
 
 
| label24    = Education
 
| data24    = {{{education|}}}
 
 
 
| label25    = Alma&nbsp;mater
 
| data25    = {{{alma mater|{{{alma_mater|}}}}}}
 
 
 
| label26    = Occupation
 
| data26    = {{{occupation|}}}
 
| class26    = role
 
 
 
| label27    = Years&nbsp;active
 
| data27    = {{{years active|{{{years_active|{{{yearsactive|}}}}}}}}}
 
 
 
| label28    = Era
 
| data28    = {{{era|}}}
 
| class28    = category
 
 
 
| label29    = Employer
 
| data29    = {{{employer|}}}
 
| class29    = org
 
 
 
| label30    = {{#if:{{{organisation|}}}|Organisation|Organization}}
 
| data30    = {{{organisation|{{{organization|{{{organizations|}}}}}}}}}
 
| class30    = org
 
 
 
| label31    = Agent
 
| data31    = {{{agent|}}}
 
| class31    = agent
 
 
 
| label32    = Known&nbsp;for
 
| data32    = {{{known for|{{{known_for|{{{known|}}}}}}}}}
 
 
 
| label33    = <div style="white-space:nowrap;">{{#if:{{{works|}}}|Works|{{#if:{{{credits|}}}|Notable credit(s)|{{#if:{{{label_name|}}}|Label(s)|Notable work}}}}}}</div>
 
| data33    = {{#if:{{{works|}}}|{{{works|}}}|{{#if:{{{credits|}}}|{{{credits}}}|{{#if:{{{label_name|}}}|{{{label_name}}}|{{{notable works|{{{notable_works|}}}}}}}}}}}}
 
 
 
| label34    = Style
 
| data34    = {{{style|}}}
 
| class34    = category
 
 
 
| label37    = Home&nbsp;town
 
| data37    = {{{home town|{{{home_town|}}}}}}
 
 
 
| label38    = Salary
 
| data38    = {{{salary|}}}
 
 
 
| label39    = Net&nbsp;worth
 
| data39    = {{{net worth|{{{net_worth|{{{networth|}}}}}}}}}
 
 
 
| label40    = Height
 
| data40    = {{#if:{{{height_m|{{{height_cm|}}}}}}{{{height_ft|}}}{{{height_in|}}} | {{convinfobox|{{{height_m|{{{height_cm|}}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}}}}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}}}
 
 
 
| label41    = Weight
 
| data41    = {{#if:{{{weight_kg|}}}{{{weight_st|}}}{{{weight_lb|}}} | {{convinfobox|{{{weight_kg|}}}|kg|{{{weight_st|}}}|st|{{{weight_lb|}}}|lb}}}}{{#if:{{{weight|}}} | {{infobox person/weight|{{{weight|}}}}}}}
 
 
 
| label42    = Television
 
| data42    = {{{television|}}}
 
 
 
| label43    = {{#if:{{{office|}}}|Office|Title}}
 
| data43    = {{{office|{{{title|}}}}}}
 
| class43    = title
 
 
 
| label44    = Term
 
| data44    = {{{term|}}}
 
 
 
| label45    = Predecessor
 
| data45    = {{{predecessor|}}}
 
 
 
| label46    = Successor
 
| data46    = {{{successor|}}}
 
 
 
| label47    = Political party
 
| data47    = {{{party|}}}
 
| class47    = org
 
 
 
| label48    = Movement
 
| data48    = {{{movement|}}}
 
| class48    = category
 
 
 
| label49    = <span class="nowrap">Opponent(s)</span>
 
| data49    = {{{opponents|}}}
 
 
 
| label50    = Board member&nbsp;of
 
| data50    = {{{boards|}}}
 
 
 
| label51    = Criminal charge
 
| data51    = {{{criminal charge|{{{criminal_charge|}}}}}}
 
 
 
| label52    = Criminal penalty
 
| data52    = {{{criminal penalty|{{{criminal_penalty|}}}}}}
 
 
 
| label53    = {{#if:{{{judicial status|{{{judicial_status|}}}}}}|Judicial status|Criminal status}}
 
| data53    = {{#if:{{{judicial status|{{{judicial_status|}}}}}} | {{{judicial status|{{{judicial_status}}}}}} | {{{criminal status|{{{criminal_status|}}}}}}}}
 
| class53    = category
 
 
 
| label54    = <span class="nowrap">Spouse(s)</span>
 
| data54    = {{{spouse|{{{spouses|{{{spouse(s)|}}}}}}}}}
 
 
 
| label55    = <span class="nowrap">Partner(s)</span>
 
| data55    = {{{partner|{{{domesticpartner|{{{domestic_partner|{{{partners|{{{partner(s)|}}}}}}}}}}}}}}}
 
 
 
| label56    = Children
 
| data56    = {{{children|}}}
 
 
 
| label57    = Parent{{#if:{{{parents|}}}|(s)|{{#if:{{{father|}}}|{{#if:{{{mother|}}}|s|(s)}}|(s)}}}}
 
| data57    = {{#if:{{{parents|}}}|{{{parents}}}|{{Unbulleted list|{{#if:{{{father|}}}|{{{father}}} (father)}}|{{#if:{{{mother|}}}|{{{mother}}} (mother)}}}}}}
 
 
 
| label58    = Relatives
 
| data58    = {{{relations|{{{relatives|}}}}}}
 
 
 
| label59    = Family
 
| data59    = {{{family|}}}
 
 
 
| label60    = Call-sign
 
| data60    = {{{callsign|}}}
 
 
 
| label61    = Awards
 
| data61    = {{{awards|}}}
 
 
 
| label62    = {{#if:{{{honours|}}}|Honours|Honors}}
 
| data62    = {{{honours|{{{honors|}}}}}}
 
 
 
| data64    = {{{misc|{{{module|}}}}}}
 
| data65    = {{{misc2|{{{module2|}}}}}}
 
| data66    = {{{misc3|{{{module3|}}}}}}
 
| data67    = {{{misc4|{{{module4|}}}}}}
 
| data68    = {{{misc5|{{{module5|}}}}}}
 
| data69    = {{{misc6|{{{module6|}}}}}}
 
 
 
| label70    = Website
 
| data70    = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
 
 
 
| header71  = {{#if:{{{signature|}}}|Signature}}
 
| data72    = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}}
 
 
 
| header73  = {{#if:{{{footnotes|}}}|Notes}}
 
| data74    = {{#if:{{{footnotes|}}}|<div style="text-align: left;">{{{footnotes}}}</div>}}
 
 
 
}}<!--
 
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox person with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview = Page using [[Template:Infobox person]] with unknown parameter "_VALUE_"|ignoreblank=y
 
| abovestyle | agent | alias | alma mater | alma_mater | alt | awards | baptised | baptized | birth_date | birth_name | birth_place | birthname | boards | body discovered | body_discovered | burial_coordinates | burial_place | callsign | caption | child | children | citizenship | credits | criminal charge | criminal penalty | criminal status | criminal_charge | criminal_penalty | criminal_status | death cause | death_cause | death_date | death_place | disappeared_date | disappeared_place | disappeared_status | domestic_partner | domesticpartner | education | employer | era | family | father | footnotes | height | height_cm | height_ft | height_in | height_m | home town | home_town | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honorific-prefix | honorific-suffix | honors | honours | image | image caption | image size | image_caption | image_size | image_upright | imagesize | judicial status | judicial_status | known | known for | known_for | label_name | misc | misc2 | misc3 | misc4 | misc5 | misc6 | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | nationality | native_name | native_name_lang | net worth | net_worth | networth | nickname | nocat_wdimage | notable works | notable_works | occupation | office | opponents | organisation | organization | organizations | other names | other_names | othername | parents | partner | partner | partner(s) | party | predecessor | pre-nominals | post-nominals | pronunciation | relations | relatives | residence | resting place | resting place coordinates | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | salary | signature | signature alt | signature_alt | signature_size | spouse | spouses | spouse(s) | status | style | successor | television | term | title | URL | url | website | weight | weight_kg | weight_lb | weight_st | works | years active | years_active | yearsactive}}<!--
 
-->{{Main other|
 
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|[[Category:Infobox person using numbered parameter]]}}<!--
 
-->{{#if:{{{box_width|}}}|[[Category:Infobox person using boxwidth parameter]]}}<!--
 
-->{{#if:{{{death_date|}}}{{{death_place|}}}|{{#if:{{{salary|}}}{{{net worth|{{{net_worth|{{{networth|}}}}}}}}}|[[Category:Infobox person using certain parameters when dead]]}}}}<!--
 
-->{{#if:{{{influences|}}}{{{influenced|}}}|[[Category:Infobox person using influence]]}}<!--
 
-->{{#if:{{{ethnicity|}}}|[[Category:Infobox person using ethnicity]]}}<!--
 
-->{{#if:{{{religion|}}}|[[Category:Infobox person using religion]]}}<!--
 
-->{{#if:{{{denomination|}}}|[[Category:Infobox person using denomination]]}}<!--
 
-->{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<!--
 
-->{{#if:{{{signature|}}}|[[Category:Biography with signature]]}}<!--
 
-->{{#if:{{{alma mater|}}}{{{alma_mater|}}}|[[Category:Infobox person using alma mater]]}}<!--
 
-->{{#if:{{{image|}}}|{{#if:{{#property:P18}}||[[Category:Pages to import images to Wikidata]]}}}}[[Category:Articles with hCards]]
 
}}<includeonly>{{#ifeq:{{{child|}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude>
 
{{Documentation}}</noinclude>
 

Latest revision as of 19:53, 11 May 2019

Infobox character


How to use

Fill in the fields in this empty template with the appropriate values for the character. Fields that are not filled are automatically hidden.

{{infobox character
 | name         =
 | image        =
 | imagecaption =
 | aliases      =
 | affiliation  =
 | element      =
 | level        =
 | skills       =
 | str          =
 | con          =
 | dex          =
 | int          =
 | cha          =
 | wis          =
 | marital      =
 | birthDate    =
 | birthPlace   =
 | deathDate    =
 | deathPlace   =
 | species      =
 | gender       =
 | height       =
 | weight       =
 | eyes         =
}}

Example

This source code...

{{infobox character
 | name = gremscro big hands
 | image = 3d61387525a4b6817f6e4f80395f16bf.png
 | imagecaption = he
 | aliases = gremscro,<br/>big hands
 | relatives = [[Biggie Hands]] (father),<br/>[[Handa Biggs]] (mother),<br/>[[gremscro big hands]] (himself)
 | affiliation = idunno
 | element      = [[Meat (element)|Meat]]
 | level        = ∞
 | skills       = all
 | str          = big hands
 | con          = big hands
 | dex          = big hands
 | int          = big hands
 | cha          = big hands
 | wis          = big hands
 | country = [[Edgeon // The Dark Rift]]
 | marital = big
 | species = gremscro big hands
 | gender = big hands
 | height = 1.80m (body),<br/>1.20m (hands)
 | weight = 105kg (body),<br/>400kg (hands)
}}

...becomes this infobox:

gremscro big hands
3d61387525a4b6817f6e4f80395f16bf.png
he
Aliases gremscro,
big hands
Relatives Biggie Hands (father),
Handa Biggs (mother),
gremscro big hands (himself)
Affiliation idunno
Stats
Elements Meat
Level
Skills all
STR big hands
DEX big hands
CON big hands
INT big hands
WIS big hands
CHA big hands
What are these stats?
Biographical information
Country Edgeon // The Dark Rift
Marital status big
Biographical information
Species gremscro big hands
Gender big hands
Height 1.80m (body),
1.20m (hands)
Weight 105kg (body),
400kg (hands)