Template:NavigationalItems: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| (19 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine:border|#{{ | <includeonly>{{#vardefine:border|#{{{{{Theme|Key_Items}}}_color_dark}}}}{{#vardefine:background|#{{{{{Theme|Key_Items}}}_color}}}}{{#vardefine:cell|#{{{{{Theme|Key_Items}}}_color_light}}}}<table class="collapsible collapsed" style="width: 74%; border: 5px solid {{#var:border}}; border-radius: 25px; background-color:{{#var:background}}; text-align: center; padding: 5px;"> | ||
<tr style="background-color:{{#var:cell}}; color:{{#var:border}};"><th colspan="2" style="border-radius: 25px; border: 3px solid {{#var:border}};"> | <tr style="background-color:{{#var:cell}}; color:{{#var:border}};"><th colspan="2" style="border-radius: 25px; border: 3px solid {{#var:border}};"> | ||
<table align="center"> | <table align="center"> | ||
| Line 6: | Line 6: | ||
</table> | </table> | ||
</th></tr> | </th></tr> | ||
<tr><td> | <tr><td width="50%"> | ||
<table width="100%" style="background-color: #FFFFFF; border-radius: 25px; border: 3px solid {{#var:border}};"> | <table width="100%" style="background-color: #FFFFFF; border-radius: 25px; border: 3px solid {{#var:border}};"> | ||
<tr><td style="text-align: center; font-weight: bold;">Function<td></tr> | <tr><td style="text-align: center; font-weight: bold;">Function<td></tr> | ||
| Line 12: | Line 12: | ||
</table> | </table> | ||
</td> | </td> | ||
<td> | <td width="50%"> | ||
<table width="100%" style="background-color: #FFFFFF; border-radius: 25px; border: 3px solid {{#var:border}};"> | <table width="100%" style="background-color: #FFFFFF; border-radius: 25px; border: 3px solid {{#var:border}};"> | ||
<tr><td style="text-align: center; font-weight: bold;">Obtainability<td></tr> | <tr><td style="text-align: center; font-weight: bold;">Obtainability<td></tr> | ||
| Line 21: | Line 21: | ||
{{#if:{{{Colorway|}}}| | {{#if:{{{Colorway|}}}| | ||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2" width="100%"> | ||
{{#arraydefine:variants|{{{Colorway}}}}} | {{#arraydefine:variants|{{{Colorway}}}}} | ||
<table style="text-align: center; border-radius: 25px; background-color: {{#var:border}}; padding: 5px;"> | <table style="text-align: center; border-radius: 25px; background-color: {{#var:cell}}; border: 3px solid {{#var:border}}; padding: 5px; width: 100%;"> | ||
<tr>< | <tr><td style="font-weight: bold; color: {{#var:cell}}; background-color: {{#var:border}}; width: 100%; border-radius: 25px 25px 1px 1px;">Colorways</td></tr> | ||
{{#vardefine:placeholder|1}} | {{#vardefine:placeholder|1}} | ||
<tr> | <tr> | ||
<td style="border-radius: 1px 1px 25px 25px; background-color: #FFFFFF; width: 100%; text-align: center;"> | |||
{{#loop: items| | {{#loop: items| | ||
1| | 1| | ||
{{#arraysize:variants}}| | {{#arraysize:variants}}| | ||
{{#vardefine:vector|{{#expr:{{#var:items}} - 1}}}} | {{#vardefine:vector|{{#expr:{{#var:items}} - 1}}}} | ||
[[File:{{#arrayindex:variants|{{#var:vector}}}} {{{Item}}}.png|{{#arrayindex:variants|{{#var:vector}}}}]] | |||
{{#ifexpr:{{#var:items}} / 15 = {{#var:placeholder}} | {{#vardefine:placeholder|{{#expr:{{#var:placeholder}} + 1}}}} <br> }} | |||
{{#ifexpr:{{#var:items}} / | |||
}} | }} | ||
</td> | </td> | ||