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:
<div class="portable-infobox" style="float: right; clear: right; width: 320px; margin: 0 0 15px 20px; background: #f8f9fa; border: 1px solid #bcc2cb; border-radius: 8px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,0.06); box-sizing: border-box;">
<includeonly>{{#invoke:infobox|infoboxTemplate|child={{if empty|{{{child|}}}|{{{embed|}}}}}
 
| bodyclass  = biography vcard
  <div style="background: #1e90ff; color: white; text-align: center; font-weight: 700; font-size: 18px; padding: 10px 15px; letter-spacing: 0.5px;">{{{name|{{PAGENAME}}}}}</div>
 
  {{#if:{{{image|}}}|
    <div style="background: #ffffff; padding: 10px; text-align: center; border-bottom: 1px solid #eaecf0;">
      [[File:{{{image}}}|300x400px|center|thumbnail|link=]]
    </div>
  }}
 
  <table style="width: 100%; border-collapse: collapse; margin: 5px 0;">
    {{#if:{{{species|}}}|
      <tr style="border-bottom: 1px solid #eaecf0;">
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; width: 35%; vertical-align: top;">Species</td>
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{species}}}</td>
      </tr>
    }}
    {{#if:{{{faction|}}}|
      <tr style="border-bottom: 1px solid #eaecf0;">
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Faction</td>
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{faction}}}</td>
      </tr>
    }}
    {{#if:{{{status|}}}|
      <tr style="border-bottom: 1px solid #eaecf0;">
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Status</td>
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">
          <span style="display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: bold; font-size: 12px; background: {{#switch:{{lower:{{{status}}}}}|alive=#e1f5fe|deceased=#ffebee|#f5f5f5}}; color: {{#switch:{{lower:{{{status}}}}}|alive=#0288d1|deceased=#c62828|#616161}};">{{{status}}}</span>
        </td>
      </tr>
    }}
    {{#if:{{{abilities|}}}|
      <tr>
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Abilities</td>
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{abilities}}}</td>
      </tr>
    }}
  </table>
</div><noinclude>


== TemplateData Documentation ==
| 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>}}
This is the documentation for the VisualEditor form interface.


<templatedata>
| subheader    = {{#ifeq:{{lc: {{if empty|{{{child|}}}|{{{embed|}}}}}}}|yes|{{#if:{{{embed_title|}}}|'''{{{embed_title|}}}'''}}}}
{
| 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>}} }} }}
"description": "An infobox summarizing key details for a character in the universe.",
| subheaderstyle2 = font-size: 125%
"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>


[[Category:Infobox templates]]
| 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}}
| 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:31, 7 June 2026