Template:Neighbor Infobox: Difference between revisions
Appearance
Added invert filter for galaxy icon for day/light mode |
Added pronouns and standardizing parameter convention to snake_case |
||
| Line 20: | Line 20: | ||
|Profile_collapsible = Yes | |Profile_collapsible = Yes | ||
|Profile = Real Name, Birthday, Role, Galaxy, Set, Loves, Likes, Dislikes, About | |Profile = Real Name, Pronouns, Birthday, Role, Galaxy, Set, Loves, Likes, Dislikes, About | ||
|Real Name = {{{ | |Real Name = {{{real_name|}}} | ||
|Pronouns = {{{pronouns|}}} | |||
|Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}} | |Birthday = {{#if:{{{birthday|}}}|{{#formatdate:{{{birthday|}}}|mdy}}}} | ||
|Role = {{{role|}}} | |Role = {{{role|}}} | ||
| Line 43: | Line 44: | ||
|Additional Titles = Titles | |Additional Titles = Titles | ||
|Titles_nolabel = Yes | |Titles_nolabel = Yes | ||
|Titles = {{#if:{{#explode:{{{ | |Titles = {{#if:{{#explode:{{{alt_title}}}|;|1}}|{{List|{{{alt_title}}}}}|{{{alt_title|}}}}} | ||
}}<!-- | }}<!-- | ||
-->{{#invoke:Bucket|put|neighbors | -->{{#invoke:Bucket|put|neighbors | ||
|+templateargs = | |+templateargs = real_name, birthday, role, subtitle, alt_title, galaxy, set, loves, likes, dislikes, about, voice_en, voice_zh, voice_ja, voice_ko | ||
| | |alt_title-delimiter = ; | ||
|set-delimiter = ; | |||
|loves-delimiter = ; | |loves-delimiter = ; | ||
|likes-delimiter = ; | |likes-delimiter = ; | ||
Revision as of 16:05, 8 May 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
{{Neighbor Infobox
|name =
|subtitle =
|birthday =
|role =
|galaxy =
|loves =
|likes =
|dislikes =
|about =
}}
Example
Yunguo
No Crop Comes Easy
Profile
Birthday
September 19
Role
Cultivator
Galaxy
Likes
- 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.
}}

