Template:Neighbor Infobox: Difference between revisions
Appearance
Storing page_id in bucket |
No edit summary |
||
| (11 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Infobox|main | <includeonly>{{#vardefine:name|{{{title|{{{name|{{PAGENAME}}}}}}}}}}<!-- | ||
-->{{#vardefine:splash|File:{{#var:name}} Splash Art.png}}<!-- | |||
-->{{#vardefine:render|File:{{#var:name}} Render.png}}<!-- | |||
-->{{#vardefine:ingame|File:{{#var:name}} In-Game.png}}<!-- | |||
-->{{#vardefine:npcingame|File:NPC {{#var:name}}.png}}<!-- | |||
-->{{#vardefine:icon|File:{{#var:name}} Icon.png}}<!-- | |||
--><!-- | |||
-->{{#invoke:Infobox|main | |||
|kind = Neighbor | |kind = Neighbor | ||
|sep = , | |sep = , | ||
|title = {{ | |title = {{#var:name}} | ||
|subtitle = {{{subtitle|}}} | |subtitle = {{{subtitle|}}} | ||
|image = {{#if:{{{image|}}}|[[File:{{{image}}}]]}} | |image = {{#if:{{{image|}}}|[[File:{{{image}}}]]}} | ||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}|<!-- | |images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}|<!-- | ||
-->{{Exists| | -->{{Exists|{{#var:splash}}|[[{{#var:splash}}|class=pageimage]],}}<!-- | ||
-->{{Exists| | -->{{Exists|{{#var:render}}|{{Exists|{{#var:splash}}|[[{{#var:render}}]]|[[{{#var:render}}|class=pageimage]]}},}}<!-- | ||
-->{{Exists| | -->{{Exists|{{#var:ingame}}|[[{{#var:ingame}}]],}}<!-- | ||
-->[[ | -->{{Exists|{{#var:npcingame}}|[[{{#var:npcingame}}]],}}<!-- | ||
-->[[{{#var:icon}}]]<!-- | |||
-->}} | -->}} | ||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}|<!-- | |tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}|<!-- | ||
-->{{Exists| | -->{{Exists|{{#var:splash}}|Splash Art,}}<!-- | ||
-->{{Exists| | -->{{Exists|{{#var:render}}|Render,}}<!-- | ||
-->{{Exists| | -->{{Exists|{{#var:ingame}}|In-Game,}}<!-- | ||
-->{{Exists|{{#var:npcingame}}|In-Game,}}<!-- | |||
-->Icon<!-- | -->Icon<!-- | ||
-->}} | -->}} | ||
| Line 25: | Line 34: | ||
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}} | |Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}} | ||
|Role = {{{role|}}} | |Role = {{{role|}}} | ||
|Galaxy = {{#if:{{{galaxy|}}}|{{Item|{{{galaxy|}}}| | |Galaxy = {{#if:{{{galaxy|}}}|{{Item|{{{galaxy|}}}|size=20}}}} | ||
|Set = {{#if:{{{set}}}|{{ | |Set = {{#if:{{#explode:{{{set}}}|;|1}}|{{List|{{{set}}}|mode=link}}|{{#if:{{{set|}}}|[[{{{set|}}}]]}}}} | ||
|Set_label = Set{{#if:{{#explode:{{{set}}}|;|1}}|s}} | |||
|Loves = {{#if:{{#explode:{{{loves}}}|;|1}}|{{Item List|{{{loves}}}}}|{{#if:{{{loves|}}}|{{Item|{{{loves|}}}}}|}}}} | |Loves = {{#if:{{#explode:{{{loves}}}|;|1}}|{{Item List|{{{loves}}}}}|{{#if:{{{loves|}}}|{{Item|{{{loves|}}}}}|}}}} | ||
|Likes = {{#if:{{#explode:{{{likes}}}|;|1}}|{{List|{{{likes}}}}}|{{{likes|}}}}} | |||
|Dislikes = {{#if:{{#explode:{{{dislikes}}}|;|1}}|{{List|{{{dislikes}}}}}|{{{dislikes|}}}}} | |Likes = {{#if:{{#explode:{{{likes}}}|;|1}}|{{Item List|{{{likes}}}}}|{{#if:{{{likes|}}}|{{Item|{{{likes|}}}}}|}}}} | ||
|Dislikes = {{#if:{{#explode:{{{dislikes}}}|;|1}}|{{Item List|{{{dislikes}}}}}|{{#if:{{{dislikes|}}}|{{Item|{{{dislikes|}}}}}|}}}} | |||
|About = {{#if:{{#explode:{{{about}}}|;|1}}|{{List|{{{about}}}}}|{{{about|}}}}} | |About = {{#if:{{#explode:{{{about}}}|;|1}}|{{List|{{{about}}}}}|{{{about|}}}}} | ||
| Line 35: | Line 46: | ||
|Voice Actors_collapsed = Yes | |Voice Actors_collapsed = Yes | ||
|Voice Actors = English, Chinese, Japanese, Korean | |Voice Actors = English, Chinese, Japanese, Korean | ||
|English = {{{ | |English = {{{vaEN|}}} | ||
|Chinese = {{{ | |Chinese = {{{vaCN|}}} | ||
|Japanese = {{{ | |Japanese = {{{vaJP|}}} | ||
|Korean = {{{ | |Korean = {{{vaKR|}}} | ||
|Additional Titles_collapsible = Yes | |Additional Titles_collapsible = Yes | ||
Latest revision as of 21:50, 14 September 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template uses CSS found at MediaWiki:Gadget-Infobox.css.
Syntax
[edit source]{{Neighbor Infobox
|name =
|subtitle =
|birthday =
|role =
|galaxy =
|loves =
|likes =
|dislikes =
|about =
}}
Example
[edit source]Yunguo
No Crop Comes Easy
Profile
Birthday
September 19
Role
Cultivator
Galaxy
Likes
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.
}}

