Jump to content

Template:Neighbor Infobox: Difference between revisions

From The Petit Planet Wiki
No edit summary
No edit summary
Line 15: Line 15:
   <data source="galaxy">
   <data source="galaxy">
     <label>Galaxy</label>
     <label>Galaxy</label>
</data>
  <data source="loves">
    <label>Loves</label>
    <format>{{Card List|{{{loves}}}|delim=;|mini=1}}</format>
</data>
  <data source="likes">
    <label>Likes</label>
    <format>{{Array|{{{likes}}}|;|* {item}{newline} }}</format>
</data>
  <data source="dislikes">
    <label>Disikes</label>
    <format>{{Array|{{{dislikes}}}|;|* {item}{newline} }}</format>
</data>
  <data source="about">
    <label>About</label>
    <format>{{Array|{{{about}}}|;|* {item}{newline} }}</format>
  </data>
  </data>
</infobox><!--
</infobox><!--
Line 20: Line 36:
-->[[Category:Neighbors]]<!--
-->[[Category:Neighbors]]<!--


-->{{#if:{{{planet|}}}|[[Category:{{{planet}}} Neighbors]]}}<!--
-->{{#if:{{{galaxy|}}}|[[Category:{{{galaxy}}} Neighbors]]}}<!--
-->{{#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>

Revision as of 23:58, 11 November 2025

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     = 
|title    = 
|image    = 
|birthday = 
|role     = 
|planet   = 
|likes    = 
}}

Sample

{{Neighbor Infobox
|name     = Yunguo
|title    = 
|image    = Yunguo Splash Art.png
|birthday = Sep 19
|role     = Life Coordinator
|planet   = Hexia
|likes    = Farm Decor;Green
}}