Template:Chapters/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Table
{{Table
| align = center
| align = center
| class = mw-collapsible
| class = mw-collapsible {{#switch:{{{state|}}}|collapsed=mw-collapsed|#default=}}
| id = mw-customcollapsible-Chapters
| id = mw-customcollapsible-Chapters
| style = min-width: 770px; <!-- weird because the original width is 762px; but if its seamless then dont touch it -->
| style = min-width: 770px; <!-- weird because the original width is 762px; but if its seamless then dont touch it -->
Line 11: Line 11:
|1=<!--  
|1=<!--  
IMPORTANT: For now, this is how it centers it correctly, if there are translations, REPLACE IT HERE TO CENTER THE TITLE
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}}}
--><span style="float: left; user-select:none; color: transparent">{{Chapters/strings|TOGGLE}}</span><span>{{#switch: {{{type}}}
|#default
|#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
|chapters={{Chapters/strings|ChaptersTitle2}}|missions={{Chapters/strings|MissionsTitle2}}|camp|campaign|campaigns={{Chapters/strings|CampaignsTitle2}}}}</span><span class="mw-customtoggle-Chapters" style="float: right; user-select:none;" data-expandtext="Expand" data-collapsetext="Collapse">Toggle Chapters</span>
|chapters={{Chapters/strings|ChaptersTitle2}}|missions={{Chapters/strings|MissionsTitle2}}|camp|campaign|campaigns={{Chapters/strings|CampaignsTitle2}}}}</span><span class="mw-customtoggle-Chapters" style="float: right; user-select:none;" data-expandtext="Expand" data-collapsetext="Collapse">{{Chapters/strings|TOGGLE}}</span>
}}
}}
}}
}}

Latest revision as of 10:51, 27 May 2025