Template:Chapters/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Temporarily added postal 3 just for preview.)
(Removed the temporary preview.)
Line 31: Line 31:
|-
|-
|}
|}
== Preview (temporarily added) ==
{{Chapters|game=p3}}

Revision as of 05:13, 6 April 2024

Edit-copy.png
This is a documentation subpage for Template:Chapters.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Note.pngNote:Currently work in progress. But it can be used in most pages now.
Todo: Add mw-collapsible or something like that to hide more chapters by default unless users clicked on the Next button to see more chapters. Do not use {{Expand}} or {{ExpandBox}} with this as they made the article looks low quality.

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

Testcases

Parameters

Parameter Description Value Previews
None Default appearance N/A
{{{type}}} 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