Template:Tabber: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
No edit summary
simplified
Line 1: Line 1:
<includeonly><div style="border-radius: 8px;background-image: linear-gradient(#987556, #483728); color:#FFF5E8; margin:0 auto 1em; display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-end; gap:1em; padding:0px; font-family:'Retail Demo','Radiance',sans-serif; text-transform:uppercase; font-weight:bold; font-size:15px;"><!--
<includeonly><div style="border-radius: 8px;background-image: linear-gradient(#987556, #483728); color:#FFF5E8; margin:0 auto 1em; display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-end; gap:1em; padding:0px; font-family:'Retail Demo','Radiance',sans-serif; text-transform:uppercase; font-weight:bold; font-size:15px;"><!--
-->{{#if:{{{1|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{1|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{altlink1|{{{1|}}}}}}</span>]]</div>|}}<!--
-->{{#if:{{{1|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{1|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{l1|{{{1|}}}}}}</span>]]</div>|}}<!--
-->{{#if:{{{2|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{2|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{2|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{2|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{altlink2|{{{2|}}}}}}</span>]]</div>|}}<!--
-->{{#if:{{{2|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{2|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{2|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{2|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{l2|{{{2|}}}}}}</span>]]</div>|}}<!--
-->{{#if:{{{3|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{3|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{3|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{3|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{altlink3|{{{3|}}}}}}</span>]]</div>|}}<!--
-->{{#if:{{{3|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{3|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{3|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{3|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{l3|{{{3|}}}}}}</span>]]</div>|}}<!--
-->{{#if:{{{4|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{4|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{4|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{4|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{altlink4|{{{4|}}}}}}</span>]]</div>|}}<!--
-->{{#if:{{{4|}}}| <div style="{{#ifeq: {{FULLPAGENAMEE}} | {{{4|{{ROOTPAGENAMEE}}}}} | background-color:#FFF0D6; color:#483728; padding:4px 8px; border-radius: 4px 4px 0 0; | padding:4px 8px; cursor:pointer }}">[[{{{4|}}}|<span style="{{#ifeq: {{FULLPAGENAMEE}} | {{{4|{{ROOTPAGENAMEE}}}}} | color:#483728; | color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black; }}">{{{l4|{{{4|}}}}}}</span>]]</div>|}}<!--
--></div></includeonly><!--
--></div></includeonly><!--
--><noinclude>{{Documentation}}</noinclude>
--><noinclude>{{Documentation}}</noinclude>

Revision as of 23:27, 15 September 2025

Template documentation [view] [edit] [history] [purge]

Template used to create Tabs for any page. The numbers are the names of the pages. l1, l2 etc. are used for manual alternate names, while t1, t2 etc. are used for automatic translations from Data:Dictionary.

Examples

{{Tabber|1=Heroes|2=Hero Attributes Table}}
{{Tabber|1=Heroes|2=Hero Attributes Table|l2=Attributes Table}}

Example of automatic translation (Simulated view of a Chinese page). Note: The link (1=) usually points to the specific language page.

{{Tabber|1=Heroes/zh-hans|t1=Heroes}}

Template used to create navigation tabs for any page.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Tab 1 Link1

Page name for the first tab.

Page namerequired
Tab 1 Labell1

Manual text override for Tab 1.

Stringoptional
Tab 1 Translation Keyt1

Dictionary key for automatic translation of Tab 1. (e.g. 'Heroes')

Stringoptional
Tab 2 Link2

Page name for the second tab.

Page nameoptional
Tab 2 Labell2

Manual text override for Tab 2.

Stringoptional
Tab 2 Translation Keyt2

Dictionary key for automatic translation of Tab 2.

Stringoptional
Tab 3 Link3

Page name for the third tab.

Page nameoptional
Tab 3 Labell3

Manual text override for Tab 3.

Stringoptional
Tab 3 Translation Keyt3

Dictionary key for automatic translation of Tab 3.

Stringoptional
Tab 4 Link4

Page name for the fourth tab.

Page nameoptional
Tab 4 Labell4

Manual text override for Tab 4.

Stringoptional
Tab 4 Translation Keyt4

Dictionary key for automatic translation of Tab 4.

Stringoptional