Template:Chapters/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
| class = mw-collapsible
| class = mw-collapsible
| id = mw-customcollapsible-Chapters
| id = mw-customcollapsible-Chapters
| style = min-width: 762px;
| style = min-width: 770px; <!-- weird because the original width is 762px; but if its seamless then dont touch it -->
|1= {{tr
|1= {{tr
|bgcolor={{{{{game|hl2}}}|col}} <!-- game color is too intense as background, so overlay 60 % black below -->
|bgcolor={{{{{game|hl2}}}|col}} <!-- game color is too intense as background, so overlay 60 % black below -->
Line 9: Line 9:
|colspan = 99 <!--may vary per game, 99 is ok -->
|colspan = 99 <!--may vary per game, 99 is ok -->
|bgcolor = rgba(0,0,0,.7) <!-- 60 % black -->
|bgcolor = rgba(0,0,0,.7) <!-- 60 % black -->
|1=<span>{{#switch: {{{type}}} |#default
|1=<!--
IMPORTANT: For now, this is how it centers it correctly, if there are translations, REPLACE IT HERE TO CENTER THE TITLE
--><span style="float: left; user-select:none; color: transparent">Toggle Chapters</span><span>{{#switch: {{{type}}}
|#default
|chapters={{Chapters/strings|ChaptersTitle1}}|missions={{Chapters/strings|MissionsTitle1}}|camp|campaign|campaigns={{Chapters/strings|CampaignsTitle1}}}} {{{{{game|hl2}}}|2}} {{#switch: {{{type}}}
|chapters={{Chapters/strings|ChaptersTitle1}}|missions={{Chapters/strings|MissionsTitle1}}|camp|campaign|campaigns={{Chapters/strings|CampaignsTitle1}}}} {{{{{game|hl2}}}|2}} {{#switch: {{{type}}}
|#default
|#default

Revision as of 10:40, 27 May 2025