Template:Tab: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="noexcerpt navigation-not-searchable" style="background-color:#1B1B1B;"  
<includeonly><table class="noexcerpt navigation-not-searchable bg3wiki-tabbar {{#ifeq: {{{nodesktop|}}} | yes | nodesktop}}">
| style="{{#ifeq: {{PAGENAME}} | {{{one}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" | [[{{{one}}}|{{{one-name}}}]]
<tr>
| style="{{#ifeq: {{PAGENAME}} | {{{two}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" | [[{{{two}}}|{{{two-name}}}]]
<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{one}}} | bg3wiki-tab-active}}" > [[{{{one}}}|{{{one-name}}}]]</td>
{{#if: {{{three}}}|{{!}} style="{{#ifeq: {{PAGENAME}} {{!}} {{{three}}} {{!}} background-color:#281C14; color:#C1A886; {{!}} }} padding:0 10px;" {{!}} [[{{{three}}}{{!}}{{{three-name}}}]]|}}
<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{two}}} | bg3wiki-tab-active}}" > [[{{{two}}}|{{{two-name}}}]]</td>
{{#if: {{{four}}}|{{!}} style="{{#ifeq: {{PAGENAME}} {{!}} {{{four}}} {{!}} background-color:#281C14; color:#C1A886; {{!}} }} padding:0 10px;" {{!}} [[{{{four}}}{{!}}{{{four-name}}}]]|}}
{{trim|{{#if: {{{three|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{three}}} | bg3wiki-tab-active}}" > [[{{{three}}}|{{{three-name}}}]]</td>|}}
{{#if: {{{five}}}|{{!}} style="{{#ifeq: {{PAGENAME}} {{!}} {{{five}}} {{!}} background-color:#281C14; color:#C1A886; {{!}} }} padding:0 10px;" {{!}} [[{{{five}}}{{!}}{{{five-name}}}]]|}}
{{#if: {{{four|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{four}}} | bg3wiki-tab-active}}" > [[{{{four}}}|{{{four-name}}}]]</td>|}}
{{#if: {{{six}}}|{{!}} style="{{#ifeq: {{PAGENAME}} {{!}} {{{six}}} {{!}} background-color:#281C14; color:#C1A886; {{!}} }} padding:0 10px;" {{!}} [[{{{six}}}{{!}}{{{six-name}}}]]|}}
{{#if: {{{five|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{five}}} | bg3wiki-tab-active}}" > [[{{{five}}}|{{{five-name}}}]]</td>|}}
{{#if: {{{seven}}}|{{!}} style="{{#ifeq: {{PAGENAME}} {{!}} {{{seven}}} {{!}} background-color:#281C14; color:#C1A886; {{!}} }} padding:0 10px;" {{!}} [[{{{seven}}}{{!}}{{{seven-name}}}]]|}}
{{#if: {{{six|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{six}}} | bg3wiki-tab-active}}" > [[{{{six}}}|{{{six-name}}}]]</td>|}}
|}</includeonly><noinclude>[[Category:Templates]]
{{#if: {{{seven|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{seven}}} | bg3wiki-tab-active}}" > [[{{{seven}}}|{{{seven-name}}}]]</td>|}}
{{#if: {{{eight|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{eight}}} | bg3wiki-tab-active}}" > [[{{{eight}}}|{{{eight-name}}}]]</td>|}}
{{#if: {{{nine|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{nine}}} | bg3wiki-tab-active}}" > [[{{{nine}}}|{{{nine-name}}}]]</td>|}}
{{#if: {{{ten|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{ten}}} | bg3wiki-tab-active}}" > [[{{{ten}}}|{{{ten-name}}}]]</td>|}}}}
</tr>
</table>{{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}||[[Category:{{SUBPAGENAME}} subpages]]}}</includeonly><noinclude>
Creates up to ten fake tabs. For a combat shortcut use [[Template:CombatTab]]
<pre> {{Tab
|one=The Dark Urge
|one-name=Story Spoiler Page
|two=The Dark Urge (Origin)
|two-name=Origin Page
}}</pre>
{{Tab
|one=Template:Tab
|one-name=Story Spoiler Page
|two=The Dark Urge (Origin)
|two-name=Origin Page
}}
 
Or
 
{{Tab
|one=Spells
|one-name=Overview
|two= All spells
|two-name=All spells
|three= List of cantrips
|three-name=Cantrips
|four= List of 1st level spells
|four-name=Level 1
|five= List of 2nd level spells
|five-name=Level 2
|six= List of 3rd level spells
|six-name=Level 3
|seven= List of 4th level spells
|seven-name=Level 4
|eight= List of 5th level spells
|eight-name=Level 5
|nine= List of 6th level spells
|nine-name=Level 6
}}
 
[[Category:Templates]][[Category:Tab templates]]
</noinclude>

Latest revision as of 03:06, 6 January 2024

Creates up to ten fake tabs. For a combat shortcut use Template:CombatTab

 {{Tab
 |one=The Dark Urge
 |one-name=Story Spoiler Page
 |two=The Dark Urge (Origin)
 |two-name=Origin Page
 }}

Or