Template:Tabs/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 11: Line 11:
| 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}} }}
|}
|}


<includeonly>[[Category:Templates]]</includeonly>
<includeonly>[[Category:Templates]]</includeonly>

Revision as of 12:44, 18 January 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}}