Template:TabsDynamic

From SMITE Esports Wiki
Jump to: navigation, search

(view - edit)

Documentation

Usage

Syntax 1

{{TabsDynamic
|name1=
|name2=
|content1=
|content2=
|This=
}}

Variables:

  • |name1= name of the 1st tab.
  • |name2= name of the 2nd tab.
  • |content1= 1st tab's content goes here
  • |content2= 2nd tab's content goes here
  • |This=

Add more name# and content# for more tabs.

Syntax 2

If you need tables or edit links inside these tabs, use the alternate markup:

{{TabsDynamic
|name1=
|name2=
|This=
}}
{{TD/tab|1}}
{{TD/tab|2}}
{{TD/end}}

Or:

{{TabsDynamic
|name1=
|name2=
|This=
}}
{{TD|tab}}
{{TD|tab}}
{{TD|end}}

However this syntax may be confusing because you aren't specifying a tab number each time (or you may want to put a comment after each {{TD|tab}}).

When To Use Nowrap or J?

The template {{nowrap}} (or its shortcut {{j}} is used in the name tabs when you have a space or hyphen or other character that allows the text to wrap. Otherwise it's needed.

You DO need {{nowrap}}:

  • |name1=Group Stage
  • |name2=Bracket Stage
  • |name3=Post-Worlds

You do NOT need {{nowrap}}:

  • |name1=2015
  • |name2=Interviews
  • |name3=Articles

Examples

Example 1: With unbreakable spaces

{{TabsDynamic
|name1=Overview
|content1=Content 1
|name2=Season 1
|content2=Content 2
|name3={{nowrap|Season 2}}
|content3=Content 3
|This=3}}

*Used with   and/or {{nowrap}}

Will look like this:

  • Overview
  • Season 1
  • Season 2

Content 1

Content 2

Content 3


Example 2: Without unbreakable spaces

{{TabsDynamic
|name1=Overview
|content1=Content 1
|name2=Season 1
|content2=Content 2
|name3=Season 2
|content3=Content 3
|This=3}}

*Used without   or {{nowrap}} 

Will look like this:

  • Overview
  • Season 1
  • Season 2

Content 1

Content 2

Content 3


See Also

Adapted from Liquipedia