Template:TabsBar/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
Presets:
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/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/s2}} - usage {{T|TabsBar|{{P|main|s2}}{{P|base|xxx}}}} - For entities in Source 1 and Source 2, where pages names are '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/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)'
* {{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)'

Revision as of 16:18, 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:

Presets:

  • {{TabsBar/gs}} - usage {{TabsBar|main=gs|base=xxx}} - For entities in GoldSrc and Source 1, where pages names are 'xxx (GoldSrc)', 'xxx'
  • {{TabsBar/s2}} - usage {{TabsBar|main=s2|base=xxx}} - For entities in Source 1 and Source 2, where pages names are 'xxx', 'xxx (Source 2)'
  • {{TabsBar/gs2}} - usage {{TabsBar|main=gs2|base=xxx}} - For entities in GoldSrc, Source 1 and Source 2, where pages 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, where pages names are 'xxx (GoldSrc)', 'xxx (Half-Life: Source)'
Todo: finish doccumentation
Todo: Link to subpages