Template:Infobox person: Difference between revisions

From PZwiki
(fixed duplicate argument)
m (Automated Formatting)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Infobox|child={{{child|}}}
<noinclude>{{Documentation/sandbox|doc=
| bodyclass  = biography vcard
{{About|real world people|in-game characters|Template:infobox character}}
| bodystyle  = {{#if:{{{box_width|}}}|width:{{{box_width}}};}}
This is an infobox for people that have had some involvement with the game (not to be used for in-game characters).
| above      = {{#if:{{{honorific prefix|{{{honorific_prefix|}}}}}}|<span class="honorific-prefix" style="font-size: small">{{{honorific prefix|{{{honorific_prefix|}}}}}}</span><br />}}<includeonly><span class="fn">{{{name|{{PAGENAME}}}}}</span></includeonly>{{#if:{{{honorific suffix|{{{honorific_suffix|}}}}}}|<br /><span class="honorific-suffix" style="font-size: small">{{{honorific suffix|{{{honorific_suffix|}}}}}}</span>}}
| image      = {{#if:{{Hide if placeholder image|{{{image|}}}}}|[[File:{{{image}}}|{{px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|frameless}}|alt={{{alt|}}}]]}}
| caption    = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}


| label1    = Native name
==Usage==
| data1      = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span> }}
{{Infobox_person
|name=name
|image=Image.png
|image_caption=image_caption
|alias=alias
|birthday=birthday
|status=status
|residence=residence
|ethnicity=ethnicity
|education=education
|occupation=occupation
|years_active=years_active
|known_for=known_for
|socials=socials
|website=website
|notes=notes
}}
<pre>
{{Infobox_person
|name=
|image=
|image_caption=
|alias=
|birthday=
|status=
|residence=
|ethnicity=
|education=
|occupation=
|years_active=
|known_for=
|socials=
|website=
|notes=
}}
</pre>


| label10    = Born
===Parameters===
| data10      = {{br separated entries|1={{#if:{{{birth_name|{{{birthname|}}}}}}|<span class="nickname">{{{birth_name|{{{birthname|}}}}}}</span>}}|2={{{birth_date|}}}|3={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span>}}}}
;<code>image</code>
:Image of the person. Insert an image link in the form: <code>Image.png</code>. Multiple images can be defined by appending a number: <code>image2</code>.
;<code>image_caption</code>
:Insert a caption for the image(s).
;<code>alias</code> or <code>nickname</code> or <code>other_names</code>
:The person's aliases or online persona/username.
;<code>birthday</code>
:Their birthday - excluding the year, for privacy concerns.
;<code>status</code>
:Their status on Project Zomboid, i.e. have they moved onto other things?
;<code>residence</code>
:Residence.
;<code>ethnicity</code>
:Ethnicity - remove if the same as residence.
;<code>education</code>
:Place or level of education.
;<code>occupation</code>
:Job of the person, i.e. what do they do on the game (art, code, etc.)
;<code>years_active</code>
:Range of years they've been working on the game. E.g. <code><nowiki>2009–{{CURRENTYEAR}}</nowiki></code> results in: 2009–{{CURRENTYEAR}}
;<code>known_for</code>
:Other works they're known for, whether it be games, mods, or features.
;<code>socials</code>
:Social links displayed as their handle. E.g. [https://twitter.com/CaptainBinky @CaptainBinky] (twitter)
;<code>website</code>
:Personal website.
;<code>notes</code> or <code>footnotes</code>
:Other notes and footnotes.


| label11    = Status
{{Translation guide|<syntaxhighlight lang="html">{{#switch: {{{1|}}}
| data11      = {{{disappeared_status|}}}
| aliases = Aliases
 
| birthday = Birthday
| label12    = Died
| status = Status
| data12      = {{br separated entries|1={{{death_date|}}}|2={{#if:{{{death_place|}}}|<span class="deathplace">{{{death_place|}}}</span>}}}}
| residence = Residence
 
| ethnicity = Ethnicity
| label13    = Cause&nbsp;of death
| education = Education
| data13      = {{{death cause|{{{death_cause|}}}}}}
| occupation = Occupation
 
| years_active = Years active
| label14    = Resting place
| known_for = Known for
| class14    = label
| socials = Socials
| data14      = {{br separated entries|{{{resting place|{{{resting_place|{{{restingplace|}}}}}}}}}|{{{resting place coordinates|{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}}}}}}
| website = Website
 
| notes = Notes
 
| #default = [[Category:Incorrect template usage]]
| label15    = Residence
}}
| class15    = {{#if:{{{death_date|}}}{{{death_place|}}}||label}}
</syntaxhighlight>}}
| data15      = {{{residence|}}}
 
| class16    = category
| label16    = Nationality
| data16    = {{{nationality|}}}
 
| label17    = Other names
| class17    = nickname
| data17    = {{{other names|{{{other_names|{{{othername|{{{alias|}}}}}}}}}}}}
 
| class18    = category
| label18    = Ethnicity
| data18    = {{{ethnicity|}}}
 
| class19    = category
| label19    = Citizenship
| data19    = {{{citizenship|}}}
 
| label20    = Education
| data20    = {{{education|}}}
 
| label21    = ''[[Alma mater]]''
| data21    = {{{alma mater|{{{alma_mater|}}}}}}
 
| label22    = Occupation
| class22    = role
| data22    = {{{occupation|}}}
 
| label23    = Years&nbsp;active
| data23    = {{{years active|{{{years_active|{{{yearsactive|}}}}}}}}}
 
| label24    = Employer
| data24    = {{{employer|}}}
| class24    = org
 
| label25    = Organization
| data25    = {{{organization|{{{organizations|}}}}}}
| class25    = org
 
| label26    = Agent
| data26    = {{{agent|}}}
| class26    = agent
 
| label27    = Known&nbsp;for
| data27    = {{{known for|{{{known_for|{{{known|}}}}}}}}}
 
| label28    = {{#if:{{{credits|}}}|Notable credit(s)|Notable work(s)}}
| data28    = {{#if:{{{credits|}}}|{{{credits}}}|{{{notable works|{{{notable_works|}}}}}}}}
 
| label29    = Style
| data29    = {{{style|}}}
| class29    = category
 
| label30    = Home town
| data30    = {{{home town|{{{home_town|}}}}}}
 
| label31    = Salary
| data31    = {{{salary|}}}
 
| label32    = Net worth
| data32    = {{{net worth|{{{net_worth|{{{networth|}}}}}}}}}
 
| label33    = Height
| data33    = {{{height|}}}
 
| label34    = Weight
| data34    = {{{weight|}}}
 
| label35    = Television
| data35    = {{{television|}}}
 
| label36    = Title
| data36    = {{{title|}}}
| class36    = title
 
| label37    = Spouse(s)
| data37    = {{{spouse|}}}
 
| label38    = Partner(s)
| data38    = {{{partner|{{{domesticpartner|{{{domestic_partner|}}}}}}}}}
 
| label39    = Children
| data39    = {{{children|}}}
 
| label40    = Parents
| data40    = {{{parents|}}}
 
| label41    = Relatives
| data41    = {{{relations|{{{relatives|}}}}}}
 
| label42    = Family
| data42    = {{{family|}}}
 
| label43    = Call-sign
| data43    = {{{callsign|}}}
 
| label44    = Awards
| data44    = {{{awards|}}}
 
| label45    = {{#if:{{{honours|}}}|Honours|Honors}}
| data45    = {{#if:{{{honours|}}}|{{{honours}}}|{{{honors|}}}}}
 
| label46    = Signature
| data46    = {{#if:{{{signature|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}} }}
 
| data47    = {{{misc|{{{module|}}}}}}
| data48    = {{{misc2|{{{module2|}}}}}}
| data49    = {{{misc3|{{{module3|}}}}}}
| data50    = {{{misc4|{{{module4|}}}}}}
| data51    = {{{misc5|{{{module5|}}}}}}
| data52    = {{{misc6|{{{module6|}}}}}}
 
| header53  = {{#if:{{{website|{{{homepage|{{{URL|}}}}}}}}}|Website}}
| data53    = {{{website|{{{homepage|{{{URL|}}}}}}}}}


| below      = {{#if:{{{footnotes|}}}|'''Notes'''<div style="line-height:1.2em;">{{{footnotes}}}</div>}}
==See also==
| belowstyle = border-top:1px solid #aaaaaa; text-align:left
*{{ll|Template:Infobox character}}
*{{ll|Template:Infobox company}}
*{{ll|Template:Infobox location}}


}}
}}
<noinclude>{{documentation}}</noinclude>
{{ll|Category:Infobox}}</noinclude><includeonly>{{Infobox/sandbox
| title = {{{name|{{#getdisplaytitle:{{FULLPAGENAME}}}}}}}
| color = var(--color-blue)
| {{Infobox/image <!-- ## Image ## -->
| p1 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|}}}|{{{image_name|{{{name|}}}}}}]]}}
| 1 = {{#if:{{{image2|}}}|[[File:{{{icon|{{{image}}}}}}|{{{icon_name|{{{image_name|{{{name|}}}}}}}}}|link=]]}}
| p2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|{{{image_size2|}}}|{{{image_name2|{{{name|}}}}}}]]}}
| 2 = {{#if:{{{image2|}}}|[[File:{{{icon2|{{{image2}}}}}}|{{{icon_name2|{{{image_name2|{{{name|}}}}}}}}}|link=]]}}
| p3 = {{#if:{{{image3|}}}|[[File:{{{image3}}}|{{{image_size3|}}}|{{{image_name3|{{{name|}}}}}}]]}}
| 3 = {{#if:{{{image3|}}}|[[File:{{{icon3|{{{image3}}}}}}|{{{icon_name3|{{{image_name3|{{{name|}}}}}}}}}|link=]]}}
| p4 = {{#if:{{{image4|}}}|[[File:{{{image4}}}|{{{image_size4|}}}|{{{image_name4|{{{name|}}}}}}]]}}
| 4 = {{#if:{{{image4|}}}|[[File:{{{icon4|{{{image4}}}}}}|{{{icon_name4|{{{image_name4|{{{name|}}}}}}}}}|link=]]}}
| p5 = {{#if:{{{image5|}}}|[[File:{{{image5}}}|{{{image_size5|}}}|{{{image_name5|{{{name|}}}}}}]]}}
| 5 = {{#if:{{{image5|}}}|[[File:{{{icon5|{{{image5}}}}}}|{{{icon_name5|{{{image_name5|{{{name|}}}}}}}}}|link=]]}}
| caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
}}{{#if:{{{nickname|}}}{{{alias|}}}{{{other_names|}}}{{{status|}}}{{{residence|}}}{{{ethnicity|}}}{{{education|}}}{{{occupation|}}}{{{years_active|}}}{{{known_for|}}}{{{socials|}}}{{{website|}}}
| {{#if:{{{nickname|{{{alias|{{{other_names|}}}}}}}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Aliases|arg1=aliases}}|{{{nickname|{{{alias|{{{other_names|}}}}}}}}}}} }}{{#if:{{{birthday|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Birthday|arg1=birthday}}|{{{birthday|}}}}} }}{{#if:{{{status|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Status|arg1=status}}|{{{status|}}}}} }}{{#if:{{{residence|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Residence|arg1=residence}}|{{{residence|}}}}} }}{{#if:{{{ethnicity|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Ethnicity|arg1=ethnicity}}|{{{ethnicity|}}}}} }}{{#if:{{{education|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Education|arg1=education}}|{{{education|}}}}} }}{{#if:{{{occupation|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Occupation|arg1=occupation}}|{{{occupation|}}}}} }}{{#if:{{{years_active|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Years active|arg1=years_active}}|{{{years_active|}}}}} }}{{#if:{{{known_for|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Known for|arg1=known_for}}|{{{known_for|}}}}} }}{{#if:{{{socials|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Socials|arg1=socials}}|{{{socials|}}}}} }}{{#if:{{{website|}}}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Website|arg1=website}}|{{{website|}}}}} }}
}}{{#if:{{{notes|}}}{{{footnotes|}}}
|{{Infobox/section
  | {{tt|name=Infobox person|default=Notes|arg1=notes}}
  | color = var(--color-blue)
  | id = business-notes
  | collapsed = true
  | <div style{{=}}"padding:0em 0.5em 0.5em;">{{{notes|{{{footnotes|}}}}}}</div>
}}
}}
}}</includeonly>

Latest revision as of 14:14, 14 April 2024

Notebook.pngTemplate Documentation
PlushSpiffo.pngThis template is about real world people. For in-game characters, see Template:infobox character.

This is an infobox for people that have had some involvement with the game (not to be used for in-game characters).

Usage

name
name
image_caption
Aliases
alias
Birthday
birthday
Status
status
Residence
residence
Ethnicity
ethnicity
Education
education
Occupation
occupation
Years active
years_active
Known for
known_for
Socials
socials
Website
website
Notes
notes
{{Infobox_person
|name=
|image=
|image_caption=
|alias=
|birthday=
|status=
|residence=
|ethnicity=
|education=
|occupation=
|years_active=
|known_for=
|socials=
|website=
|notes=
}}

Parameters

image
Image of the person. Insert an image link in the form: Image.png. Multiple images can be defined by appending a number: image2.
image_caption
Insert a caption for the image(s).
alias or nickname or other_names
The person's aliases or online persona/username.
birthday
Their birthday - excluding the year, for privacy concerns.
status
Their status on Project Zomboid, i.e. have they moved onto other things?
residence
Residence.
ethnicity
Ethnicity - remove if the same as residence.
education
Place or level of education.
occupation
Job of the person, i.e. what do they do on the game (art, code, etc.)
years_active
Range of years they've been working on the game. E.g. 2009–{{CURRENTYEAR}} results in: 2009–2024
known_for
Other works they're known for, whether it be games, mods, or features.
socials
Social links displayed as their handle. E.g. @CaptainBinky (twitter)
website
Personal website.
notes or footnotes
Other notes and footnotes.

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| aliases = Aliases
| birthday = Birthday
| status = Status
| residence = Residence
| ethnicity = Ethnicity
| education = Education
| occupation = Occupation
| years_active = Years active
| known_for = Known for
| socials = Socials
| website = Website
| notes = Notes
| #default = [[Category:Incorrect template usage]]
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.