Jump to content

Template:NPC Infobox: Difference between revisions

From The Petit Planet Wiki
Created page with "<includeonly>{{#invoke:Infobox|main |kind = NPC |sep = , |title = {{{name|{{PAGENAME}}}}} |subtitle = {{{title|}}} |image = {{#if:{{{image|}}}|[[File:{{{image}}}]]}} |images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}|<!-- -->{{Exists|File:NPC {{{title|{{{name|{{PAGENAME}}}}}}}}.png|[[File:NPC {{{title|{{{name|{{PAGENAME}}}}}}}}.png]],}}<!-- -->}} |tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
-->{{Exists|File:NPC {{{title|{{{name|{{PAGENAME}}}}}}}}.png|In-Game,}}<!--
-->{{Exists|File:NPC {{{title|{{{name|{{PAGENAME}}}}}}}}.png|In-Game,}}<!--
-->}}
-->}}
|sections = Profile, Family, Voice Actors, Categories
|sections = Profile, Family, Voice Actors, Additional Titles


|Profile_collapsible = Yes
|Profile_collapsible = Yes
|Profile = Real Name, Birthday, Death, Location, Role, Affiliation, , Loves, Likes, Dislikes, About
|Profile = Real Name, Pronouns, Birthday, Death, Location, Role, Affiliation
|Real Name = {{{realname|}}}
|Real Name = {{{realname|}}}
|Pronouns = {{{pronouns|}}}
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}}
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}}
|Death = {{#ifeq:{{{deceased}}}|Past|Deceased prior to the game's events|{{{deceased|}}}}}
|Death = {{#ifeq:{{{deceased}}}|Past|Deceased prior to the game's events|{{{deceased|}}}}}
Line 34: Line 35:
|Japanese = {{{voice_ja|}}}
|Japanese = {{{voice_ja|}}}
|Korean = {{{voice_ko|}}}
|Korean = {{{voice_ko|}}}
|Additional Titles_collapsible = Yes
|Additional Titles_collapsed = Yes
|Additional Titles = Titles
|Titles_nolabel = Yes
|Titles = {{#if:{{#explode:{{{alttitle}}}|;|1}}|{{List|{{{alttitle}}}}}|{{{alttitle |}}}}}
}}<!--
}}<!--


-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
Set page display title if name is different from page name
The namespace check is necessary since the magic words need additional masking.
-->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#if:{{{name|}}}|<!--
-->{{DISPLAYTITLE:{{{name|}}}|noreplace}}<!--
-->{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}}}||[[Category:Pages with Custom Title]]}}<!--
-->}}<!--
-->}}<!--
-->[[Category:NPCs]]<!--
-->[[Category:NPCs]]<!--
Type
Type

Latest revision as of 10:47, 28 September 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

Syntax

[edit source]
{{NPC Infobox
|name     = 
|subtitle = 
|type     = 
|images   = 
|realname = 
|birthday = 
|deceased = 
|location = 
|role     = 
|affiliation

|relatives = 

|voice_en = 
|voice_zh = 
|voice_ja = 
|voice_ko = 
}}

Example

[edit source]
Oumuamua
Legendary Spirit of the Starsea
Artwork
In-Game
Profile
Real Name
Tala
Birthday
January 1st
Death
Deceased prior to the game's events
Role
Spirit
Affiliation
Starsea
Family
Relatives
Relative
Voice Actors
English
Voice Actor 1
Chinese
Voice Actor 2
Japanese
Voice Actor 3
Korean
Voice Actor 4
{{NPC Infobox
|name     = Oumuamua
|subtitle = Legendary Spirit of the Starsea
|type     = Quest Character
|images   = Oumuamua.png:Artwork;Oumuamua In-Game:In-Game
|realname = Tala
|birthday = January 1st
|deceased = Past
|location = 
|role     = Spirit
|affiliation = Starsea

|relatives = Relative

|voice_en = Voice Actor 1
|voice_zh = Voice Actor 2
|voice_ja = Voice Actor 3
|voice_ko = Voice Actor 4
}}