Difference between revisions of "Template:DemonTabs"
(Created page with "<includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={Character}:rarity}}}} }}{{Tabs |this={{#switch:{{{active|}}} |game=1 |strategy=2 |lore=3 |voice...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={ | + | <includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={Demon}:rarity}}}} }}{{Tabs |
|this={{#switch:{{{active|}}} | |this={{#switch:{{{active|}}} | ||
|game=1 | |game=1 | ||
− | | | + | |builds=2 |
|lore=3 | |lore=3 | ||
− | | | + | |gallery=4 |
− | |||
− | |||
− | |||
|custom1=11 | |custom1=11 | ||
|custom2=12 | |custom2=12 | ||
Line 16: | Line 13: | ||
|name1=Game | |name1=Game | ||
− | |link2={{#ifeq: {{lc:{{{ | + | |link2={{#ifeq: {{lc:{{{builds|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Strategy|}} |
− | |name2= | + | |name2=Builds |
|link3={{#ifeq: {{lc:{{{lore|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Lore|}} | |link3={{#ifeq: {{lc:{{{lore|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Lore|}} | ||
|name3=Lore | |name3=Lore | ||
− | |link4 | + | |link4={{#ifeq: {{lc:{{{gallery|no}}}}}|yes|{{{base|{{BASENAME}}}}}/Gallery|}} |
− | + | |name4=Gallery | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
|link11={{#if:{{{custom1_link|}}}|{{{custom1_link}}}|}} | |link11={{#if:{{{custom1_link|}}}|{{{custom1_link}}}|}} | ||
|name11={{#if:{{{custom1_tab|}}}|{{{custom1_tab}}}|Custom}} | |name11={{#if:{{{custom1_tab|}}}|{{{custom1_tab}}}|Custom}} | ||
− | |||
|link12={{#if:{{{custom2_link|}}}|{{{custom2_link}}}|}} | |link12={{#if:{{{custom2_link|}}}|{{{custom2_link}}}|}} | ||
Line 39: | Line 29: | ||
}}<!-- | }}<!-- | ||
− | -->{{#ifeq: {{lc:{{{active|}}}}}| | + | -->{{#ifeq: {{lc:{{{active|}}}}}|builds|[[Category:Demon Builds]]|}}<!-- |
− | -->{{#ifeq: {{lc:{{{active|}}}}}|lore|[[Category: | + | -->{{#ifeq: {{lc:{{{active|}}}}}|lore|[[Category:Demon Lore]] [[Category:Lore]] {{#if:{{#pos:{{#var:rarity}}|NO RESULTS}}||[[Category:{{uc:{{#dpl:title={{BASENAME}}|include={Character}:rarity}}}} Demons Lore]]}}}}<!-- |
− | -->{{#ifeq: {{lc:{{{active|}}}}}|gallery|[[Category: | + | -->{{#ifeq: {{lc:{{{active|}}}}}|gallery|[[Category:Demon Gallery]]|}}<!-- |
− | + | --></includeonly><noinclude>{{DemonTabs|base={{FULLPAGENAME}}|builds=yes|lore=yes|gallery=yes}} | |
− | --></includeonly><noinclude>{{ | ||
== How to Use == | == How to Use == | ||
− | <pre>{{ | + | <pre>{{DemonTabs|base=|builds=|lore=|gallery=}} |
Required: | Required: | ||
− | base: Name of the game | + | base: Name of the game demon. Name is used as a basis for linked subpages |
active: The tab currently "active". Defaults to Game tab. | active: The tab currently "active". Defaults to Game tab. | ||
Optional: | Optional: | ||
− | + | builds: yes/no. Toggle Builds tab. Default: yes | |
− | |||
lore: yes/no. Toggle Lore tab. Default: yes | lore: yes/no. Toggle Lore tab. Default: yes | ||
gallery: yes/no. Toggle Gallery tab. Default: yes | gallery: yes/no. Toggle Gallery tab. Default: yes | ||
</pre> | </pre> | ||
− | |||
− | |||
'''Gallery tabs are temporarily off by default''' | '''Gallery tabs are temporarily off by default''' | ||
== Examples == | == Examples == | ||
− | === | + | === Demon === |
− | <code><nowiki>{{ | + | <code><nowiki>{{DemonTabs|base=Setanta|builds=yes|gallery=yes|lore=yes}}</nowiki></code> |
− | {{ | + | {{DemonTabs|base=Setanta|builds=yes|gallery=yes|lore=yes}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Templates used == | == Templates used == |
Revision as of 15:21, 28 July 2018
Info | Builds | Lore | Gallery | Spirit |
How to Use
{{DemonTabs|base=|builds=|lore=|gallery=}} Required: base: Name of the game demon. Name is used as a basis for linked subpages active: The tab currently "active". Defaults to Game tab. Optional: builds: yes/no. Toggle Builds tab. Default: yes lore: yes/no. Toggle Lore tab. Default: yes gallery: yes/no. Toggle Gallery tab. Default: yes
Gallery tabs are temporarily off by default
Examples
Demon
{{DemonTabs|base=Setanta|builds=yes|gallery=yes|lore=yes}}
Info | Builds | Lore | Gallery | Spirit |
Templates used
Credit
Modified from original template with credit to http://feheroes.wiki, under CC BY-NC-SA 3.0 license.