Template:Tabs: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(should fix issue with page name typed with lower case and _ characters)
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{todo|{{param|main}} does not work with {{code|idtech and goldsrc}} or {{code|quake and goldsrc}}.}}
{{todo|{{param|main}} does not work with {{code|idtech and goldsrc}} or {{code|quake and goldsrc}}.}}
{{Doc}}
{{Doc}}
<includeonly><onlyinclude><div style="display:flex; gap:12px; border-bottom:1px solid rgb(104 104 104); margin-bottom:8px"><!--
<includeonly><onlyinclude><div style="display:flex; gap:12px; border-bottom:1px solid rgb(104 104 104); border-radius:4px 4px 0 0; padding:.5em .5em 0 .5em; margin-bottom:8px"><!--


  - IdTech + GoldSrc shared -
  - IdTech + GoldSrc shared -
Line 69: Line 69:
-->{{#if:{{{csgo|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Counter-Strike: Global Offensive|main={{#switch:{{{main|}}}|csgo=true|false}}}}|}}<!--
-->{{#if:{{{csgo|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Counter-Strike: Global Offensive|main={{#switch:{{{main|}}}|csgo=true|false}}}}|}}<!--


-->{{#if:{{{vtmb|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Vampire The Masquerade - Bloodlines|main={{#switch:{{{main|}}}|vtmb=true|false}}}}|}}<!--
-->{{#if:{{{vtmb|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Vampire: The Masquerade Bloodlines|main={{#switch:{{{main|}}}|vtmb=true|false}}}}|}}<!--


-->{{#if:{{{sineps|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Sin Episodes|main={{#switch:{{{main|}}}|sineps=true|false}}}}|}}<!--
-->{{#if:{{{sineps|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Sin Episodes|main={{#switch:{{{main|}}}|sineps=true|false}}}}|}}<!--
Line 75: Line 75:
-->{{#if:{{{bms|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Black Mesa|main={{#switch:{{{main|}}}|sineps=true|false}}}}|}}<!--
-->{{#if:{{{bms|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Black Mesa|main={{#switch:{{{main|}}}|sineps=true|false}}}}|}}<!--


-->{{#if:{{{hls|}}}|{{Tabs/Tab|{{PAGENAME:{{{1|}}}}}|Half-Life: Source|main={{#switch:{{{main|}}}|sineps=true|false}}}}|}}<!--


  - Source 2 -
  - Source 2 -
Line 88: Line 89:
  - Custom tabs (document how these work) -  
  - Custom tabs (document how these work) -  


-->{{#if:{{{custom1|}}}|{{Tabs/Tab|{{{custom1|}}}|{{{custom1alt|{{{custom1}}}}}}|main={{#switch:{{{main|}}}|{{{custom1}}}=true|true}}}}|}}<!--
-->{{#if:{{{custom1|}}}|{{Tabs/Tab|{{PAGENAME:{{{custom1|}}}}}|{{{custom1alt|{{{custom1}}}}}}|main={{#switch:{{{main|}}}|{{{custom1}}}=true|true}}}}|}}<!--


-->{{#if:{{{custom2|}}}|{{Tabs/Tab|{{{custom2|}}}|{{{custom2alt|{{{custom2}}}}}}|main={{#switch:{{{main|}}}|{{{custom2}}}=true|true}}}}|}}<!--
-->{{#if:{{{custom2|}}}|{{Tabs/Tab|{{PAGENAME:{{{custom2|}}}}}|{{{custom2alt|{{{custom2}}}}}}|main={{#switch:{{{main|}}}|{{{custom2}}}=true|true}}}}|}}<!--


-->{{#if:{{{custom3|}}}|{{Tabs/Tab|{{{custom3|}}}|{{{custom3alt|{{{custom3}}}}}}|main={{#switch:{{{main|}}}|{{{custom3}}}=true|true}}}}|}}<!--
-->{{#if:{{{custom3|}}}|{{Tabs/Tab|{{PAGENAME:{{{custom3|}}}}}|{{{custom3alt|{{{custom3}}}}}}|main={{#switch:{{{main|}}}|{{{custom3}}}=true|true}}}}|}}<!--


--></div></onlyinclude></includeonly>
--></div></onlyinclude></includeonly>

Latest revision as of 15:42, 2 May 2025

Todo: {{{main}}} does not work with idtech and goldsrc or quake and goldsrc.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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