Template:TDRight

From Rocket League at EsportsWikis
Jump to: navigation, search

(view - edit)

Documentation

What is TDRight?

{{TDRight}} is an alternative to {{TabsDynamic}}. It is suggested that you use {{TDRight}} when creating tabs for content that is time-sensitive, e.g. Achievements, Interviews, Articles, and Vlogs.

The difference between {{TDRight}} and {{TabsDynamic}} is how tabs are named. In {{TabsDynamic}}, |name1 gives you the first tab from the left. In {{TDRight}}, |name1 gives you the first tab from the right (thus the name).

{{TabsDynamic}} has two different methods for using the template: either you can define variables |content1, etc, or you can use the template {{TabsDynamic/tab}} to divide between sections of content. {{TDRight}} supports both methods as well. You may use {{TDR}} as abbreviated syntax.

This

Optionally, you may specify |This=N, where N is the number of the tab (numbered right to left, as everything else is) that you wish to be focused when the page is first loaded. By default, the leftmost tab will be focused.

Implementations

Method 1:

{{TDRight
|name1=One
|name2=Two
|name3=Three
|content1=One
|content2=Two
|content3=Three}}

Method 2:

{{TDRight
|name1=One
|name2=Two
|name3=Three}}
{{TDRight|tab}}
Content in Tab 3
{{TDRight|tab}}
Content in Tab 2
{{TDRight|tab}}
content in Tab 1
{{TDRight|end}}

Either way of writing the code will generate the following:

  • Three
  • Two
  • One

Three

Two

One

You MUST use the second method if including tables, and you MAY NOT mix the styles.

For example, the following is not valid syntax:

{{TDRight
|name1=One
|name2=Two
|name3=Three
|content1=One
|content2=Two}}
{{TDRight|tab}}
Three
{{TDRight|end

Dependent Templates

If you need more than 20 tabs added, please contact a member of wiki management.

See Also