Template:Tab: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><table class="noexcerpt navigation-not-searchable" style="background-color:#1B1B1B;">
<includeonly><table class="noexcerpt navigation-not-searchable bg3wiki-tabbar {{#ifeq: {{{nodesktop|}}} | yes | nodesktop}}">
<tr>
<tr>
<td style="{{#ifeq: {{PAGENAME}} | {{{one}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" > [[{{{one}}}|{{{one-name}}}]]</td>
<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{one}}} | bg3wiki-tab-active}}" > [[{{{one}}}|{{{one-name}}}]]</td>
<td style="{{#ifeq: {{PAGENAME}} | {{{two}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" > [[{{{two}}}|{{{two-name}}}]]</td>
<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{two}}} | bg3wiki-tab-active}}" > [[{{{two}}}|{{{two-name}}}]]</td>
{{#if: {{{three|}}}|<td style="{{#ifeq: {{PAGENAME}} | {{{three}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" > [[{{{three}}}|{{{three-name}}}]]</td>|}}
{{trim|{{#if: {{{three|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{three}}} | bg3wiki-tab-active}}" > [[{{{three}}}|{{{three-name}}}]]</td>|}}
{{#if: {{{four|}}}|<td style="{{#ifeq: {{PAGENAME}} | {{{four}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" > [[{{{four}}}|{{{four-name}}}]]</td>|}}
{{#if: {{{four|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{four}}} | bg3wiki-tab-active}}" > [[{{{four}}}|{{{four-name}}}]]</td>|}}
{{#if: {{{five|}}}|<td style="{{#ifeq: {{PAGENAME}} | {{{five}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" > [[{{{five}}}|{{{five-name}}}]]</td>|}}
{{#if: {{{five|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{five}}} | bg3wiki-tab-active}}" > [[{{{five}}}|{{{five-name}}}]]</td>|}}
{{#if: {{{six|}}}|<td style="{{#ifeq: {{PAGENAME}} | {{{six}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" > [[{{{six}}}|{{{six-name}}}]]</td>|}}
{{#if: {{{six|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{six}}} | bg3wiki-tab-active}}" > [[{{{six}}}|{{{six-name}}}]]</td>|}}
{{#if: {{{seven|}}}|<td style="{{#ifeq: {{PAGENAME}} | {{{seven}}} | background-color:#281C14; color:#C1A886; | }} padding:0 10px;" > [[{{{seven}}}|{{{seven-name}}}]]</td>|}}
{{#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>
</tr>
</table></includeonly><noinclude>[[Category:Templates]]
</table>{{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}||[[Category:{{SUBPAGENAME}} subpages]]}}</includeonly><noinclude>
Creates up to seven fake tabs.
Creates up to ten fake tabs. For a combat shortcut use [[Template:CombatTab]]
<pre> {{Tab
<pre> {{Tab
  |one=The Dark Urge
  |one=The Dark Urge
Line 17: Line 20:
  |two-name=Origin Page
  |two-name=Origin Page
  }}</pre>
  }}</pre>
{{Tab
{{Tab
|one=Template:Tab
|one=Template:Tab
|one-name=Story Spoiler Page
|one-name=Story Spoiler Page
Line 23: Line 26:
|two-name=Origin Page
|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