Difference between revisions of "Template:DemonTabs"

From SMT: Dx2 Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={Character}:rarity}}}} }}{{Tabs |this={{#switch:{{{active|}}} |game=1 |strategy=2 |lore=3 |voice...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={Character}:rarity}}}} }}{{Tabs
+
<includeonly>{{#vardefine: rarity | {{uc:{{#dpl:title={{BASENAME}}|include={Demon}:rarity}}}} }}{{Tabs
 
|this={{#switch:{{{active|}}}
 
|this={{#switch:{{{active|}}}
  |game=1
+
  |info=1
  |strategy=2
+
  |builds=2
 
  |lore=3
 
  |lore=3
  |voice=4
+
  |gallery=4
  |anime=5
+
  |spirit=5
|anime2=6
 
|gallery=9
 
 
  |custom1=11
 
  |custom1=11
 
  |custom2=12
 
  |custom2=12
Line 13: Line 11:
 
}}
 
}}
  
|link1={{#ifeq: {{lc:{{{game|yes}}}}}|yes|{{{base|{{BASENAME}}}}}|}}
+
|link1={{#ifeq: {{lc:{{{info|yes}}}}}|yes|{{{base|{{BASENAME}}}}}|}}
|name1=Game
+
|name1=Info
  
|link2={{#ifeq: {{lc:{{{strategy|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Strategy|}}
+
|link2={{#ifeq: {{lc:{{{builds|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Builds|}}
|name2=Strategy
+
|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={{#ifeq: {{lc:{{{voice|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Voice|}}
+
|link4={{#ifeq: {{lc:{{{gallery|no}}}}}|yes|{{{base|{{BASENAME}}}}}/Gallery|}}
|name4=Voice
+
|name4=Gallery
  
|link5={{#if:{{{anime|}}}|{{{anime}}} (Anime)|}}
+
|link5={{#ifeq: {{lc:{{{gallery|no}}}}}|yes|{{{base|{{BASENAME}}}}}/Spirit|}}
|name5=Anime
+
|name5=Spirit
 
 
|link9={{#ifeq: {{lc:{{{gallery|no}}}}}|yes|{{{base|{{BASENAME}}}}}/Gallery|}}
 
|name9=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 33:
  
 
}}<!--
 
}}<!--
-->{{#ifeq: {{lc:{{{active|}}}}}|strategy|[[Category:Character Strategy]]|}}<!--
+
-->{{#ifeq: {{lc:{{{active|}}}}}|builds|[[Category:Demon Builds]]|}}<!--
-->{{#ifeq: {{lc:{{{active|}}}}}|lore|[[Category:Character Lore]] [[Category:Lore]] {{#if:{{#pos:{{#var:rarity}}|NO RESULTS}}||[[Category:{{uc:{{#dpl:title={{BASENAME}}|include={Character}:rarity}}}} Characters Lore]]}}}}<!--
+
-->{{#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:Character Gallery]]|}}<!--
+
-->{{#ifeq: {{lc:{{{active|}}}}}|gallery|[[Category:Demon Gallery]]|}}<!--
-->{{#ifeq: {{lc:{{{active|}}}}}|voice|[[Category:Character Voice]]|}}<!--
+
--></includeonly><noinclude>{{DemonTabs|base={{FULLPAGENAME}}|builds=yes|lore=yes|gallery=yes}}
--></includeonly><noinclude>{{CharacterTabs|base={{FULLPAGENAME}}|strategy=yes|lore=yes|voice=yes|gallery=yes}}
 
 
== How to Use ==
 
== How to Use ==
<pre>{{CharacterTabs|base=|anime=|strategy=|lore=|voice=|gallery=}}
+
<pre>{{DemonTabs|base=|builds=|lore=|gallery=}}
  
 
Required:
 
Required:
base: Name of the game character. Name is used as a basis for linked subpages (except anime!)
+
base: Name of the 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 Info tab.
  
 
Optional:
 
Optional:
anime: Name of the anime counterpart (without "(Anime)").
+
builds: yes/no. Toggle Builds tab. Default: yes
strategy: yes/no. Toggle Strategy 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>
 
Character anime pages have a separate naming scheme from game pages. Characters with alternate versions may link to their normal anime page as well. (e.g. [[Katalina (Summer)]] can link to [[Katalina (Anime)]])
 
  
 
'''Gallery tabs are temporarily off by default'''
 
'''Gallery tabs are temporarily off by default'''
  
 
== Examples ==
 
== Examples ==
=== Game character only ===
+
=== Demon ===
<code><nowiki>{{CharacterTabs|base=Razia|strategy=no|gallery=no|lore=no|voice=no}}</nowiki></code>
+
<code><nowiki>{{DemonTabs|base=Setanta|builds=yes|gallery=yes|lore=yes}}</nowiki></code>
{{CharacterTabs|base=Razia|strategy=no|gallery=no|lore=no|voice=no}}
+
{{DemonTabs|base=Setanta|builds=yes|gallery=yes|lore=yes}}
 
 
=== Alternate character with anime counterpart ===
 
<code><nowiki>{{CharacterTabs|base=Katalina (Summer)|anime=Katalina}}</nowiki></code>
 
{{CharacterTabs|base=Katalina (Summer)|anime=Katalina}}
 
 
 
=== Game character, active anime tab ===
 
<code><nowiki>{{CharacterTabs|base=Katalina (Summer)|anime=Katalina|active=anime}}</nowiki></code>
 
{{CharacterTabs|base=Katalina (Summer)|anime=Katalina|active=anime}}
 
 
 
=== Game character, no strategy tab ===
 
<code><nowiki>{{CharacterTabs|base=Sierokarte|strategy=no}}</nowiki></code>
 
{{CharacterTabs|base=Sierokarte|strategy=no}}
 
 
 
=== Game character, no strategy, no lore tab ===
 
<code><nowiki>{{CharacterTabs|base=Sierokarte|strategy=no|lore=no}}</nowiki></code>
 
{{CharacterTabs|base=Sierokarte|strategy=no|lore=no}}
 
  
 
== Templates used ==
 
== Templates used ==

Latest revision as of 14:48, 24 July 2019

  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.