Template:Chapters/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:
| {{tlc|Chapters}}
| {{tlc|Chapters}}
| →
| →
| {{Chapters}}
| <br>{{Chapters}}
|-
|-
| {{tlc|Chapters|game{{=}}hl}}
| {{tlc|Chapters|game{{=}}hl}}
| &rarr;
| &rarr;
| {{Chapters|game=hl}}
| <br>{{Chapters|game=hl}}
|-
|-
| {{tlc|Chapters|game{{=}}l4d|type{{=}}camp}}
| {{tlc|Chapters|game{{=}}l4d|type{{=}}camp}}
| &rarr;
| &rarr;
| {{Chapters|game=l4d|type=camp}}
| <br>{{Chapters|game=l4d|type=camp}}
|-
|-
! rowspan=3 | For more examples, visit [[/testcases|Testcases]] page.
! rowspan=3 | For more examples, visit [[/testcases|Testcases]] page.
|}
|}

Revision as of 10:21, 26 July 2023

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. Documentation will be improved later.
Icon-Bug.pngBug:Left 4 Dead Left 4 Dead ones have some inconsistent scaling, it will be fixed later.  [todo tested in ?]

This template is used to list all game chapters, or missions.

Usage

  • Use {{Chapters}} or {{Chapters|game=hl2}} to list all of Half-Life 2 Half-Life 2 Chapters, using {{Table}} template.
  • Use {{Chapters|game=hl}} for Half-Life Half-Life chapters.
  • Use {{Chapters|game=portal2}} or {{Chapters|game=p2}} for Portal 2 Portal 2 chapters.

Examples

{{Chapters}}
{{Chapters|game=hl}}
{{Chapters|game=l4d|type=camp}}
For more examples, visit Testcases page.