Template:Neighbor Infobox: Difference between revisions
Appearance
ReisuDesign (talk | contribs) trying to add page image default for those who don't have splash art |
ReisuDesign (talk | contribs) simplified file names and maybe now the render should get to be the page image in case splash art doesn't exist |
||
| 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: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}}]],}}<!-- | ||
-->[[ | -->[[{{#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,}}<!-- | ||
-->Icon<!-- | -->Icon<!-- | ||
-->}} | -->}} | ||
Revision as of 21:56, 26 August 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
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.
}}

