Template:Chapters: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(107 intermediate revisions by 7 users not shown) | |||
Line 3: | Line 3: | ||
{{Table | {{Table | ||
| align = center | | align = center | ||
| {{tr | | class = mw-collapsible {{#switch:{{{state|}}}|collapsed=mw-collapsed|#default=}} | ||
| id = mw-customcollapsible-{{{{{game|hl2}}}|name|nt=0}} | |||
| style = min-width: 770px; <!-- weird because the original width is 762px; but if its seamless then dont touch it --> | |||
|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 --> | ||
| {{th | | {{th | ||
|colspan = 99 <!--may vary per game, 99 is ok --> | |colspan = 99 <!--may vary per game, 99 is ok --> | ||
|bgcolor = rgba(0,0,0,. | |bgcolor = rgba(0,0,0,.7) <!-- 60 % black --> | ||
|{{{{{game|hl2}}}| | |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}}} | |||
|#default | |||
|chapters={{Chapters/strings|ChaptersTitle2}}|missions={{Chapters/strings|MissionsTitle2}}|camp|campaign|campaigns={{Chapters/strings|CampaignsTitle2}}}}</span><span class="mw-customtoggle-{{{{{game|hl2}}}|name|nt=0}}" style="float: right; user-select:none;">{{Chapters/strings|TOGGLE}}</span> | |||
}} | }} | ||
}} | }} | ||
{{#switch: {{{game|hl2}}} | {{#switch: {{{game|hl2}}} | ||
|#default | |#default = <!-- Undefined --> | ||
{{tr|align = center | |||
{{tr | | {{td|width = 25%|font-size = 0.95em| There are no chapters/campaigns/missions for this game, or it is not defined on the template itself. }} | ||
| {{td|width = 25%| | |||
}} | }} | ||
<!-- GoldSrc --> | |||
|hl|hl1|hls = {{Chapters/Half-Life}} | |||
|hlop4|hlof = {{Chapters/Half-Life: Opposing Force}} | |||
|hld|decay = {{Chapters/Half-Life: Decay}} | |||
|hlbs = {{Chapters/Half-Life: Blue Shift}} | |||
<!-- Source --> | |||
|hl2 = {{Chapters/Half-Life 2}} | |||
|hl2ep1|ep1|episodic = {{Chapters/Half-Life 2: Episode One}} | |||
|hl2ep2|ep2 = {{Chapters/Half-Life 2: Episode Two}} | |||
|l4d|left4dead= {{Chapters/Left 4 Dead}} | |||
|l4d2|left4dead2= {{Chapters/Left 4 Dead 2|state1={{{state1|}}}}} | |||
|portal = {{Chapters/Portal}} | |||
|portal2|p2 = {{Chapters/Portal 2}} | |||
<!-- Source (third-party) --> | |||
|bms = {{Chapters/Black Mesa (Source)}} | |||
|portalrev = {{Chapters/Portal: Revolution}} | |||
|postal3|p3 = {{Chapters/Postal 3}} | |||
<!-- Source 2 --> | |||
|hla = {{Chapters/Half-Life: Alyx}} | |||
}}<!-- END OF SWITCH --> | }}<!-- END OF SWITCH --> | ||
}}<!-- END OF TABLE --> | }}<!-- END OF TABLE --> | ||
</onlyinclude></includeonly> | </onlyinclude></includeonly> |
Latest revision as of 04:22, 29 May 2025
The above documentation is transcluded from Template:Chapters/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.