Template:Chapters: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Testing L4D.)
No edit summary
 
(100 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,.6) <!-- 60 % black -->
|bgcolor = rgba(0,0,0,.7) <!-- 60 % black -->
|{{{{{game|hl2}}}|4}} {{#switch: {{{type}}}|#default|chapters=Chapters|camp|campaign=Campaigns}}
|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 -->
|hl2=
{{tr|align = center
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 1.png|160px|Chapter 1: Point Insertion|link=Point Insertion]]<br>'''[[Point Insertion]]''' }}
| {{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%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 2.png|160px|Chapter 2: "A Red Letter Day"|link="A Red Letter Day"]]<br>'''[["A Red Letter Day"]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 3.png|160px|Chapter 3: Route Kanal|link=Route Kanal]]<br>'''[[Route Kanal]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 4.png|160px|Chapter 4: Water Hazard|link=Water Hazard]]<br>'''[[Water Hazard]]''' }}
}}
}}
{{tr|align = center
<!-- GoldSrc -->
| {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 5.png|160px|Chapter 5: Black Mesa East|link=Black Mesa East]]<br>'''[[Black Mesa East]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 6.png|160px|Chapter 6: "We Don't Go To Ravenholm..."|link=Ravenholm]]<br>'''[[Ravenholm|"We Don't Go To Ravenholm..."]]''' }}
|hl|hl1|hls = {{Chapters/Half-Life}}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 7.png|160px|Chapter 7: Highway 17|link=Highway 17]]<br>'''[[Highway 17]]''' }}
|hlop4|hlof = {{Chapters/Half-Life: Opposing Force}}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 8.png|160px|Chapter 8: Sandtraps|link=Sandtraps]]<br>'''[[Sandtraps]]''' }}
    |hld|decay = {{Chapters/Half-Life: Decay}}
}}
    |hlbs = {{Chapters/Half-Life: Blue Shift}}
{{tr|align = center
   
| {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 9.png|160px|Chapter 9: Nova Prospekt|link=Nova Prospekt]]<br>'''[[Nova Prospekt]]''' }}
<!-- Source -->
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 9a.png|160px|Chapter 9a: Entanglement|link=Entanglement]]<br>'''[[Entanglement]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 10.png|160px|Chapter 10: Anticitizen One|link=Anticitizen One]]<br>'''[[Anticitizen One]]''' }}
|hl2 = {{Chapters/Half-Life 2}}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 11.png|160px|Chapter 11: "Follow Freeman!"|link="Follow Freeman!"]]<br>'''[["Follow Freeman!"]]''' }}
|hl2ep1|ep1|episodic = {{Chapters/Half-Life 2: Episode One}}
}}
|hl2ep2|ep2 = {{Chapters/Half-Life 2: Episode Two}}
{{tr|align = center
|l4d|left4dead= {{Chapters/Left 4 Dead}}
| {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 12.png|160px|Chapter 12: Our Benefactors|link=Our Benefactors]]<br>'''[[Our Benefactors]]''' }}
|l4d2|left4dead2= {{Chapters/Left 4 Dead 2|state1={{{state1|}}}}}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2 GamepadUI - Chapter 13.png|160px|Chapter 13: Dark Energy|link=Dark Energy]]<br>'''[[Dark Energy]]''' }}
|portal = {{Chapters/Portal}}
}}
|portal2|p2 = {{Chapters/Portal 2}}
|hl2ep1|ep1|episodic=
{{tr|align = center
    <!-- Source (third-party) -->
| {{td|width = 25%|font-size = 0.95em| [[File:HL2EP1 GamepadUI - Chapter 1.png|160px|Chapter 1: Undue Alarm|link=Undue Alarm]]<br>'''[[Undue Alarm]]''' }}
   
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP1 GamepadUI - Chapter 2.png|160px|Chapter 2: Direct Intervention|link=Direct Intervention]]<br>'''[[Direct Intervention]]''' }}
|bms = {{Chapters/Black Mesa (Source)}}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP1 GamepadUI - Chapter 3.png|160px|Chapter 3: Lowlife|link=Lowlife]]<br>'''[[Lowlife]]''' }}
|portalrev = {{Chapters/Portal: Revolution}}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP1 GamepadUI - Chapter 4.png|160px|Chapter 4: Urban Flight|link=Urban Flight]]<br>'''[[Urban Flight]]''' }}
|postal3|p3 = {{Chapters/Postal 3}}
}}
{{tr|align = center
<!-- Source 2 -->
| {{td|width = 25%|font-size = 0.95em| [[File:HL2EP1 GamepadUI - Chapter 5.png|160px|Chapter 5: Exit 17|link=Exit 17]]<br>'''[[Exit 17]]''' }}
}}
|hla = {{Chapters/Half-Life: Alyx}}
|hl2ep2|ep2=
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| [[File:HL2EP2 GamepadUI - Chapter 1.png|160px|Chapter 1: To The White Forest|link=To The White Forest]]<br>'''[[To The White Forest]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP2 GamepadUI - Chapter 2.png|160px|Chapter 2: This Vortal Coil|link=This Vortal Coil]]<br>'''[[This Vortal Coil]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP2 GamepadUI - Chapter 3.png|160px|Chapter 3: Freeman Pontifex|link=Freeman Pontifex]]<br>'''[[Freeman Pontifex]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP2 GamepadUI - Chapter 4.png|160px|Chapter 4: Riding Shotgun|link=Riding Shotgun]]<br>'''[[Riding Shotgun]]''' }}
}}
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| [[File:HL2EP2 GamepadUI - Chapter 5.png|160px|Chapter 5: Under the Radar|link=Under the Radar]]<br>'''[[Under the Radar]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP2 GamepadUI - Chapter 6.png|160px|Chapter 6: Our Mutual Fiend|link=Our Mutual Fiend]]<br>'''[[Our Mutual Fiend]]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:HL2EP2 GamepadUI - Chapter 7.png|160px|Chapter 7: T-Minus One|link=T-Minus One]]<br>'''[[T-Minus One]]''' }}
}}
|hl|hl1|hls =
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| '''[[Hazard Course]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Black Mesa Inbound]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Anomalous Materials]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Unforeseen Consequences]]''' }}
}}
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| '''[[Office Complex]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Weve_Got_Hostiles|"We've Got Hostiles!"]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Blast Pit]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Power Up]]''' }}
}}
{{tr|align = center
|
  {{td|width = 25%|font-size = 0.95em| '''[[On a Rail]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Apprehension]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Residue Processing]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Questionable Ethics]]''' }}
}}
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| '''[[Surface Tension]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[["Forget About Freeman!"]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Lambda Core]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Xen]]''' }}
}}
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| '''[[Gonarch's Lair]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Interloper]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Nihilanth]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[Endgame]]''' }}
}}
|portal2|p2 =
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| '''[[The Courtesy Call]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[The Cold Boot]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[The Return]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[The Surprise]]''' }}
}}
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| '''[[The Escape]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[The Fall]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[The Reunion]]''' }}
  {{td|width = 25%|font-size = 0.95em| '''[[The Itch]]''' }}
}}
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| '''[[The Part Where He Kills You]]''' }}
}}
|l4d|left4dead = <!-- L4D CAMPAIGN NAMES)
{{tr|align = center
| {{td|width = 25%|font-size = 0.95em| [[File:C8_nomercy.png|160px|Campaign: No Mercy|link=https://left4dead.fandom.com/wiki/No_Mercy]]<br>'''[https://left4dead.fandom.com/wiki/No_Mercy No Mercy]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:C9_crashcourse.png|160px|Campaign: Crash Course|link=https://left4dead.fandom.com/wiki/Crash_Course ]]<br>'''[https://left4dead.fandom.com/wiki/Crash_Course Crash Course]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:C10_deadtoll.png|160px|Campaign: Death Toll|link=https://left4dead.fandom.com/wiki/Death_Toll]]<br>'''[https://left4dead.fandom.com/wiki/Death_Toll Death Toll]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:C11_deadair.png|160px|Campaign: Dead Air|link=https://left4dead.fandom.com/wiki/Dead_Air]]<br>'''[https://left4dead.fandom.com/wiki/Dead_Air Dead Air]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:C12_bloodharvest.png|160px|Campaign: Blood Harvest|link=https://left4dead.fandom.com/wiki/Blood_Harvest]]<br>'''[https://left4dead.fandom.com/wiki/Blood_Harvest Blood Harvest]''' }}
  {{td|width = 25%|font-size = 0.95em| [[File:C7_thesacrifice.png|160px|Campaign: The Sacrifice|link=The Sacrifice]]<br>'''[[The Sacrifice]]''' }}
}}
{{tr|align = center <!-- L4D CAMPAIGN MAPS -->
| {{td|width = 25%|font-size = 0.95em|  * The Apartments
* The Subway
* The Sewer
* The Hospital
* Rooftop Finale
}}
  {{td|width = 25%|font-size = 0.95em| * The Alleys
* The Truck Depot Finale
}}
  {{td|width = 25%|font-size = 0.95em|  * The Turnpike
* The Drains
* The Church
* The Town
* Boathouse Finale
}}
  {{td|width = 25%|font-size = 0.95em|  * The Greenhouse
* The Crane
* The Construction Site
* The Terminal
* Runway Finale
}}
  {{td|width = 25%|font-size = 0.95em|  * The Woods
* The Tunnel
* The Bridge
* The Train Station
* Farmhouse Finale
}}
  {{td|width = 25%|font-size = 0.95em|  * The Docks
* The Barge
* Port Finale
}}<!-- End of L4D -->
}}<!-- 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

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
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Number of strings:132
Approximate status of translation:English (en) 100% Deutsch (de) 71.21% Español (es) 15.91% Hrvatski (hr) 44.7% Русский (ru) 66.67% Tiếng Việt (vi) 18.94% 中文 (zh) 81.06% 
Gnome app science.png
This template uses a Testcases subpage
You can test how this page looks with it's different skins and parsers.

This template is used to list all game chapters, campaign or missions. Chapters name (and titlebar itself) are also translated automatically, but users can add new translations on the strings subpage.

Parameters

Parameter Description Value Previews
None Default appearance
(By default its expanded, for the documentation, its collapsed)
N/A
{{{game}}} Game name, uses anything that are based off {{Software}} template.
| game = hl
{{{type}}} Changes the title bar to Chapters, campaigns or missions.
| type = chapters
| type = camp
| type = missions
{{{state}}} ~ {{{state<?>}}} Collapses the chapters.
(<?>: Unknown amount of states, used in "Template:Chapters/<game name>")
| state = collapsed

| state1 = collapsed