Template:Infobox character: Difference between revisions

From PZwiki
m (Automated Formatting for Infobox and Section Headers)
m (Add missing image)
(One intermediate revision by the same user not shown)
Line 4: Line 4:
==Usage==
==Usage==
{{Infobox character
{{Infobox character
| name = name
|name=name
| image = Image.png
|image=Image.png
| image2 = Image.png
|image2=Image.png
| image3 = Image.png
|image3=Image.png
| image4 = Image.png
|image4=Image.png
| image5 = Image.png
|image5=Image.png
| image_name = image1
|image_name=image1
| image_name2 = image2
|image_name2=image2
| image_name3 = image3
|image_name3=image3
| image_name4 = image4
|image_name4=image4
| image_name5 = image5
|image_name5=image5
| nickname = nickname
|nickname=nickname
| sex = sex
|sex=sex
| personality = personality
|personality=personality
| occupation = occupation
|occupation=occupation
| traits = traits
|traits=traits
| location = location
|location=location
| coordinates = coordinates
|coordinates=coordinates
<!-- ITEMS -->
<!-- ITEMS -->
| items = items
|items=items
}}
}}


<syntaxhighlight lang=text>{{Infobox character
<syntaxhighlight lang=text>{{Infobox character
| name =  
|name=
| image =  
|image=
| image2 =  
|image2=
| image3 =  
|image3=
| image4 =  
|image4=
| image5 =  
|image5=
| image_name =  
|image_name=
| image_name2 =  
|image_name2=
| image_name3 =  
|image_name3=
| image_name4 =  
|image_name4=
| image_name5 =  
|image_name5=
<!-- GENERAL -->
<!-- GENERAL -->
| nickname =  
|nickname=
| sex =  
|sex=
| personality =  
|personality=
| occupation =  
|occupation=
| traits =  
|traits=
| location =  
|location=
| coordinates =  
|coordinates=
<!-- ITEMS -->
<!-- ITEMS -->
| items =  
|items=
}}</syntaxhighlight>
}}</syntaxhighlight>
{{clear}}
{{Clear}}


==Example==
==Example==
{{Infobox character
{{Infobox character
| name = Kate Smith
|name=Kate Smith
| image = Kate Smith.png
|image=805 max.jpg
| image2 = 805 max.jpg
|image2=Kate.png
| image_name = In-game
|image3=Kate Smith.png
| image_name2 = Portrait
|image4=K&B intro.png
| sex = Female
|image_name=Concept art
| personality = Friendly
|image_name2=Outfit
| location = Kate and Baldspot's safehouse
|image_name3=In-game (past)
| coordinates = 10746x9415
|image_name4=In-game (future)
| items = Crutches, Bandages, Painkillers, Pillow
|sex=Female
|personality=Friendly
|location=Bob and Kate's safehouse
|coordinates=10746x9415
|items=Crutches, Bandages, Painkillers, Pillow
}}
}}


<syntaxhighlight lang=text>{{Infobox character
<syntaxhighlight lang=text>{{Infobox character
| name = Kate Smith
|name=Kate Smith
| image = Kate Smith.png
|image=805 max.jpg
| image2 = 805 max.jpg
|image3=Kate Smith.png
| image_name = In-game
|image4=K&B intro.png
| image_name2 = Portrait
|image_name=Concept art
<!-- GENERAL -->
|image_name2=Outfit
| sex = Female
|image_name3=In-game (past)
| personality = Friendly
|image_name4=In-game (future)
| location = Kate and Baldspot's safehouse
|sex=Female
| coordinates = 10746x9415
|personality=Friendly
<!-- ITEMS -->
|location=Bob and Kate's safehouse
| items = Crutches, Bandages, Painkillers, Pillow
|coordinates=10746x9415
|items=Crutches, Bandages, Painkillers, Pillow
}}</syntaxhighlight>
}}</syntaxhighlight>
{{clear}}
{{Clear}}


{{Translation guide|<syntaxhighlight lang="html">
{{Translation guide|<syntaxhighlight lang="html">

Revision as of 19:39, 13 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.