Template:Tabs/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Equalizer5118 moved page Template:EntityTabs/doc to Template:Tabs/doc)
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{Doc/subpage}}</noinclude>
<noinclude>{{Doc/subpage}}</noinclude>
It is needed to create tabs on entity pages if these entities have different functionality in different games or engines.
This template is used when pages have different functions between engines or games. It creates tabs that automatically link to the corresponding pages.


== Parameters and Examples ==
== Parameters and Examples ==
<div style=overflow:auto>
{| class="standard-table" width="100%"
{| class="standard-table" width="100%"
! Parameter
! Parameter
Line 11: Line 12:
| align="center" | No Parameters
| align="center" | No Parameters
| Places the template and specifies the page to create tabs for.
| Places the template and specifies the page to create tabs for.
| {{CodeBlock|<nowiki>{{EntityTabs|Info player start}}</nowiki>}}
| {{CodeBlock|<nowiki>{{Tabs|Info player start}}</nowiki>}}
| {{Capsule| {{EntityTabs|info_player_start}} }}
| {{Capsule| {{Tabs|info_player_start}} }}
|-
|-
| align="center" | Software shortname
| align="center" | Software shortname
| Specifies in which software the current entity is also available.
| Specifies in which software the current entity is also available.
| {{CodeBlock|<nowiki>{{EntityTabs|Info player start|goldsrc=1|source=1}}</nowiki>}}
| {{CodeBlock|<nowiki>{{Tabs|Info player start|goldsrc=1|source=1}}</nowiki>}}
| {{Capsule| {{EntityTabs|Info player start|goldsrc=1|source=1}} }}
| {{Capsule| {{Tabs|Info player start|goldsrc=1|source=1}} }}
|-
|-
| align="center" | {{Param|main}}
| align="center" | {{Param|main}}
| Specifies the default software.
| Specifies the default software.
| {{CodeBlock|<nowiki>{{EntityTabs|Info player start|goldsrc=1|source=1|main=source}}</nowiki>}}
| {{CodeBlock|<nowiki>{{Tabs|Info player start|goldsrc=1|source=1|main=source}}</nowiki>}}
| {{Capsule| {{EntityTabs|Info player start|goldsrc=1|source=1|main=source}} }}
| {{Capsule| {{Tabs|Info player start|goldsrc=1|source=1|main=source}} }}
|-
| align="center" | {{Param|custom1-3}}
| Specifies a custom tab to link to. This can be any page on the wiki, however it does not support links outside of wiki. Custom tabs appear after all others.
| {{CodeBlock|<nowiki>{{Tabs|Info player start|goldsrc=1|source=1|main=source|custom1=info_player_teamspawn}}</nowiki>}}
| {{Capsule| {{Tabs|Info player start|goldsrc=1|source=1|main=source|custom1=info_player_teamspawn}} }}
|-
| align="center" | {{Param|custom1-3alt}}
| Specifies an alternate title for the corresponding custom tabs. Remember that this does not automatically translate!
| {{CodeBlock|<nowiki>{{Tabs|Info player start|goldsrc=1|source=1|main=source|custom1=info_player_teamspawn|custom1alt=Multiplayer variant}}</nowiki>}}
| {{Capsule| {{Tabs|Info player start|goldsrc=1|source=1|main=source|custom1=info_player_teamspawn|custom1alt=Multiplayer variant}} }}
|}
|}
</div>


== See also ==
* [[:Template:TabsBar]]
<includeonly>[[Category:Templates]]</includeonly>
<includeonly>[[Category:Templates]]</includeonly>

Latest revision as of 12:35, 16 November 2024

Edit-copy.png
This is a documentation subpage for Template:Tabs.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template is used when pages have different functions between engines or games. It creates tabs that automatically link to the corresponding pages.

Parameters and Examples

Parameter Description Example Preview
No Parameters Places the template and specifies the page to create tabs for.
{{Tabs|Info player start}}
Software shortname Specifies in which software the current entity is also available.
{{Tabs|Info player start|goldsrc=1|source=1}}
{{{main}}} Specifies the default software.
{{Tabs|Info player start|goldsrc=1|source=1|main=source}}
{{{custom1-3}}} Specifies a custom tab to link to. This can be any page on the wiki, however it does not support links outside of wiki. Custom tabs appear after all others.
{{Tabs|Info player start|goldsrc=1|source=1|main=source|custom1=info_player_teamspawn}}
{{{custom1-3alt}}} Specifies an alternate title for the corresponding custom tabs. Remember that this does not automatically translate!
{{Tabs|Info player start|goldsrc=1|source=1|main=source|custom1=info_player_teamspawn|custom1alt=Multiplayer variant}}

See also