Template:Navbox: Difference between revisions
From Vintage Story Wiki
No edit summary |
(Changed cnt# to body#) |
||
Line 7: | Line 7: | ||
|title = Example navbox | |title = Example navbox | ||
|group1 = Group 1 | |group1 = Group 1 | ||
| | |body1 = Group 1 content | ||
|group2 = Group 2 | |group2 = Group 2 | ||
| | |body2 = {{User:Sana/Sandbox/Template:Sana_template | ||
|child = true | |child = true | ||
|group1 = Group 2.1 | |group1 = Group 2.1 | ||
| | |body1 = Group 2.1 content | ||
|group2 = Group 2.2 | |group2 = Group 2.2 | ||
| | |body2 = Group 2.2 content | ||
|group3 = Group 2.3 | |group3 = Group 2.3 | ||
| | |body3 = Group 2.3 content | ||
}} | }} | ||
|group3 = Group 3 | |group3 = Group 3 | ||
| | |body3 = Group 3 content<br/> | ||
With a second line | With a second line | ||
}} | }} | ||
Line 35: | Line 35: | ||
<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> | <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 {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}" }}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}" }}>{{#if: {{{body1|}}}|{{{body1}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 42: | Line 42: | ||
<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: rgb(91,76,62);}}">[[{{{group2}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group2}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body2|}}}|{{{body2}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 49: | Line 49: | ||
<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: rgb(91,76,62);}}">[[{{{group3}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group3}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body3|}}}|{{{body3}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 56: | Line 56: | ||
<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: rgb(91,76,62);}}">[[{{{group4}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group4}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body4|}}}|{{{body4}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 63: | Line 63: | ||
<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: rgb(91,76,62);}}">[[{{{group5}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group5}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body5|}}}|{{{body5}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 70: | Line 70: | ||
<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: rgb(91,76,62);}}">[[{{{group4}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group6}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body6|}}}|{{{body6}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 77: | Line 77: | ||
<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: rgb(91,76,62);}}">[[{{{group7}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group7}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body7|}}}|{{{body7}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 84: | Line 84: | ||
<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: rgb(91,76,62);}}">[[{{{group8}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group8}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body8|}}}|{{{body8}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 91: | Line 91: | ||
<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: rgb(91,76,62);}}">[[{{{group9}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group9}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body9|}}}|{{{body9}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 98: | Line 98: | ||
<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: rgb(91,76,62);}}">[[{{{group10}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group10}}}</span>]]</td> | ||
<td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{ | <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body10|}}}|{{{body10}}}|}}</td> | ||
</tr> | </tr> | ||
}} | }} |