Template:Navbox: Difference between revisions

From Vintage Story Wiki
New navbox template
No edit summary
(New navbox template)
Line 3: Line 3:
{{WIP}}
{{WIP}}


<includeonly>
<includeonly><div style="margin: auto; {{#if: {{{child|}}} |margin: -3px; |padding: 4px;  border-color: #382b1e; border-width: 3px; border-style: solid; margin: auto; width: 90%; border-radius: 4px; background-color: #e0cfbb;"}}>
{{#if: {{{child|}}} | | <div style="border-color: #382b1e; border-width: 3px; border-style: solid; margin: auto; width: 90%; border-radius: 4px; background-color: #e0cfbb;">}}
<table {{#if: {{{child|}}} || class="mw-collapsible"}} style="border-spacing: 2px; width: 100%;">
<table class="mw-collapsible" style="border-spacing: 2px; width: 100%;">
   {{#if: {{{child|}}} || <tr><th colspan="2" style="{{#if: {{{titlestyle|}}}|{{{titlestyle}}}|
   <tr><th colspan="3" style="
     background: rgb(91,76,62);
     background: rgb(91,76,62);
     background: linear-gradient(to bottom, rgba(91,76,62,1) 0px, rgba(91,76,62,0) 5px, rgba(56,43,30,0) calc(100% - 5px), rgba(56,43,30,1) 100%),
     background: linear-gradient(to bottom, rgba(91,76,62,1) 0px, rgba(91,76,62,0) 5px, rgba(56,43,30,0) calc(100% - 5px), rgba(56,43,30,1) 100%),
                 linear-gradient(to right, rgba(91,76,62,1) 0px, rgba(69,52,36,1) 5px, rgba(69,52,36,1) 50%, rgba(69,52,36,1) calc(100% - 5px), rgba(56,43,30,1) 100%);">
                 linear-gradient(to right, rgba(91,76,62,1) 0px, rgba(69,52,36,1) 5px, rgba(69,52,36,1) 50%, rgba(69,52,36,1) calc(100% - 5px), rgba(56,43,30,1) 100%);}}">
     <big>'''[[Wiki Navigation|<span style="color: #e0cfbb">Wiki Navigation</span>]]'''</big></th>
     <big>'''{{#if: {{{titlelink|}}} | [[{{{title}}}|<span style="color: #e0cfbb">Wiki Navigation</span>]] | <span style="color: #e0cfbb">{{{title}}}</span> }}'''</big></th>
   </tr>
   </tr>}}
<!-- Group 1 -->
<!-- Group 1 -->
{{#if: {{{group1|}}} |
   <tr>
   <tr>
     <td style="text-align: center; margin: 10px; width: 10%; background: rgb(91,76,62);"">[[Group 1|<span style="color: #e0cfbb">Group 1</span>]]</td>
     <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group1}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group1}}}</span>]]</td>
    <td style="text-align: center; width: 10%; background: rgb(91,76,62);">[[Group 1.1|<span style="color: #e0cfbb">Group 1.1</span>]]</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}" }}>{{#if: {{{cnt1|}}}|{{{cnt1}}}|}}</td>
     <td style="height: 30px;">''Group 1.1 contents''</td>
   </tr>
   </tr>
}}
<!-- Group 2 -->
<!-- Group 2 -->
{{#if: {{{group2|}}} |
   <tr>
   <tr>
     <td style="text-align: center; margin: 10px; width: 10%; background: rgb(91,76,62);"">[[Group 2|<span style="color: #e0cfbb">Group 2</span>]]</td>
     <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group2}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group2}}}</span>]]</td>
     <td colspan="2" style="background-color: #d3c3b0; height: 30px;">''Group 2 contents''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt2|}}}|{{{cnt2}}}|}}</td>
   </tr>
   </tr>
}}
<!-- Group 3 -->
<!-- Group 3 -->
{{#if: {{{group3|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group3}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group3}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt3|}}}|<div style="display: inline; float: left; padding:0em; ">{{{cnt3}}}</div>|}}</td>
  </tr>
}}
<!-- Group 4 -->
{{#if: {{{group4|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group4}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group4}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt4|}}}|{{{cnt4}}}|}}</td>
  </tr>
}}
<!-- Group 5 -->
{{#if: {{{group5|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group5}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group5}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt5|}}}|{{{cnt5}}}|}}</td>
  </tr>
}}
<!-- Group 6 -->
{{#if: {{{group6|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group4}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group6}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt6|}}}|{{{cnt6}}}|}}</td>
  </tr>
}}
<!-- Group 7 -->
{{#if: {{{group7|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group7}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group7}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt7|}}}|{{{cnt7}}}|}}</td>
  </tr>
}}
<!-- Group 8 -->
{{#if: {{{group8|}}} |
   <tr>
   <tr>
     <td rowspan="3" style="text-align: center; margin: 10px; width: 10%; background: rgb(91,76,62);">[[Group 3|<span style="color: #e0cfbb">Group 3</span>]]</td>
     <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group8}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group8}}}</span>]]</td>
    <td style="text-align: center; width: 10%; background: rgb(91,76,62);">[[Group 3.1|<span style="color: #e0cfbb">Group 3.1</span>]]</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt8|}}}|{{{cnt8}}}|}}</td>
     <td style="height: 30px;">''Group 3.1 contents''</td>
   </tr>
   </tr>
}}
<!-- Group 9 -->
{{#if: {{{group9|}}} |
   <tr>
   <tr>
     <td style="text-align: center; width: 10%; background: rgb(91,76,62);">[[Group 3.2|<span style="color: #e0cfbb">Group 3.2</span>]]</td>
     <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group9}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group9}}}</span>]]</td>
     <td style="background-color: #d3c3b0; height: 30px;">''Group 3.2 contents''
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt9|}}}|{{{cnt9}}}|}}</td>
   </tr>
   </tr>
}}
<!-- Group 10 -->
{{#if: {{{group10|}}} |
   <tr>
   <tr>
     <td style="text-align: center; width: 10%; background: rgb(91,76,62);">[[Group 3.3|<span style="color: #e0cfbb">Group 3.3</span>]]</td>
     <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group10}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group10}}}</span>]]</td>
     <td style="height: 30px;">''Group 3.3 contents''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{cnt10|}}}|{{{cnt10}}}|}}</td>
   </tr>
   </tr>
}}
</table>
</table>
{{#if: {{{child|}}} | | </div>}}
</div>
</includeonly>
</includeonly>


<noinclude>{{doc}}</noinclude>
<noinclude>{{doc}}</noinclude>
Confirmedusers, Interface administrators
1,131

edits