Template:Chapters: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(I was too curious to see how my suggestion that I just added to the discussion works out. I actually just wanted to test it and not save the code, but as it was some work, I'll just save it and I leave it to you whether or not to revert this edit.)
Line 1: Line 1:
{{Doc}}
{{Doc}}
<includeonly><onlyinclude>
<includeonly><onlyinclude>
{{#switch:{{{game}}}
{{Table
|#default|hl2 = {{Table<!-- FOR HL2 -->
| align = center
| align = center
| {{tr
| {{tr
| {{th|colspan=3|bgcolor=#403305|{{hl2|4}} Chapters}}
|bgcolor={{{{{game|hl2}}}|col}} <!-- game color is too intense as background, so overlay 60 % black below -->
| {{th
|colspan = 99 <!--may vary per game, 99 is ok-->
|bgcolor = rgba(0,0,0,0.6) <!-- 60 % black -->
|{{{{{game|hl2}}}|4}} Chapters
}}
}}
}}
{{tr
{{#switch: {{{game|hl2}}}
| {{td|width = 25%| [[Point Insertion]] }}
|#default
  {{td|width = 25%| [["A Red Letter Day"]] }}
|hl2=
  {{td|width = 25%| [[Route Kanal]] }}
{{tr
}}
| {{td|width = 25%| [[Point Insertion]] }}
{{tr
  {{td|width = 25%| [["A Red Letter Day"]] }}
| {{td|width = 25%| [[Water Hazard]] }}
  {{td|width = 25%| [[Route Kanal]] }}
  {{td|width = 25%| [[Black Mesa East]] }}
}}
  {{td|width = 25%| [[Ravenholm|"We Don't Go To Ravenholm..."]] }}
{{tr
}}
| {{td|width = 25%| [[Water Hazard]] }}
{{tr
  {{td|width = 25%| [[Black Mesa East]] }}
| {{td|width = 25%| [[Highway 17]] }}
  {{td|width = 25%| [[Ravenholm|"We Don't Go To Ravenholm..."]] }}
  {{td|width = 25%| [[Sandtraps]] }}
}}
  {{td|width = 25%| [[Nova Prospekt]] }}
{{tr
}}
| {{td|width = 25%| [[Highway 17]] }}
{{tr
  {{td|width = 25%| [[Sandtraps]] }}
| {{td|width = 25%| [[Entanglement]] }}
  {{td|width = 25%| [[Nova Prospekt]] }}
  {{td|width = 25%| [[Anticitizen One]] }}
}}
  {{td|width = 25%| [["Follow Freeman!"]] }}
{{tr
}}
| {{td|width = 25%| [[Entanglement]] }}
{{tr
  {{td|width = 25%| [[Anticitizen One]] }}
| {{td|width = 25%| [[Our Benefactors]] }}
  {{td|width = 25%| [["Follow Freeman!"]] }}
  {{td|width = 25%| [[Dark Energy]] }}
}}
}}
{{tr
}}<!-- END OF TABLES FOR HL2 -->
| {{td|width = 25%| [[Our Benefactors]] }}
|hl|hl1|hls = {{Table<!-- FOR HL1 -->
  {{td|width = 25%| [[Dark Energy]] }}
| align = center
}}
| {{tr
|hl|hl1|hls =
| {{th|colspan=4|bgcolor=#401703|{{hl|4}} Chapters}}
{{tr
}}
| {{td|width = 25%| [[Hazard Course]] }}
{{tr
  {{td|width = 25%| [[Black Mesa Inbound]] }}
| {{td|width = 25%| [[Hazard Course]] }}
  {{td|width = 25%| [[Anomalous Materials]] }}
  {{td|width = 25%| [[Black Mesa Inbound]] }}
  {{td|width = 25%| [[Unforeseen Consequences]] }}
  {{td|width = 25%| [[Anomalous Materials]] }}
}}
  {{td|width = 25%| [[Unforeseen Consequences]] }}
{{tr
}}
| {{td|width = 25%| [[Office Complex]] }}
{{tr
  {{td|width = 25%| [[Weve_Got_Hostiles|"We've Got Hostiles!"]] }}
| {{td|width = 25%| [[Office Complex]] }}
  {{td|width = 25%| [[Blast Pit]] }}
  {{td|width = 25%| [[Weve_Got_Hostiles|"We've Got Hostiles!"]] }}
  {{td|width = 25%| [[Power Up]] }}
  {{td|width = 25%| [[Blast Pit]] }}
}}
  {{td|width = 25%| [[Power Up]] }}
{{tr
}}
|  
{{tr
  {{td|width = 25%| [[On a Rail]] }}
|  
  {{td|width = 25%| [[Apprehension]] }}
  {{td|width = 25%| [[On a Rail]] }}
  {{td|width = 25%| [[Residue Processing]] }}
  {{td|width = 25%| [[Apprehension]] }}
  {{td|width = 25%| [[Questionable Ethics]] }}
  {{td|width = 25%| [[Residue Processing]] }}
}}
  {{td|width = 25%| [[Questionable Ethics]] }}
{{tr
}}
| {{td|width = 25%| [[Surface Tension]] }}
{{tr
  {{td|width = 25%| [["Forget About Freeman!"]] }}
| {{td|width = 25%| [[Surface Tension]] }}
  {{td|width = 25%| [[Lambda Core]] }}
  {{td|width = 25%| [["Forget About Freeman!"]] }}
  {{td|width = 25%| [[Xen]] }}
  {{td|width = 25%| [[Lambda Core]] }}
}}
  {{td|width = 25%| [[Xen]] }}
{{tr
}}
| {{td|width = 25%| [[Gonarch's Lair]] }}
{{tr
  {{td|width = 25%| [[Interloper]] }}
| {{td|width = 25%| [[Gonarch's Lair]] }}
  {{td|width = 25%| [[Nihilanth]] }}
  {{td|width = 25%| [[Interloper]] }}
  {{td|width = 25%| [[Endgame]] }}
  {{td|width = 25%| [[Nihilanth]] }}
}}
  {{td|width = 25%| [[Endgame]] }}
}}<!-- END OF SWITCH -->
}}
}}<!-- END OF TABLE -->
}}<!-- END OF TABLES FOR HL1 -->
}}<!-- END OF SWITCH -->
</onlyinclude></includeonly>
</onlyinclude></includeonly>

Revision as of 16:45, 25 July 2023

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