Template:TabsBar/doc

From Valve Developer Community
Jump to: navigation, search
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)
Edit-copy.png
This is a documentation subpage for Template:TabsBar.
Don't forget to purge the contents of the base page upon creating or editing this subpage.  

Improved version of {{Tabs}}. Instead of editing all the pages that are in the tabs when a change is needed this works by making specific tab bar as its own template for chosen pages which is shared by all pages. Can also use presets mentioned lower.

  • {{{main}}} - This template will look for defined tab bar at Template:TabsBar/{{{main}}} and if it exist it will get transcluded. If it doesn't exist it will create a link you can click to create the tab bar predefined by following preload Template:TabsBar/preload. (not specifying means full page name without language prefix will be used)

Tab bar creation process:

  1. place {{TabsBar}} on main page (this should be an english page that has no ' (<engine/game>)' suffix in its link meaning it's a page containing Source engine topic)
  2. click show preview to generate page create link with preloaded text linking to Template:TabsBar/<full page name>
  3. click the link it shows and follow instruction shown by preload
  4. put {{TabsBar|main=case sensitive name of the created tab bar}} on other related pages

use examples (see all):


  • {{{base}}} - to be used with following presets:
{{TabsBar/gs}} - usage {{TabsBar|main=gs|base=xxx}} - For entities in GoldSrc and Source 1, where page names are 'xxx (GoldSrc)', 'xxx'
{{TabsBar/s2}} - usage {{TabsBar|main=s2|base=xxx}} - For entities in Source 1 and Source 2, where pages name are 'xxx', 'xxx (Source 2)'
{{TabsBar/gs2}} - usage {{TabsBar|main=gs2|base=xxx}} - For entities in GoldSrc, Source 1 and Source 2, where page names are 'xxx (GoldSrc)', 'xxx', 'xxx (Source)'
{{TabsBar/hls}} - usage {{TabsBar|main=hls|base=xxx}} - For entities in GoldSrc and Half-Life: Source (also in Half-Life Deathmatch: Source), but no other Source 1 games (besides Jabroni Brawl: Episode 3), where page names are 'xxx (GoldSrc)', 'xxx (Half-Life: Source)'
Tip.pngTip:For non presets there's a invisible link named edit that leads to the Template:TabsBar/{{{main}}} on the most right side of the tabs bar. (if you have trouble finding it use 'ctrl + a' to highlight all the text on the page and you should see it highlighted)

See Also