Template:Neighbor Infobox: Difference between revisions
Appearance
ReisuDesign (talk | contribs) No edit summary |
No edit summary |
||
| (32 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< | <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 | |||
|sep = , | |||
|title = {{#var:name}} | |||
|subtitle = {{{subtitle|}}} | |||
|image = {{#if:{{{image|}}}|[[File:{{{image}}}]]}} | |||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}|<!-- | |||
-->{{Exists|{{#var:splash}}|[[{{#var:splash}}|class=pageimage]],}}<!-- | |||
-->{{Exists|{{#var:render}}|{{Exists|{{#var:splash}}|[[{{#var:render}}]]|[[{{#var:render}}|class=pageimage]]}},}}<!-- | |||
-->{{Exists|{{#var:ingame}}|[[{{#var:ingame}}]],}}<!-- | |||
-->{{Exists|{{#var:npcingame}}|[[{{#var:npcingame}}]],}}<!-- | |||
-->[[{{#var:icon}}]]<!-- | |||
-->}} | |||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}|<!-- | |||
-->{{Exists|{{#var:splash}}|Splash Art,}}<!-- | |||
-->{{Exists|{{#var:render}}|Render,}}<!-- | |||
-->{{Exists|{{#var:ingame}}|In-Game,}}<!-- | |||
-->{{Exists|{{#var:npcingame}}|In-Game,}}<!-- | |||
-->Icon<!-- | |||
-->}} | |||
|sections = Profile, Voice Actors, Additional Titles | |||
|Profile_collapsible = Yes | |||
|Profile = Real Name, Pronouns, Birthday, Role, Galaxy, Set, Loves, Likes, Dislikes, About | |||
|Real Name = {{{real_name|}}} | |||
|Pronouns = {{{pronouns|}}} | |||
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}} | |||
|Role = {{{role|}}} | |||
|Galaxy = {{#if:{{{galaxy|}}}|{{Item|{{{galaxy|}}}|size=20}}}} | |||
|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|}}}}}|}}}} | |||
|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|}}}}} | |||
|Voice Actors_collapsible = Yes | |||
|Voice Actors_collapsed = Yes | |||
|Voice Actors = English, Chinese, Japanese, Korean | |||
|English = {{{vaEN|}}} | |||
|Chinese = {{{vaCN|}}} | |||
|Japanese = {{{vaJP|}}} | |||
|Korean = {{{vaKR|}}} | |||
|Additional Titles_collapsible = Yes | |||
|Additional Titles_collapsed = Yes | |||
|Additional Titles = Titles | |||
|Titles_nolabel = Yes | |||
|Titles = {{#if:{{#explode:{{{alt_title}}}|;|1}}|{{List|{{{alt_title}}}}}|{{{alt_title|}}}}} | |||
}}<!-- | |||
-->{{#invoke:Bucket|put|neighbors | |||
|+templateargs = real_name, pronouns, birthday, role, subtitle, alt_title, galaxy, set, loves, likes, dislikes, about | |||
|page_id = {{PAGEID}} | |||
|alt_title-delimiter = ; | |||
|set-delimiter = ; | |||
|loves-delimiter = ; | |||
|likes-delimiter = ; | |||
|dislikes-delimiter = ; | |||
|about-delimiter = ; | |||
|voice_en = {{#invoke:Feature|unstripNoWikiFrame|{{{voice_en|}}}}} | |||
|voice_zh = {{#invoke:Feature|unstripNoWikiFrame|{{{voice_zh|}}}}} | |||
|voice_ja = {{#invoke:Feature|unstripNoWikiFrame|{{{voice_ja|}}}}} | |||
|voice_ko = {{#invoke:Feature|unstripNoWikiFrame|{{{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 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.
}}

