Jump to content

Template:Neighbor Infobox: Difference between revisions

From The Petit Planet Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly>{{#invoke:Infobox|main
  <title source="name">
|kind = Neighbor
    <default>{{PAGENAME}}</default>
|sep = ,
  </title>
|title = {{{title|{{{name|{{PAGENAME}}}}}}}}
  <header>{{{title}}}</header>
|subtitle = {{{subtitle|}}}
  <image source="image">
|image = {{#if:{{{image|}}}|[[File:{{{image}}}]]}}
    <caption source="caption-image"/>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}|<!--
  </image>
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} Splash Art.png|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Splash Art.png]],}}<!--
  <data source="birthday">
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} Render.png|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Render.png]],}}<!--
    <label>Birthday</label>
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} In-Game.png|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} In-Game.png]],}}<!--
  </data>
-->[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]<!--
  <data source="role">
-->}}
    <label>Role</label>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}|<!--
  </data>
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} Splash Art.png|Splash Art,}}<!--
  <data source="planet">
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} Render.png|Render,}}<!--
    <label>Planet</label>
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} In-Game.png|In-Game,}}<!--
  </data>
-->Icon<!--
</infobox><!--
-->}}
|sections = Profile, Voice Actors
 
|Profile_collapsible = Yes
|Profile = Birthday, Role, Galaxy, Loves, Likes, Dislikes, About
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}}
|Role = {{{role|}}}
|Galaxy = {{#if:{{{galaxy|}}}|{{Item|{{{galaxy|}}}}}}}
|Loves = {{#if:{{#explode:{{{loves}}}|;|1}}|{{Item List|{{{loves}}}}}|{{{loves|}}}}}
|Likes = {{#if:{{#explode:{{{likes}}}|;|1}}|{{List|{{{likes}}}}}|{{{likes|}}}}}
|Dislikes = {{#if:{{#explode:{{{dislikes}}}|;|1}}|{{List|{{{dislikes}}}}}|{{{dislikes|}}}}}
|About = {{#if:{{#explode:{{{about}}}|;|1}}|{{List|{{{about}}}}}|{{{about|}}}}}
 
|Voice Actors_collapsible = Yes
|Voice Actors_collapsed = Yes
|Voice Actors = English, Chinese, Japanese, Korean
|English = {{{voice_en|}}}
|Chinese = {{{voice_zh|}}}
|Japanese = {{{voice_ja|}}}
|Korean = {{{voice_ko|}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Neighbors]]<!--
-->[[Category:Neighbors]]<!--
 
  Sort
-->{{#if:{{{planet|}}}|[[Category:{{{planet}}} Neighbors]]}}<!--
-->{{#if:{{{galaxy|}}}|[[Category:{{{galaxy}}} Neighbors]]}}<!--
 
  Interests
-->{{#if:{{{loves|}}}|{{Array|{{{loves}}}|;|[[Category:Neighbors Loving {item}]]}}}}<!--
-->{{#if:{{{likes|}}}|{{Array|{{{likes}}}|;|[[Category:Neighbors Liking {item}]]}}}}<!--
-->{{#if:{{{dislikes|}}}|{{Array|{{{dislikes}}}|;|[[Category:Neighbors Disliking {item}]]}}}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>

Latest revision as of 14:42, 21 February 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses CSS found at MediaWiki:Infobox.css (edit | hist).

Syntax[edit source]

{{Neighbor Infobox
|name     = 
|subtitle = 
|birthday = 
|role     = 
|galaxy   = 
|loves    = 
|likes    = 
|dislikes = 
|about    = 
}}

Example[edit source]

Yunguo
No Crop Comes Easy
Splash Art
Icon
Profile
Birthday
September 19
Role
Cultivator
Galaxy
  • Farm Decor
  • Green
Dislikes
Black
About
Water crops across the planet to help them grow better.
{{Neighbor Infobox
|name     = Yunguo
|subtitle = No Crop Comes Easy
|birthday = September 19
|role     = Cultivator
|galaxy   = Hexia
|loves    = Gran'mama's Veggie Fried Rice;Bamboo Apple Slushie;Apple;Bamboo
|likes    = Farm Decor;Green
|dislikes = Black
|about    = Water crops across the planet to help them grow better.
}}