Jump to content

Template:Neighbor Infobox: Difference between revisions

From The Petit Planet Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user 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="galaxy">
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} Render.png|Render,}}<!--
    <label>Galaxy</label>
-->{{Exists|File:{{{title|{{{name|{{PAGENAME}}}}}}}} In-Game.png|In-Game,}}<!--
</data>
-->Icon<!--
  <data source="loves">
-->}}
    <label>Loves</label>
|sections = Profile, Voice Actors
    <format>{{Item List|{{{loves}}}|mode=br}}</format>
 
</data>
|Profile_collapsible = Yes
  <data source="likes">
|Profile = Birthday, Role, Galaxy, Loves, Likes, Dislikes, About
    <label>Likes</label>
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}}
    <format>{{List|{{{likes}}}}}</format>
|Role = {{{role|}}}
</data>
|Galaxy = {{#if:{{{galaxy|}}}|{{Item|{{{galaxy|}}}}}}}
  <data source="dislikes">
|Loves = {{#if:{{#explode:{{{loves}}}|;|1}}|{{Item List|{{{loves}}}}}|{{{loves|}}}}}
    <label>Disikes</label>
|Likes = {{#if:{{#explode:{{{likes}}}|;|1}}|{{List|{{{likes}}}}}|{{{likes|}}}}}
    <format>{{List|{{{dislikes}}}}}</format>
|Dislikes = {{#if:{{#explode:{{{dislikes}}}|;|1}}|{{List|{{{dislikes}}}}}|{{{dislikes|}}}}}
</data>
|About = {{#if:{{#explode:{{{about}}}|;|1}}|{{List|{{{about}}}}}|{{{about|}}}}}
  <data source="about">
 
    <label>About</label>
|Voice Actors_collapsible = Yes
    <format>{{List|{{{about}}}}}</format>
|Voice Actors_collapsed = Yes
</data>
|Voice Actors = English, Chinese, Japanese, Korean
</infobox><!--
|English = {{{voice_en|}}}
|Chinese = {{{voice_zh|}}}
|Japanese = {{{voice_ja|}}}
|Korean = {{{voice_ko|}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Neighbors]]<!--
-->[[Category:Neighbors]]<!--
 
  Sort
-->{{#if:{{{galaxy|}}}|[[Category:{{{galaxy}}} Neighbors]]}}<!--
-->{{#if:{{{galaxy|}}}|[[Category:{{{galaxy}}} Neighbors]]}}<!--
  Interests
-->{{#if:{{{loves|}}}|{{Array|{{{loves}}}|;|[[Category:Neighbors Loving {item}]]}}}}<!--
-->{{#if:{{{loves|}}}|{{Array|{{{loves}}}|;|[[Category:Neighbors Loving {item}]]}}}}<!--
-->{{#if:{{{likes|}}}|{{Array|{{{likes}}}|;|[[Category:Neighbors Liking {item}]]}}}}<!--
-->{{#if:{{{likes|}}}|{{Array|{{{likes}}}|;|[[Category:Neighbors Liking {item}]]}}}}<!--
-->{{#if:{{{dislikes|}}}|{{Array|{{{dislikes}}}|;|[[Category:Neighbors Disliking {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.
}}