Template:Navbox: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Recreate)
Tag: Removed redirect
(remove border feature)
Line 1: Line 1:
<includeonly>{{clear}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=
<includeonly>{{clear}}
<table class="navbox {{{bodyclass|}}} navigation-not-searchable" cellspacing="0" style="margin-top: 20px; {{{bodystyle|}}}; {{{style|}}}">
<table class="navbox {{{bodyclass|}}} navigation-not-searchable" cellspacing="0" style="margin-top: 20px; {{{bodystyle|}}}; {{{style|}}}">
<tr>
<tr>
<td style="padding:2px;">}}
<td style="padding:2px;">
<table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|#default=collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};">{{#if:{{{title|}}}|
<table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|#default=collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};">{{#if:{{{title|}}}|
<tr>{{#if:{{{titlegroup|}}}|
<tr>{{#if:{{{titlegroup|}}}|
Line 96: Line 96:
<tr>{{#if:{{{group20|}}}|
<tr>{{#if:{{{group20|}}}|
<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group20style|}}}">{{{group20}}}</td>
<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group20style|}}}">{{{group20}}}</td>
<td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style=" }}width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}} " class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} "><div style="padding:{{{listpadding|0em 0.25em}}} ">{{{list20}}}</div></td></tr>}}{{#if:{{{below|}}}|{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px; "><td></td></tr>}}<tr><td class="navbox-abovebelow " style="{{{basestyle|}}};{{{belowstyle|}}} " colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}} ">{{{below}}}</td></tr>}}</table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}
<td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style=" }}width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}} " class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}} "><div style="padding:{{{listpadding|0em 0.25em}}} ">{{{list20}}}</div></td></tr>}}{{#if:{{{below|}}}|{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px; "><td></td></tr>}}<tr><td class="navbox-abovebelow " style="{{{basestyle|}}};{{{belowstyle|}}} " colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}} ">{{{below}}}</td></tr>}}</table></td></tr></table>
</includeonly><noinclude>
</includeonly><noinclude>
A primitive template used for creating a navbox. Gameplay navboxes should use [[Template:Gameplay navbox]] directly.
A primitive template used for creating a simple navbox (one without layers). Gameplay navboxes should use [[Template:Gameplay navbox]] directly.


Example:
{{Navbox
{{Navbox
| theme = gameplay
| name  = NavGameplay
| name  = NavGameplay
| title = [[:Category:Gameplay mechanics|Gameplay mechanics]]
| title = [[:Category:Gameplay mechanics|Gameplay mechanics]]

Revision as of 17:02, 28 October 2023

A primitive template used for creating a simple navbox (one without layers). Gameplay navboxes should use Template:Gameplay navbox directly.

Example: