Template:Tab: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) (Use documentation and template demo templates) |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><table class="noexcerpt navigation-not-searchable bg3wiki-tabbar {{#ifeq: {{{nodesktop|}}} | yes | nodesktop}}"> | ||
<table class="noexcerpt navigation-not-searchable | |||
<tr> | <tr> | ||
<td | <td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{one}}} | bg3wiki-tab-active}}" > [[{{{one}}}|{{{one-name}}}]]</td> | ||
<td | <td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{two}}} | bg3wiki-tab-active}}" > [[{{{two}}}|{{{two-name}}}]]</td> | ||
{{#if: {{{ | {{trim|{{#if: {{{three|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{three}}} | bg3wiki-tab-active}}" > [[{{{three}}}|{{{three-name}}}]]</td>|}} | ||
{{#if: {{{ | {{#if: {{{four|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{four}}} | bg3wiki-tab-active}}" > [[{{{four}}}|{{{four-name}}}]]</td>|}} | ||
{{#if: {{{five|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{five}}} | bg3wiki-tab-active}}" > [[{{{five}}}|{{{five-name}}}]]</td>|}} | |||
{{#if: {{{six|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{six}}} | bg3wiki-tab-active}}" > [[{{{six}}}|{{{six-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> | </table>{{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}||[[Category:{{SUBPAGENAME}} subpages]]}}</includeonly><noinclude>{{Documentation|content= | ||
</includeonly><noinclude> | Creates up to ten fake tabs. For a combat shortcut use [[Template:CombatTab]] | ||
Creates up to | |||
< | == Example == | ||
{{Template demo | |||
| style = list | |||
| <nowiki> {{Tab | |||
|one=The Dark Urge | |one=The Dark Urge | ||
|one-name=Story Spoiler Page | |one-name=Story Spoiler Page | ||
|two=The Dark Urge (Origin) | |two=The Dark Urge (Origin) | ||
|two-name=Origin Page | |two-name=Origin Page | ||
}} | }}</nowiki> | ||
</ | | <nowiki> {{Tab | ||
{{Tab | |one=Spells | ||
|one= | |one-name=Overview | ||
|one-name= | |two= All spells | ||
|two= | |two-name=All spells | ||
|two-name= | |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 | |||
}}</nowiki> | |||
}} | }} | ||
}} | |||
[[Category:Templates]] | |||
[[Category:Tab templates]] | |||
</noinclude> |
Latest revision as of 22:36, 19 January 2025
Template documentation
Creates up to ten fake tabs. For a combat shortcut use Template:CombatTab
Example
Markup
{{Tab |one=The Dark Urge |one-name=Story Spoiler Page |two=The Dark Urge (Origin) |two-name=Origin Page }}Renders as
Story Spoiler Page | Origin Page |
Markup
{{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 }}Renders as
Overview | All spells | Cantrips | Level 1 | Level 2 | Level 3 | Level 4 | Level 5 | Level 6 |