Template:KeitaArea: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
</div> | </div> | ||
<div class="infobox-content"> | <div class="infobox-content"> | ||
{{#if:{{{Maps|}}} | | {{#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|400px|alt={{PAGENAME}} Map|class=map-image]] | |||
}} | |||
}} | }} | ||
< | <!-- Rest of your infobox content --> | ||
<!-- Minimap section, shown only if Minimap is provided --> | <!-- Minimap section, shown only if Minimap is provided --> |