Template:Branch-navbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Less rounded corners like many other templates. Also added new parameters to hide the borders from Hierarchy template.)
Line 11: Line 11:
| navbar = off
| navbar = off


| titlestyle = white-space: nowrap; font-size: 100%; background-color: #6b4b1b; background: linear-gradient(to bottom, #6b4b1b 0%,#473212 100%); padding: 2px; color: #fff; border-radius: 8px 8px 0 0;
| titlestyle = white-space: nowrap; font-size: 100%; background-color: #323232<!-- fallback-->; background: linear-gradient(to bottom, #323232 0%,#201F1E 100%); padding: 2px; color: #fff; border-radius: 2px 2px 0 0;
| bodystyle  = clear: both; border: 2px solid #525252; border-radius: 12px; margin: 1em auto 0em;
| bodystyle  = clear: both; border: 2px solid #525252; border-radius: 4px; margin: 1em auto 0em;
| groupstyle = background-color: #3A3A3A; padding: 2px 10px; width: 1%; white-space: nowrap; font-weight: bold; text-align: right;
| groupstyle = background-color: #3A3A3A; padding: 2px 10px; width: 1%; white-space: nowrap; font-weight: bold; text-align: right;
| liststyle  = border-left: none;
| liststyle  = border-left: none;


| list1 = {{hierarchy|srcbranch}}
| list1 = {{hierarchy|srcbranch|disablestyling=1}}
| list1style= border-radius: 0 0 2px 0;
}}{{#if:{{{nocat|}}}||[[Category:Engine branches]][[Category:Source engine branches]]}}</onlyinclude></includeonly>{{doc}}
}}{{#if:{{{nocat|}}}||[[Category:Engine branches]][[Category:Source engine branches]]}}</onlyinclude></includeonly>{{doc}}

Revision as of 21:52, 22 July 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] [edit]
Icon-translate.png Available doc translations
View
Page history

Usage

Put {{branch-navbox}} on the page →

Specify nocat=1 for pages you do not want to be included in the category.