Template:Navbox: Difference between revisions

From Vintage Story Wiki
Removed group links
(Changed cnt# to body#)
(Removed group links)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[Template:Content]]
<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; {{{css|}}}"}}>
{{WIP}}
<table {{#if: {{{child|}}} || class="{{#if: {{{nocollapse|}}}||mw-collapsible}} {{#if: {{{hidden|}}}|mw-collapsed}}"}} style="border-spacing: 2px; width: 100%;">
 
<big>''Note that the example template below is still showing as [[Template:Content]] due to the above redirect. Until a navbox is made that can replace the latter, the new template looks as follows:</big>
{{User:Sana/Sandbox/Template:Sana_template
|title = Example navbox
|group1 = Group 1
|body1 = Group 1 content
|group2 = Group 2
|body2 = {{User:Sana/Sandbox/Template:Sana_template
  |child = true
  |group1 = Group 2.1
  |body1 = Group 2.1 content
  |group2 = Group 2.2
  |body2  = Group 2.2 content
  |group3 = Group 2.3
  |body3 = Group 2.3 content
  }}
|group3 = Group 3
|body3 = Group 3 content<br/>
With a second line
}}
 
<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;"}}>
<table {{#if: {{{child|}}} || class="mw-collapsible"}} style="border-spacing: 2px; width: 100%;">
   {{#if: {{{child|}}} || <tr><th colspan="2" style="{{#if: {{{titlestyle|}}}|{{{titlestyle}}}|
   {{#if: {{{child|}}} || <tr><th colspan="2" style="{{#if: {{{titlestyle|}}}|{{{titlestyle}}}|
     background: rgb(91,76,62);
     background: rgb(91,76,62);
Line 32: Line 9:
   </tr>}}
   </tr>}}
<!-- Group 1 -->
<!-- Group 1 -->
{{#if: {{{group1|}}} |
   <tr>
   <tr>
     <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>
     {{#if: {{{group1|}}} |<td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group1}}}'''</td>}}
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}" }}>{{#if: {{{body1|}}}|{{{body1}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}}; ">{{{body1|}}}</td>
   </tr>
   </tr>
}}
<!-- Group 2 -->
<!-- Group 2 -->
{{#if: {{{group2|}}} |
{{#if: {{{group2|}}} |
   <tr>
   <tr>
     <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 style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group2}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body2|}}}|{{{body2}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body2|}}}|{{{body2}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 48: Line 23:
{{#if: {{{group3|}}} |
{{#if: {{{group3|}}} |
   <tr>
   <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 style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group3}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body3|}}}|{{{body3}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body3|}}}|{{{body3}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 55: Line 30:
{{#if: {{{group4|}}} |
{{#if: {{{group4|}}} |
   <tr>
   <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 style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group4}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body4|}}}|{{{body4}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body4|}}}|{{{body4}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 62: Line 37:
{{#if: {{{group5|}}} |
{{#if: {{{group5|}}} |
   <tr>
   <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 style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group5}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body5|}}}|{{{body5}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body5|}}}|{{{body5}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 69: Line 44:
{{#if: {{{group6|}}} |
{{#if: {{{group6|}}} |
   <tr>
   <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 style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group6}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body6|}}}|{{{body6}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body6|}}}|{{{body6}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 76: Line 51:
{{#if: {{{group7|}}} |
{{#if: {{{group7|}}} |
   <tr>
   <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 style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group7}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body7|}}}|{{{body7}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body7|}}}|{{{body7}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 83: Line 58:
{{#if: {{{group8|}}} |
{{#if: {{{group8|}}} |
   <tr>
   <tr>
     <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="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group8}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body8|}}}|{{{body8}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body8|}}}|{{{body8}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 90: Line 65:
{{#if: {{{group9|}}} |
{{#if: {{{group9|}}} |
   <tr>
   <tr>
     <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="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group9}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body9|}}}|{{{body9}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body9|}}}|{{{body9}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 97: Line 72:
{{#if: {{{group10|}}} |
{{#if: {{{group10|}}} |
   <tr>
   <tr>
     <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; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E; color:#e0cfbb;}}">'''{{{group10}}}'''</td>
     <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body10|}}}|{{{body10}}}|}}</td>
     <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body10|}}}|{{{body10}}}|}}</td>
   </tr>
   </tr>
}}
}}
Line 104: Line 79:
</div>
</div>
</includeonly>
</includeonly>
<noinclude>{{doc}}</noinclude>
<noinclude>{{doc}}</noinclude>
Confirmedusers, Interface administrators
1,131

edits