Template:TabsBar/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
improved version of {{T|Tabs}}
{{doc}}
 
instead of editing all the pages that are in the tabs this works by making specific tab bar as its own template for chosen pages
 
 
use: place <nowiki>{{TabsBar}}</nowiki> on main page, click show preview, click link it shows and follow instruction shown by preload, put <nowiki>{{TabsBar|main=whatever was chosen}}</nowiki> on other related pages
 
 
use examples:
*[[player]] and {{T|TabsBar/Player}}
*[[env_beam]] and {{T|TabsBar/Env beam}}
*[[npc_headcrab]] and {{T|TabsBar/Npc headcrab}}
*[[npc_vortigaunt]] and {{t|TabsBar/Npc vortigaunt}}
*[[func water (Source)]] and {{T|TabsBar/Func water (Source)}}
 
Presets:
* {{T|TabsBar/gs}} - usage {{T|TabsBar|{{P|main|gs}}{{P|base|xxx}}}} - For entities in GoldSrc and Source 1, where pages names are 'xxx (GoldSrc)', 'xxx'
* {{T|TabsBar/s2}} - usage {{T|TabsBar|{{P|main|s2}}{{P|base|xxx}}}} - For entities in Source 1 and Source 2, where pages names are 'xxx (GoldSrc)', 'xxx', 'xxx (Source 2)'
* {{T|TabsBar/gs2}} - usage {{T|TabsBar|{{P|main|gs2}}{{P|base|xxx}}}} - For entities in GoldSrc, Source 1 and Source 2, where pages names are 'xxx (GoldSrc)', 'xxx', 'xxx (Source)'
* {{T|TabsBar/hls}} - usage {{T|TabsBar|{{P|main|hls}}{{P|base|xxx}}}} - For entities in GoldSrc and Half-Life: Source {{hldms|also}}, but no other Source 1 games, where pages names are 'xxx (GoldSrc)', 'xxx (Half-Life: Source)'
 
{{todo|finish doccumentation }} <!-- whoever -->
{{todo|Link to subpages}}
<includeonly>
<includeonly>



Revision as of 13:49, 4 September 2024

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] [create]
Icon-translate.png Available doc translations
Info.png
The Template:TabsBar/doc/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Template:TabsBar/doc/doc