Template:Infobox person: Difference between revisions

From PZwiki
m (update infobox link)
m (fix for sections not displaying if a parameter is empty)
Line 106: Line 106:
| 5 = {{#if:{{{image5|}}}|[[File:{{{icon5|{{{image5}}}}}}|{{{icon_name5|{{{image_name5|{{{name|}}}}}}}}}|link=]]}}
| 5 = {{#if:{{{image5|}}}|[[File:{{{icon5|{{{image5}}}}}}|{{{icon_name5|{{{image_name5|{{{name|}}}}}}}}}|link=]]}}
| caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
| caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
}}{{#if:{{{nickname|{{{alias|{{{other_names|{{{status|{{{residence|{{{ethnicity|{{{education|{{{occupation|{{{years_active|{{{known_for|{{{socials|{{{website|{{{notes|footnotes}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}}{{#if:{{{nickname|}}}{{{alias|}}}{{{other_names|}}}{{{status|}}}{{{residence|}}}{{{ethnicity|}}}{{{education|}}}{{{occupation|}}}{{{years_active|}}}{{{known_for|}}}{{{socials|}}}{{{website|}}}
| {{#if:{{{nickname|{{{alias|{{{other_names|}}}}}}}}}
| {{#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=Aliases|arg1=aliases}}|{{{nickname|{{{alias|{{{other_names|}}}}}}}}}}} }}{{#if:{{{birthday|}}}
Line 119: Line 119:
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Socials|arg1=socials}}|{{{socials|}}}}} }}{{#if:{{{website|}}}  
| {{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|}}}}} }}
| {{Infobox/sandbox/row|{{tt|name=Infobox person|default=Website|arg1=website}}|{{{website|}}}}} }}
}}{{#if:{{{notes|{{{footnotes|}}}}}}
}}{{#if:{{{notes|}}}{{{footnotes|}}}
|{{Infobox/section
|{{Infobox/section
  | {{tt|name=Infobox person|default=Notes|arg1=notes}}
  | {{tt|name=Infobox person|default=Notes|arg1=notes}}

Revision as of 08:32, 23 February 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.