Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character Infobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly><!--
{| class="infobox" style="width:22em;"
 
|-
Template
! colspan="2" | {{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}
--------
{{#if:{{{image|}}} |
TODO: Switch born and died dates Template:SDA
|-
-->{{InfoboxNeue
| colspan="2" style="text-align:center;" |
|title = {{{Name}}}
[[File:{{{image}}}|{{{image_size|250px}}}]]
|subtitle = {{#if:{{{Role|}}}|{{{Role}}}}}
{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}}
|image = {{{Image|}}}
}}
|label1 = Race
|-
|content1 = {{#if:{{{Race|}}}|[[{{{Race}}}]]}}
! colspan="2" | Personal details
|label2 = Gender
{{#if:{{{born|}}}       ||-! Born        | {{{born}}}       }}
|content2 = {{#if:{{{Gender|}}}|[[:Category:{{{Gender}}} Characters|{{{Gender}}}]]}}
{{#if:{{{died|}}}       ||-! Died        | {{{died}}}       }}
|label3 = Born
{{#if:{{{nationality|}}}||-! Nationality | {{{nationality}}} }}
|content3 = {{#if:{{{Born|}}}|{{{Born}}}}}
{{#if:{{{occupation|}}} ||-! Occupation  | {{{occupation}}} }}
|label4 = Died
{{#if:{{{known_for|}}} ||-! Known for  | {{{known_for}}}   }}
|content4 = {{#if:{{{Died|}}}|{{{Died}}}}}
|}
|label5 = Faction
</includeonly>
|content5 = {{#if:{{{Faction|}}}|[[:Category:{{{Faction}}} Faction Characters|{{{Faction}}}]]}}
|label6 = Citizenship
|content6 = {{#if:{{{Citizenship|}}}|{{{Citizenship}}}}}
|label7 = Organization
|content7 = {{#if:{{{Organization|}}}|[[:Category:{{{Organization}}} Characters|{{{Organization}}}]]}}
|label8 = Actor
|content8 = {{#if:{{{Actor|}}}|{{{Actor}}}}}
<!-- Occupation -->
|section9 = {{#if:{{{Occupation|}}}|Occupation}}
|label10 = Occupation
|content10 = {{#if:{{{Occupation|}}}|{{{Occupation}}}}}
|label11 = Employer
|content11 = {{#if:{{{Employer|}}}|{{{Employer}}}}}
|label12 = Job title
|content12 = {{#if:{{{Job Title|}}}|{{{Job Title}}}}}
|label13 = Workplace
|content13 = {{#if:{{{Workplace|}}}|{{{Workplace}}}}}
<!-- Military service -->
|section14 = {{#if:{{{Rank|}}}|Military service}}
|label15 = Rank
|content15 = {{#if:{{{Rank|}}}|{{{Rank}}}}}
|label16 = Callsign
|content16 = {{#if:{{{Callsign|}}}|{{{Callsign}}}}}
|label17 = Branch
|content17 = {{#if:{{{Branch|}}}|[[{{{Branch}}}]]}}
|label18 = Unit
|content18 = {{#if:{{{Unit|}}}|[[{{{Unit}}}]]}}
|label19 = Years of service
|content19 = {{#if:{{{Service Start|}}}|{{{Service Start}}} - {{#if:{{{Service End|}}}|{{{Service End}}}|Present}}}}
<!-- Political office -->
|section20 = {{#if:{{{Office|}}}|Political office}}
|label21 = Office
|content21 = {{#if:{{{Office|}}}|[[{{{Office}}}]]}}
|label22 = Years Held
|content22 = {{#if:{{{Office Start|}}}|{{{Office Start}}} - {{#if:{{{Office End|}}}|{{{Office End}}}|Present}}}}
|label23 = Party
|content23 = {{#if:{{{Party|}}}|[[{{{Party}}}]]}}
|label24 = Constituency
|content24 = {{#if:{{{Constituency|}}}|[[{{{Constituency}}}]]}}
|label25 = System
|content25 = {{#if:{{{System|}}}|[[{{{System}}}]]}}
}}<!--
 
Category
--------
TODO: Switch category names to sentence case
-->{{#ifeq:{{NAMESPACENUMBER}}|0|<!--
-->[[Category:Characters]]<!--
-->{{#if:{{{Race|}}}|[[Category:{{{Race}}} Characters]]}}<!--
-->{{#if:{{{Gender|}}}|[[Category:{{{Gender}}} Characters]]}}<!--
-->{{#if:{{{Died|}}}|[[Category:Deceased  Characters]]|[[Category:Living Characters]]}}<!--
-->{{#if:{{{Faction|}}}|[[Category:{{{Faction}}} Faction Characters]]}}<!--
-->{{#if:{{{Organization|}}}|[[Category:{{{Organization}}} Characters]]}}<!--
-->{{#if:{{{Rank|}}}|[[Category:Military Characters]]}}<!--
-->{{#if:{{{Branch|}}}|[[Category:{{{Branch}}} Characters]]}}<!--
-->{{#ifeq:{{{Service End}}}|Present|[[Category:Active Duty Military Characters]]}}<!--
-->{{#if:{{{Office|}}}|[[Category:{{#invoke:pluralize|pluralize|{{{Office}}}}}]]}}<!--
-->{{#ifeq:{{{Office End}}}|Present|[[Category:Active Political Office Holders]]}}<!--
-->{{#if:{{{Party|}}}|[[Category:{{{Party}}}s]]}}<!--
-->}}<!--
 
Short description
-----------------
 
-->{{Short description|{{#if:{{{Role|}}}|{{Link capture|{{{Role}}}}}|Character in Star Citizen}}}}<!--
 
--></includeonly><!--
 
Documentation
-------------
--><noinclude>[[Category:Infobox Templates]]{{/doc}}</noinclude>

Revision as of 14:26, 26 June 2026

{{#invoke:Documentation|doc}}{{#seo: |type = website |description = Template:Character Infobox is a template page used on the Star Citizen Wiki. Templates are pages that are embedded (transcluded) into other pages to allow for the repetition of information. |site_name = Star Citizen Wiki |locale = en }}