Difference between revisions of "Template:DemonTabs"
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={Demon}:rarity}}}} }}{{Tabs | <includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={Demon}:rarity}}}} }}{{Tabs | ||
|this={{#switch:{{{active|}}} | |this={{#switch:{{{active|}}} | ||
| − | | | + | |info=1 |
|builds=2 | |builds=2 | ||
|lore=3 | |lore=3 | ||
| Line 10: | Line 10: | ||
}} | }} | ||
| − | |link1={{#ifeq: {{lc:{{{ | + | |link1={{#ifeq: {{lc:{{{info|yes}}}}}|yes|{{{base|{{BASENAME}}}}}|}} |
| − | |name1= | + | |name1=Info |
|link2={{#ifeq: {{lc:{{{builds|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Strategy|}} | |link2={{#ifeq: {{lc:{{{builds|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Strategy|}} | ||
| Line 37: | Line 37: | ||
Required: | Required: | ||
| − | base: Name of the | + | base: Name of the demon. Name is used as a basis for linked subpages. |
| − | active: The tab currently "active". Defaults to | + | active: The tab currently "active". Defaults to Info tab. |
Optional: | Optional: | ||
Revision as of 15:23, 28 July 2018
| Info | Builds | Lore | Gallery | Spirit |
How to Use
{{DemonTabs|base=|builds=|lore=|gallery=}}
Required:
base: Name of the demon. Name is used as a basis for linked subpages.
active: The tab currently "active". Defaults to Info 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.