6,366
editsAd placeholder
Template:Gameplay navbox: Difference between revisions
Jump to navigation
Jump to search
add an example
No edit summary |
(add an example) |
||
Line 1: | Line 1: | ||
{{clear}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default= | <includeonly>{{clear}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default= | ||
<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> | ||
Line 97: | Line 97: | ||
<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>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}} | ||
<noinclude>[[Category:Templates]]</noinclude> | </includeonly><noinclude> | ||
Creates a navbox. Used as a basis for simple navboxes. Example: | |||
{{Navbox | |||
| name = NavGameplay | |||
| title = [[:Category:Gameplay mechanics|Gameplay mechanics]] | |||
| basestyle = background-color:#241f1f; | |||
| liststyle = border:0px none; font-size:95%; padding-left:4px; | |||
| groupstyle = background: #241f1f; width: 17%; text-align: center; font-size: 95%; padding: 0.75em; | |||
| style = color:#C1A886; background-color:#302d2d; border:1px solid #785000; width:100%; | |||
| state = collapsed | |||
|group1 = [[Ability scores]] | |||
|list1 = {{Ability|Strength|20}} • {{Ability|Dexterity|20}} • {{Ability|Constitution|20}} • {{Ability|Intelligence|20}} • {{Ability|Wisdom|20}} • {{Ability|Charisma|20}} | |||
|group2 = [[Races]] | |||
|list2 = {{Race|Dragonborn|20}} • {{Race|Drow|20}} • {{Race|Dwarf|20}} • {{Race|Elf|20}} • {{Race|Githyanki|20}} • {{Race|Gnome|20}} • {{Race|Half-Elf|20}} • {{Race|Half-Orc|20}} • {{Race|Halfling|20}} • {{Race|Human|20}} • {{Race|Tiefling|20}} | |||
}} | |||
[[Category:Templates]]</noinclude> |