Template:Infobox Character: Difference between revisions

From Drawing Verse
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infoboxTemplate|child={{if empty|{{{child|}}}|{{{embed|}}}}}
<table class="infobox biography vcard" style="float: right; clear: right; width: 22em; border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: #202122; margin: 0.5em 0 0.5em 1em; padding: 0.2em; font-family: sans-serif; font-size: 88%; line-height: 1.5em; box-sizing: border-box;">
| bodyclass  = biography vcard
 
  <tr>
    <th colspan="2" class="fn" style="font-size: 125%; font-weight: bold; text-align: center; background-color: #f2f2f2; border: 1px solid #a2a9b1; padding: 0.2em 0.4em;">{{{name|{{PAGENAME}}}}}</th>
  </tr>
 
  {{#if:{{{image|}}}|
    <tr>
      <td colspan="2" style="text-align: center; padding: 0.2em 0;">
        [[File:{{{image}}}|220px|center]]
      </td>
    </tr>
  }}
 
  {{#if:{{{species|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; width: 30%;">Species</th>
      <td style="padding: 0.1em 0.4em;">{{{species}}}</td>
    </tr>
  }}
  {{#if:{{{faction|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Faction</th>
      <td style="padding: 0.1em 0.4em;">{{{faction}}}</td>
    </tr>
  }}
  {{#if:{{{status|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Status</th>
      <td style="padding: 0.1em 0.4em;">{{{status}}}</td>
    </tr>
  }}
  {{#if:{{{abilities|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; vertical-align: top;">Abilities</th>
      <td style="padding: 0.1em 0.4em; vertical-align: top;">{{{abilities}}}</td>
    </tr>
  }}
</table><noinclude>


| above      = {{#if:{{{honorific_prefix|}}}|<div class="honorific-prefix" style="font-size: 80%; font-weight: normal;">{{{honorific_prefix|}}}</div>}}<div class="fn">{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}</div>{{#if:{{{honorific_suffix|}}}|<div class="honorific-suffix" style="font-size: 80%; font-weight: normal;">{{{honorific_suffix|}}}</div>}}
== TemplateData Documentation ==
This is the documentation for the VisualEditor form interface.


| subheader    = {{#ifeq:{{lc: {{if empty|{{{child|}}}|{{{embed|}}}}}}}|yes|{{#if:{{{embed_title|}}}|'''{{{embed_title|}}}'''}}}}
<templatedata>
| subheader2  = {{#switch:{{if empty|{{{child|}}}|{{{embed|}}}}}|yes=<!--empty when this infobox is embedded-->|#default={{#if:{{{native_name|}}}|{{#if:{{{native_name_lang|}}}|<div class="nickname" lang="{{{native_name_lang}}}">}}{{{native_name}}}{{#if:{{{native_name_lang|}}}|</div>}} }} }}
{
| subheaderstyle2 = font-size: 125%
"description": "A Wikipedia-style infobox summarizing key details for a character.",
"format": "block",
"params": {
"name": {
"label": "Character Name",
"description": "The name of the character. Defaults to the page title.",
"type": "string",
"suggested": true
},
"image": {
"label": "Image File",
"description": "Just the filename, e.g., CharacterPortrait.png (do not type 'File:')",
"type": "wiki-file-name",
"suggested": true
},
"species": {
"label": "Species",
"description": "The character's race or biological species.",
"type": "string",
"suggested": true
},
"faction": {
"label": "Faction / Alignment",
"description": "The group, military unit, hivemind, or side they fight for.",
"type": "string",
"suggested": true
},
"status": {
"label": "Current Status",
"description": "Alive, Deceased, Missing, Captured, Unknown, etc.",
"type": "string",
"suggested": true
},
"abilities": {
"label": "Powers / Abilities",
"description": "Notable skills or unique powers.",
"type": "string"
}
}
}
</templatedata>


| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image_size|}}}}}|300|{{{image_size|}}}}}}}x200px|{{{image_size|}}}}}|sizedefault=frameless|upright={{if empty|{{{image_upright|}}}|1}}|alt={{if empty|{{{alt|}}}|{{{image_alt|}}}}}|suppressplaceholder=yes}}
[[Category:Infobox templates]]
| caption    = {{if empty|{{{caption|}}}|{{{image_caption|}}}}}
 
| label2    = Pronunciation
| data2      = {{{pronunciation|}}}
 
| label10    = Born
| data10    = {{br separated entries
  |1={{#if:{{{birth_name|}}}|<div style="display:inline" class="nickname">{{{birth_name|}}}</div>}}
  |2={{#invoke:person date|birth}}
  |3={{#if:{{{birth_place|}}}|<div style="display:inline" class="birthplace">{{{birth_place|}}}</div>}}
}}
 
| label11    = Bapti{{#if:{{{baptized|}}}|z|s}}ed
| data11    = {{#if:{{{birth_date|}}}||{{if empty|{{{baptized|}}}|{{{baptised|}}}}}}}
 
| label12    = Disappeared
| data12    = {{Br separated entries|1={{{disappeared_date|}}}|2={{{disappeared_place|}}}}}
 
| label13    = Status
| data13    = {{{disappeared_status|}}}
 
| label14    = Died
| data14    = {{br separated entries
  |1={{#invoke:person date|death}}
  |2={{#if:{{{death_place|}}}|<div style="display:inline" class="deathplace">{{{death_place|}}}</div>}}
}}
 
| label15    = {{longitem|Cause&nbsp;of death}}
| data15    = {{{death_cause|}}}
 
| label16    = {{longitem|Body discovered}}
| data16    = {{{body_discovered|}}}
 
| label17    = {{longitem|{{#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|}}}|2={{{resting_place_coordinates|}}}}}}}
| class17    = label
 
| label18    = Monuments
| data18    = {{{monuments|}}}
 
| label21    = Other&nbsp;name{{pluralize from text|{{{other_names|}}}|plural=s}}
| data21    = {{{other_names|}}}
| class21    = nickname
 
| label22    = Siglum
| data22    = {{{siglum|}}}
 
| label23    = Citizenship
| data23    = {{{citizenship|}}}
| class23    = category
 
| label24    = Education
| data24    = {{{education|}}}
 
| label25    = Alma&nbsp;mater
| data25    = {{{alma_mater|}}}
 
| label26    = Occupation{{Pluralize from text|{{{occupation|}}}|plural=s}}
| data26    = {{{occupation|}}}
| class26    = role
 
| label27    = Years&nbsp;active
| data27    = {{{years_active|}}}
 
| label28    = Era
| data28    = {{{era|}}}
| class28    = category
 
| label29    = Employer{{Pluralize from text|{{{employer|}}}|likely=(s)|plural=s}}
| data29    = {{{employer|}}}{{main other|{{Pluralize from text| {{{employer|}}}|likely=[[Category:Pages using infobox person with multiple employers]]}}}}
| class29    = org
 
| label30    = {{#if:{{{organisation|}}}|Organisation|Organization}}{{#if:{{{organizations|}}}|s|{{pluralize from text|{{if empty|{{{organization|}}}|{{{organisation|}}}}}|likely=(s)|plural=s}}}}
| data30    = {{if empty|{{{organisation|}}}|{{{organization|}}}|{{{organizations|}}}}}{{main other|{{Pluralize from text|{{if empty|{{{organization|}}}|{{{organisation|}}}}}|likely=[[Category:Pages using infobox person with multiple organizations]]}}}}
| class30    = org
 
| label31    = Agent{{Pluralize from text|{{{agent|}}}|likely=(s)|plural=s}}
| data31    = {{{agent|}}}{{main other|{{Pluralize from text|{{{agent|}}}|likely=[[Category:Pages using infobox person with multiple agents]]}}}}
| class31    = agent
 
| label32    = Known&nbsp;for
| data32    = {{{known_for|}}}
 
| label33    = Works
| data33    = {{{works|}}}
 
| label34    = Notable&nbsp;credit{{Pluralize from text|{{{credits|}}}|likely=(s)|plural=s}}
| data34    = {{#if:{{{works|}}}||<!--
                -->{{{credits|}}}{{main other|{{Pluralize from text|{{{credits|}}}|likely=[[Category:Pages using infobox person with multiple credits]]}}}}}}
 
| label35    = Label{{Pluralize from text|{{{label_name|}}}|likely=(s)|plural=s}}
| data35    = {{#if:{{{works|}}}{{{credits|}}}||<!--
                -->{{{label_name|}}}{{main other|{{Pluralize from text|{{{label_name|}}}|likely=[[Category:Pages using infobox person with multiple labels]]}}}}}}
 
| label36    = Notable&nbsp;work
| data36    = {{#if:{{{works|}}}{{{credits|}}}{{{label_name|}}}||{{{notable_works|}}}}}
 
| label37    = Style
| data37    = {{{style|}}}
| class37    = category
 
| label40    = Television
| data40    = {{{television|}}}
 
| label41    = Height
| data41    = {{#if:{{{height_m|}}}{{{height_cm|}}}{{{height_ft|}}}{{{height_in|}}} | {{convinfobox|{{if empty|{{{height_m|}}}|{{{height_cm|}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}}}}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}}}
 
| label42    = {{#if:{{{office|}}}|Office|Title}}
| data42    = {{if empty|{{{office|}}}|{{{title|}}}}}
| class42    = title
 
| label43    = Term
| data43    = {{{term|}}}
 
| label44    = Predecessor
| data44    = {{{predecessor|}}}
 
| label45    = Successor
| data45    = {{{successor|}}}
 
| label46    = {{longitem|Political party}}
| data46    = {{{political_party|}}}
| class46    = org
 
| label47    = {{longitem|Other political<br />affiliations}}
| data47    = {{{other_party|}}}
| class47    = org
 
| label48    = Movement
| data48    = {{{movement|}}}
| class48    = category
 
| label49    = Opponent{{Pluralize from text|{{{opponents|}}}|likely=(s)|plural=s}}
| data49    = {{{opponents|}}}{{main other|{{Pluralize from text|{{{opponents|}}}|likely=[[Category:Pages using infobox person with multiple opponents]]}}}}
 
| label50    = {{longitem|Board member&nbsp;of}}
| data50    = {{{boards|}}}
 
| label51    = {{longitem|{{#if:{{{criminal_charges|}}}|Criminal charges|Criminal charge{{pluralize from text|{{{criminal_charge|}}}|likely=(s)|plural=s}}}}}}
| data51    = {{if empty|{{{criminal_charges|}}}|{{{criminal_charge|}}}}}{{main other|{{Pluralize from text|{{{criminal_charge|}}}|likely=[[Category:Pages using infobox person with multiple criminal charges]]}}}}
 
| label52    = {{longitem|Criminal penalty}}
| data52    = {{{criminal_penalty|}}}
 
| label53    = {{longitem|{{#if:{{{judicial_status|}}}|Judicial status|Criminal status}}}}
| data53    = {{if empty|{{{judicial_status|}}} | {{{criminal_status|}}}}}
| class53    = category
 
| label54    = Spouse{{#if:{{{spouses|}}}|s|{{Pluralize from text|{{{spouse|}}}|likely=(s)|plural=s}}}}
| data54    = {{if empty|{{{spouse|}}}|{{{spouses|}}}}}{{main other|{{Pluralize from text| {{{spouse|}}} |likely=[[Category:Pages using infobox person with multiple spouses]]}}}}
 
| label55    = Partner{{#if:{{{partners|}}}|s|{{Pluralize from text|{{if empty|{{{partner|}}}|{{{domesticpartner|}}}|{{{domestic_partner|}}}|{{{partner(s)|}}}}} |likely=(s)|plural=s}}}}
| data55    = {{if empty|{{{partner|}}}|{{{partners|}}}}}{{main other|{{Pluralize from text| {{{partner|}}} |likely=[[Category:Pages using infobox person with multiple partners]]}}}}
 
| label56    = Children
| data56    = {{{children|}}}
 
| label57    = {{#if:{{{parents|}}}|Parent{{Pluralize from text|{{{parents|}}}|likely=(s)|plural=s}}|<!--
              -->{{#ifexpr:{{count|{{{father|}}}|{{{mother|}}}}} > 1|Parents|{{#if:{{{father|}}}|Father|{{#if:{{{mother|}}}|Mother}}}}}}}}
| data57    = {{#if:{{{parents|}}}|{{{parents}}}|{{#ifexpr:{{count|{{{father|}}}|{{{mother|}}}}} > 1|{{Unbulleted list|{{{father}}} (father)|{{{mother}}} (mother)}}|{{{mother|}}}{{{father|}}}}}}}<!--
                -->{{main other|{{Pluralize from text|{{{parents|}}}|likely=[[Category:Pages using infobox person with multiple parents]]}}}}
 
| label58    = Relatives
| data58    = {{{relatives|}}}
 
| label59    = Family
| data59    = {{{family|}}}
 
| label60    = Call&nbsp;sign
| data60    = {{{callsign|}}}
 
| label61    = Awards
| data61    = {{{awards|}}}
 
| label62    = {{#if:{{{honours|}}}|Honours|Honors}}
| data62    = {{if empty|{{{honours|}}}|{{{honors|}}}}}
 
| data64    = {{{module|}}}
| data65    = {{{module2|}}}
| data66    = {{{module3|}}}
| data67    = {{{module4|}}}
| data68    = {{{module5|}}}
| data69    = {{{module6|}}}
 
| label70    = Website
| data70    = {{{website|}}}
 
| header71  = {{#if:{{{signature|}}}|{{if empty|{{{signature_type|}}}|Signature}}}}
| data72    = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|class=infobox-signature skin-invert|sizedefault=150px|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 {{if empty|{{lcfirst:{{{template_name|}}}}}|infobox person}} with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview = Page using [[Template:{{#if:{{{template_name|}}}|{{ucfirst:{{{template_name|}}}}}|Infobox person}}]] with unknown parameter "_VALUE_"|ignoreblank=y| agent | alma_mater | alt | awards | baptised | baptized | birth_date | birth_name | birth_place | boards | body_discovered | burial_coordinates | burial_place | callsign | caption | child | children | citizenship | credits | criminal_charge | criminal_charges | criminal_penalty | criminal_status | death_cause | death_date | death_place | disappeared_date | disappeared_place | disappeared_status | domestic_partner | domesticpartner | education | embed | embed_title | employer | era | family | father | footnotes | height | height_cm | height_ft | height_in | height_m | honorific_prefix | honorific_suffix | honors | honours | image | image_alt | image_caption | image_size | image_upright | judicial_status | known_for | label_name | landscape | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | native_name | native_name_lang | nocat_wdimage | notable_works | occupation | office | opponents | organisation | organization | organizations | other_names | other_party | parents | partner | partner(s) | partners | political_party | predecessor | pronunciation | relatives | resting_place | resting_place_coordinates | siglum | signature | signature_alt | signature_size | signature_type | spouse | spouses | style | successor | television | template_name | term | title | website | works | years_active }}<!--
-->{{Main other|{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<!--
-->{{#if:{{{signature|}}}|[[Category:Biography with signature]]}}<!--
-->[[Category:Articles with hCards]]
}}<!--
-->{{#invoke:Check for conflicting parameters|check
| nested = 1
| template = [[Template:{{#if:{{{template_name|}}}|{{ucfirst:{{{template_name|}}}}}|Infobox person}}]]
| cat = {{main other|Category:Pages using {{if empty|{{{template_name|}}}|infobox person}} with conflicting parameters}}
| child; embed
| image_alt; alt
| height_m; height_cm; height_ft; height
| caption; image_caption
| baptized; baptised
| organisation; organization; organizations
| {{#if:{{{works|}}}|works;}} {{#if:{{{credits|}}}|credits;}} {{#if:{{{label_name|}}}|label_name;}} notable_works
| height_m; height_cm
| office; title
| criminal_charges; criminal_charge
| spouse; spouses
| partner; partners
| {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{father|}}}||NULL_}}father
| {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{mother|}}}||NULL_}}mother
| honours; honors
}}{{#ifeq:{{if empty|{{{child|}}}|{{{embed|}}}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revision as of 21:33, 7 June 2026

Infobox Character

TemplateData Documentation

This is the documentation for the VisualEditor form interface.

A Wikipedia-style infobox summarizing key details for a character.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Character Namename

The name of the character. Defaults to the page title.

Stringsuggested
Image Fileimage

Just the filename, e.g., CharacterPortrait.png (do not type 'File:')

Filesuggested
Speciesspecies

The character's race or biological species.

Stringsuggested
Faction / Alignmentfaction

The group, military unit, hivemind, or side they fight for.

Stringsuggested
Current Statusstatus

Alive, Deceased, Missing, Captured, Unknown, etc.

Stringsuggested
Powers / Abilitiesabilities

Notable skills or unique powers.

Stringoptional