Template:NavTabs: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{uc:{{#dpl:title={{BASENAME}}}} }}{{Tabs
<includeonly>{{uc:{{#dpl:title={{BASENAME}}}} }}{{Tabs
|this={{#switch:{{{active|}}}
|this={{#switch:{{{active|}}}
  |game=1
  |overview=1
  |strategy=2
  |combos=2
  |lore=3
  |strategy=3
  |voice=4
  |okizeme=4
  |anime=5
  |frame_data=7
|anime2=6
  |discord=9
|versus=7
  |gallery=9
  |custom1=11
  |custom1=11
  |custom2=12
  |custom2=12
Line 16: Line 14:
}}
}}


|link1={{#ifeq: {{lc:{{{game|yes}}}}}|yes|{{{base|{{BASENAME}}}}}|}}
|link1={{#ifeq: {{lc:{{{overview|yes}}}}}|yes|{{{base|{{BASENAME}}}}}|}}
|name1=Game
|name1=Overview


|link2={{#ifeq: {{lc:{{{strategy|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Strategy|}}
|link2={{#ifeq: {{lc:{{{combos|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Combos|}}
|name2=Strategy
|name2=Combos


|link3={{#ifeq: {{lc:{{{lore|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Lore|}}
|link3={{#ifeq: {{lc:{{{strategy|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Strategy|}}
|name3=Lore
|name3=Strategy


|link4={{#ifeq: {{lc:{{{voice|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Voice|}}
|link4={{#ifeq: {{lc:{{{okizeme|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Okizeme|}}
|name4=Voice
|name4=Okizeme


|link5={{#if:{{{anime|}}}|{{{anime}}} (Anime)|}}
|link4={{#ifeq: {{lc:{{{frame_data|yes}}}}}|yes|{{{base|{{BASENAME}}}}}/Frame_Fata|}}
|name5=Anime
|name4=Full Frame Data


|link7={{#if:{{{versus|}}}|{{{versus}}} (Versus)|}}
|link6={{#ifeq: {{lc:{{{discord|no}}}}}|yes|{{{base|{{BASENAME}}}}}/Discord|}}
|name7=Versus
|name6=Discord


|link9={{#ifeq: {{lc:{{{gallery|no}}}}}|yes|{{{base|{{BASENAME}}}}}/Gallery|}}
|link7={{#if:{{{custom1_link|}}}|{{{custom1_link}}}|}}
|name9=Gallery
|name7={{#if:{{{custom1_tab|}}}|{{{custom1_tab}}}|Custom}}


|link11={{#if:{{{custom1_link|}}}|{{{custom1_link}}}|}}
|link8={{#if:{{{custom2_link|}}}|{{{custom2_link}}}|}}
|name11={{#if:{{{custom1_tab|}}}|{{{custom1_tab}}}|Custom}}
|name8={{#if:{{{custom2_tab|}}}|{{{custom2_tab}}}|Custom}}


|link12={{#if:{{{custom2_link|}}}|{{{custom2_link}}}|}}
|link9={{#if:{{{custom3_link|}}}|{{{custom3_link}}}|}}
|name12={{#if:{{{custom2_tab|}}}|{{{custom2_tab}}}|Custom}}
|name9={{#if:{{{custom3_tab|}}}|{{{custom3_tab}}}|Custom}}


|link13={{#if:{{{custom3_link|}}}|{{{custom3_link}}}|}}
|link10={{#if:{{{custom4_link|}}}|{{{custom4_link}}}|}}
|name13={{#if:{{{custom3_tab|}}}|{{{custom3_tab}}}|Custom}}
|name10={{#if:{{{custom4_tab|}}}|{{{custom4_tab}}}|Custom}}
 
|link14={{#if:{{{custom4_link|}}}|{{{custom4_link}}}|}}
|name14={{#if:{{{custom4_tab|}}}|{{{custom4_tab}}}|Custom}}


}}</includeonly><noinclude>{{clear}}{{doc}}</noinclude>
}}</includeonly><noinclude>{{clear}}{{doc}}</noinclude>

Revision as of 17:43, 18 June 2020

How to Use

{{NavTabs|game=|chara=|overview=|combos=|strategy=|okizeme=|frame_data=|matchups=|discord=|forums=|gbfwiki=}}

Required:
game: Name of the game from which a character comes.
chara: Name of the character. Name is used as a basis for linked subpages.
active: The tab currently "active". Defaults to Overview tab.

Optional:
combos: yes/no. Toggle Combos tab. Default: yes
strategy: yes/no. Toggle Strategy tab. Default: yes
okizeme: yes/no. Toggle Okizeme tab. Default: yes
frame_data: yes/no. Toggle Full Frame Data tab. Default: yes
discord: full ink. Provide a link to display a tab that links to the character discord.
forums: full ink. Provide a link to display a tab that links to a thread on the forums.
videos: full ink. Provide a link to display a tab that links to a video archive.

Examples

Full Format Format

   {{NavTabs|game=GGXRD-R2|chara=Venom|overview=yes|combos=yes|strategy=yes|okizeme=yes|frame_data=yes|forums=http://www.dustloop.com/forums/index.php?/forums/forum/288-venom/|videos=http://horibuna.web.fc2.com/GGXrdR/GGXrdR_VE.html}}

{{#DPL:TITLE=TEMPLATE:BASENAME}}

  [[Template:BASENAME|Overview]]   [[Template:BASENAME/Combos|Combos]]   [[Template:BASENAME/Strategy|Strategy]]   [[Template:BASENAME/Frame_Fata|Full Frame Data]]    

Default values + no okizeme tab

   {{NavTabs|game=GBVS|chara=Vaseraga|okizeme=no}}

{{#DPL:TITLE=TEMPLATE:BASENAME}}

  [[Template:BASENAME|Overview]]   [[Template:BASENAME/Combos|Combos]]   [[Template:BASENAME/Strategy|Strategy]]   [[Template:BASENAME/Frame_Fata|Full Frame Data]]    

Default values + no okizeme tab + discord tab

   {{NavTabs|game=GBVS|chara=Vaseraga|okizeme=no|discord=https://discord.gg/cMHSNjB}}

{{#DPL:TITLE=TEMPLATE:BASENAME}}

  [[Template:BASENAME|Overview]]   [[Template:BASENAME/Combos|Combos]]   [[Template:BASENAME/Strategy|Strategy]]   [[Template:BASENAME/Frame_Fata|Full Frame Data]]    

Default values + no okizeme tab, no strategy

   {{NavTabs|game=GGXRD-R2|chara=Ky_Kiske|strategy=no|okizeme=no}}

{{#DPL:TITLE=TEMPLATE:BASENAME}}

  [[Template:BASENAME|Overview]]   [[Template:BASENAME/Combos|Combos]]   [[Template:BASENAME/Frame_Fata|Full Frame Data]]    

Default values + matchups

   {{NavTabs|game=GGXRD-R2|chara=Ky_Kiske|strategy=no|okizeme=no|matchups=yes}}

{{#DPL:TITLE=TEMPLATE:BASENAME}}

  [[Template:BASENAME|Overview]]   [[Template:BASENAME/Combos|Combos]]   [[Template:BASENAME/Strategy|Strategy]]   [[Template:BASENAME/Frame_Fata|Full Frame Data]]    

Templates used

Credit

Modified from original template with credit to http://feheroes.wiki, under CC BY-NC-SA 3.0 license.