Jump to content

Template:MainPageStuff: Difference between revisions

From Tansord Wiki
m 2p4lo moved page Navbox to Template:Navbox
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="navbox" style="border: 1px solid #a2a9b1; background-color: #f8f9fa; width: 100%; margin: 1em 0; text-align: center; font-size: 90%;">
<div class="navbox" style="border: 1px solid #a2a9b1; background-color: #f8f9fa; width: 100%; margin: 1em 0; text-align: center; font-size: 90%;">
<table style="width: 100%; background: transparent; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;">
<table style="width: 100%; background: transparent; border-collapse: collapse;">
<!-- Title Bar -->
<tr style="background-color: #ccf; font-weight: bold; text-align: center;">
<tr style="background-color: #ccf; font-weight: bold; text-align: center;">
<th style="padding: 4px; background: #eaecf0;" colspan="2">{{{title}}}</th>
<th style="padding: 4px; background: #eaecf0;" colspan="2">{{{title}}}</th>
</tr>
</tr>
{{#if: {{{above|}}} |
<!-- Above Section -->
<tr>
<tr>
<td style="padding: 2px 4px; background: #fdfdfd; text-align: center; font-size: 95%; border-top: 1px solid #a2a9b1;" colspan="2">{{{above}}}</td>
<td style="padding: 2px 4px; background: #fdfdfd; text-align: center; font-size: 95%; border-top: 1px solid #a2a9b1;" colspan="2">{{{above|}}}</td>
</tr>
</tr>
}}
<!-- Group 1 -->
<tr>
<tr>
<th style="width: 140px; background: #eff3f6; padding: 4px; text-align: right; border-top: 1px solid #a2a9b1; font-weight: bold;">{{{group1}}}</th>
<th style="width: 140px; background: #eff3f6; padding: 4px; text-align: right; border-top: 1px solid #a2a9b1; font-weight: bold;">{{{group1}}}</th>
<td style="padding: 4px; text-align: left; border-top: 1px solid #a2a9b1; background: #fff;">{{{list1}}}</td>
<td style="padding: 4px; text-align: left; border-top: 1px solid #a2a9b1; background: #fff;">{{{list1}}}</td>
</tr>
</tr>
{{#if: {{{group2|}}} |
<!-- Group 2 -->
<tr>
<tr>
<th style="background: #eff3f6; padding: 4px; text-align: right; border-top: 1px solid #a2a9b1; font-weight: bold;">{{{group2}}}</th>
<th style="background: #eff3f6; padding: 4px; text-align: right; border-top: 1px solid #a2a9b1; font-weight: bold;">{{{group2}}}</th>
<td style="padding: 4px; text-align: left; border-top: 1px solid #a2a9b1; background: #fff;">{{{list2}}}</td>
<td style="padding: 4px; text-align: left; border-top: 1px solid #a2a9b1; background: #fff;">{{{list2}}}</td>
</tr>
</tr>
}}
<!-- Below Section -->
{{#if: {{{below|}}} |
<tr>
<tr>
<td style="padding: 2px 4px; background: #eaecf0; text-align: center; border-top: 1px solid #a2a9b1;" colspan="2">{{{below}}}</td>
<td style="padding: 2px 4px; background: #eaecf0; text-align: center; border-top: 1px solid #a2a9b1;" colspan="2">{{{below|}}}</td>
</tr>
</tr>
}}
</table>
</table>
</div>
</div>

Latest revision as of 15:52, 4 October 2026