Template:Chapters/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(im giving up)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Table
{{Table
| align = center
| align = center
| class = mw-collapsible {{#switch:{{{state|}}}|collapsed=mw-collapsed|#default=}}
| id = mw-customcollapsible-Chapters
| 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 6: 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={{#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">{{Chapters/strings|TOGGLE}}</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
|chapters={{Chapters/strings|ChaptersTitle2}}|missions={{Chapters/strings|MissionsTitle2}}|camp|campaign|campaigns={{Chapters/strings|CampaignsTitle2}}}} <span class="mw-customtoggle-Chapters" style="float: right; user-select:none;">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>
}}
}}
}}<!-- never wants to work, td, tr, span, anything wont work, the button works, but the div or whatever it is wont  :(
}}
--><span class="mw-collapsible" id="mw-customcollapsible-Chapters"> {{#switch: {{{game|hl2}}}
{{#switch: {{{game|hl2}}}
|#default = <!-- Undefined -->
|#default = <!-- Undefined -->
{{tr|align = center
{{tr|align = center
Line 44: Line 51:
|hla = {{Chapters/Half-Life: Alyx}}
|hla = {{Chapters/Half-Life: Alyx}}
}}</span><!-- END OF SWITCH -->
}}<!-- END OF SWITCH -->
}}<!-- END OF TABLE -->
}}<!-- END OF TABLE -->

Latest revision as of 10:51, 27 May 2025