Template:Infobox character: Difference between revisions
m (No longer WIP) |
m (fix for sections not displaying if a parameter is empty) |
||
Line 110: | Line 110: | ||
| 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|{{{sex|{{{personality|{{{occupation|{{{traits|{{{location| | }}{{#if:{{{nickname|}}}{{{sex|}}}{{{personality|}}}{{{occupation|}}}{{{traits|}}}{{{location|}}} | ||
| {{Infobox/section <!-- ## General ## --> | | {{Infobox/section <!-- ## General ## --> | ||
| {{tt|name=Infobox character|default=General|arg1=general}} | | {{tt|name=Infobox character|default=General|arg1=general}} |
Revision as of 08:27, 23 February 2024
This is an infobox used on articles about an in-game character.
Usage
{{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
{{Infobox character
| name = Kate Smith
| image = Kate Smith.png
| image2 = 805 max.jpg
| image_name = In-game
| image_name2 = Portrait
<!-- GENERAL -->
| sex = Female
| personality = Friendly
| location = Kate and Baldspot's safehouse
| coordinates = 10746x9415
<!-- ITEMS -->
| 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.