Jump to content

Template:Neighbor Infobox: Difference between revisions

From The Petit Planet Wiki
No edit summary
Updated to DRUID infobox
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>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
  <data source="birthday">
|sections = Profile, Voice Actors
    <label>Birthday</label>
 
  </data>
|Profile_collapsible = Yes
  <data source="role">
|Profile = Birthday, Role, Galaxy, Loves, Likes, Dislikes
    <label>Role</label>
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}}
  </data>
|Role = {{{role|}}}
  <data source="galaxy">
|Galaxy = {{#if:{{{galaxy|}}}|{{Item|{{{galaxy|}}}}}}}
    <label>Galaxy</label>
|Loves = {{#if:{{#explode:{{{loves}}}|;|1}}|{{Item List|{{{loves}}}}}|{{{loves|}}}}}
</data>
|Likes = {{#if:{{#explode:{{{likes}}}|;|1}}|{{List|{{{likes}}}}}|{{{likes|}}}}}
  <data source="loves">
|Dislikes = {{#if:{{#explode:{{{dislikes}}}|;|1}}|{{List|{{{dislikes}}}}}|{{{dislikes|}}}}}
    <label>Loves</label>
|About = {{#if:{{#explode:{{{about}}}|;|1}}|{{List|{{{about}}}}}|{{{about|}}}}}
    <format>{{Item List|{{{loves}}}|mode=br}}</format>
 
</data>
|Voice Actors_collapsible = Yes
  <data source="likes">
|Voice Actors_collapsed = Yes
    <label>Likes</label>
|Voice Actors = English, Chinese, Japanese, Korean
    <format>{{List|{{{likes}}}}}</format>
|English = {{{voice_en|}}}
</data>
|Chinese = {{{voice_zh|}}}
  <data source="dislikes">
|Japanese = {{{voice_ja|}}}
    <label>Disikes</label>
|Korean = {{{voice_ko|}}}
    <format>{{List|{{{dislikes}}}}}</format>
}}<!--
</data>
 
  <data source="about">
    <label>About</label>
    <format>{{List|{{{about}}}}}</format>
</data>
</infobox><!--
-->{{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>

Revision as of 13:41, 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

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

Example

{{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.
}}