Template:KeitaArea: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<body> | <body> | ||
<div class="infobox"> | |||
<div class="infobox-header"> | |||
{{{Name|{{PAGENAME}}}}} - {{{Region|Unknown}}} | |||
</div> | </div> | ||
<div class="infobox-content"> | |||
{{#if: {{{Maps|}}} | | |||
<!-- Multiple maps collage with class --> | |||
{{#arraydefine:maps|{{{Maps}}}}} | |||
<table style="text-align: center; width: 100%;"> | |||
<tr> | |||
{{#vardefine:placeholder|1}} | |||
{{#loop: iterations|1|{{#arraysize:maps}}| | |||
{{#vardefine:vector|{{#expr:{{#var:iterations}} - 1}}}} | |||
<td style="width: 33%;"> | |||
[[File:{{#arrayindex:maps|{{#var:vector}}}}.png|100px|alt={{#arrayindex:maps|{{#var:vector}}}} Map|class=map-image]] | |||
<br>{{#arrayindex:maps|{{#var:vector}}}} | |||
</td> | |||
{{#ifexpr: {{#var:iterations}} / 3 = {{#var:placeholder}} | | |||
{{#vardefine:placeholder|{{#expr:{{#var:placeholder}} + 1}}}} </tr><tr> | |||
}} | |||
}} | }} | ||
</tr> | |||
</table> | |||
| | |||
<!-- Single map display with class --> | |||
{{#if: {{{Map|}}} | | |||
[[File:{{{Map}}}.png|400px|alt={{{Name|{{PAGENAME}}}}} Map|class=map-image]] | |||
| | |||
[[File:{{PAGENAME}}.png|alt={{PAGENAME}} Map|class=map-image]] | |||
}} | |||
}} | |||
<!-- Rest of your infobox content --> | |||
<!-- Minimap section, shown only if Minimap is provided --> | |||
{{#if: {{{Minimap|}}} | | |||
<div class="minimap-area"> | |||
<p class="MinimapLocation">Minimap Location</p> | |||
[[File:{{{Minimap}}}.gif|200px|alt={{{Name|{{PAGENAME}}}}} | |||
Minimap|class=map-image minimap]] | |||
</tr> | </div> | ||
</ | }} | ||
<hr /> | |||
<!-- Gym section, shown only if Badge is provided --> | |||
{{#if: {{{Badge|}}} | | |||
<div class="infobox-section"> | |||
<h3>{{{Name|{{PAGENAME}}}}} Gym</h3> | |||
<div class="infoxbox_table_container"> | |||
<table> | |||
<tr> | |||
<td>Gym-leader</td> | |||
<td>{{{GymLeader|Unknown}}}</td> | |||
</tr> | |||
<tr> | |||
<td>Type</td> | |||
<td> | |||
[[{{{GymType|Unknown}}}_(type)|{{{GymType|Unknown}}}]] | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>Badge</td> | |||
<td>{{{Badge|Unknown}}}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</div> | |||
}} | |||
<!-- Resources section, shown only if NPCs, Items, or BerryTrees > 0 --> | |||
{{#vardefine:resources|{{#expr:{{{NPCs|0}}}+{{{Items|0}}}+{{{BerryTrees|0}}}}}}} | |||
{{#ifexpr: {{#var:resources}} > 0 | | |||
<div class="infobox-section"> | |||
<h3>Resources</h3> | |||
<div class="table-container"> | |||
<table> | |||
<tr> | |||
<td>Battle NPCs</td> | |||
<td>{{{NPCs|0}}}</td> | |||
</tr> | |||
<tr> | |||
<td>Ground Items</td> | |||
<td>{{{Items|0}}}</td> | |||
</tr> | |||
<tr> | |||
<td>Berry Trees</td> | |||
<td>{{{BerryTrees|0}}}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</div> | </div> | ||
}} | |||
<div class="infobox-section"> | |||
<h3>Adjacent areas</h3> | |||
</div> | </div> | ||
<div class="center-grid-keita"> | |||
<div class="grid-keita"> | |||
{{#if: {{{North|}}} | | |||
<div class="north box">[[{{{North}}}]]</div> | |||
}} {{#if: {{{West|}}} | | |||
<div class="west box">[[{{{West}}}]]</div> | |||
}} | |||
<div class="plus">[[File:Arrow.webp|20px|link=|alt=Arrow]]</div> | |||
{{#if: {{{East|}}} | | |||
<div class="east box">[[{{{East}}}]]</div> | |||
}} {{#if: {{{South|}}} | | |||
<div class="south box">[[{{{South}}}]]</div> | |||
}} | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<!-- Categories --> | |||
[[Category:Locations]] {{#if: {{{Region|}}} | [[Category:{{{Region}}} | |||
areas]]}} {{#if: {{{Badge|}}} | [[Category:Gyms]]}} | |||
</body> | </body> | ||
</includeonly> | </includeonly> |