Template:Infobox character: Difference between revisions

From PZwiki
m (Update Kate example, remove spaces, minor)
m (Automated Formatting)
 
(One intermediate revision by one other user not shown)
Line 25: Line 25:
|items=items
|items=items
}}
}}
<syntaxhighlight lang=text>{{Infobox character
<syntaxhighlight lang=text>{{Infobox character
|name=
|name=
Line 55: Line 54:
|name=Kate Smith
|name=Kate Smith
|image=805 max.jpg
|image=805 max.jpg
|image2=Kate.png
|image3=Kate Smith.png
|image3=Kate Smith.png
|image4=K&B intro.png
|image4=K&B intro.png
Line 67: Line 67:
|items=Crutches, Bandages, Painkillers, Pillow
|items=Crutches, Bandages, Painkillers, Pillow
}}
}}
<syntaxhighlight lang=text>{{Infobox character
<syntaxhighlight lang=text>{{Infobox character
|name=Kate Smith
|name=Kate Smith
Line 125: Line 124:
|{{Infobox/sandbox/row
|{{Infobox/sandbox/row
|{{tt|name=Infobox character|default=Nickname|arg1=nickname}}
|{{tt|name=Infobox character|default=Nickname|arg1=nickname}}
|{{{nickname|}}}  
|{{{nickname|}}}
}}
}}
}}{{#if:{{{sex|}}}
}}{{#if:{{{sex|}}}
|{{Infobox/sandbox/row
|{{Infobox/sandbox/row
|{{tt|name=Infobox character|default=Sex|arg1=sex}}
|{{tt|name=Infobox character|default=Sex|arg1=sex}}
|{{{sex|}}}  
|{{{sex|}}}
}}
}}
}}{{#if:{{{personality|}}}
}}{{#if:{{{personality|}}}

Latest revision as of 14:09, 14 April 2024

Notebook.pngTemplate Documentation

This is an infobox used on articles about an in-game character.

Usage

name
image1
image2
image3
image4
image5
General
Nickname
nickname
Sex
sex
Personality
personality
Occupation
occupation
Traits
traits
Location
location
Show location on an interactive map.coordinates
Items
items
{{Infobox character
|name=
|image=
|image2=
|image3=
|image4=
|image5=
|image_name=
|image_name2=
|image_name3=
|image_name4=
|image_name5=
<!-- GENERAL -->
|nickname=
|sex=
|personality=
|occupation=
|traits=
|location=
|coordinates=
<!-- ITEMS -->
|items=
}}

Example

Kate Smith
Concept art
Outfit
In-game (past)
In-game (future)
General
Sex
Female
Personality
Friendly
Location
Bob and Kate's safehouse
Show location on an interactive map.10746x9415
Items
Crutches, Bandages, Painkillers, Pillow
{{Infobox character
|name=Kate Smith
|image=805 max.jpg
|image3=Kate Smith.png
|image4=K&B intro.png
|image_name=Concept art
|image_name2=Outfit
|image_name3=In-game (past)
|image_name4=In-game (future)
|sex=Female
|personality=Friendly
|location=Bob and Kate's safehouse
|coordinates=10746x9415
|items=Crutches, Bandages, Painkillers, Pillow
}}

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|}}}
<!-- section -->
| general = General
| items = Items
<!-- data -->
| nickname = Nickname
| sex = Sex
| personality = Personality
| occupation = Occupation
| traits = Traits
| location = Location
| #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.
Editors can experiment in this template's sandbox.