Template:TabsBar/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
*[[func water (Source)]] and {{T|TabsBar/Func water (Source)}}
*[[func water (Source)]] and {{T|TabsBar/Func water (Source)}}


Shortcuts:
Shortcuts (use {{param|base}}):
* {{t|tabsBar/gs}} - For entities in GoldSrc and Source 1, which have the same classname in both
* {{t|tabsBar/gs}} - For entities in GoldSrc and Source 1, which have the same classname in both
* {{t|tabsBar/s2}} - For entities in Source 1 and Source 2, which have the same classname in both
* {{t|tabsBar/s2}} - For entities in Source 1 and Source 2, which have the same classname in both

Revision as of 13:28, 4 September 2024

improved version of {{Tabs}}

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 {{TabsBar}} on main page, click show preview, click link it shows and follow instruction shown by preload, put {{TabsBar|main=whatever was chosen}} on other related pages


use examples:

Shortcuts (use {{{base}}}):

  • {{tabsBar/gs}} - For entities in GoldSrc and Source 1, which have the same classname in both
  • {{tabsBar/s2}} - For entities in Source 1 and Source 2, which have the same classname in both
  • {{tabsBar/gs2}} - For entities in GoldSrc, Source 1 and Source 2, which have the same classname in all three
  • {{tabsBar/hls}} - For entities in GoldSrc and Half-Life: Source (also in Half-Life Deathmatch: Source), but no other Source 1 games
Todo: finish doccumentation
Todo: Link to subpages