Template:Chapters/testcases: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Added portal)
Line 25: Line 25:
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|{{l4d|4}} + {{l4d2|4}} Campaigns<br>{{codeblock|game &#61; l4d2<br>game &#61; left4dead2<br>type &#61; cam<br>type &#61; campaign}}}}
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|{{l4d|4}} + {{l4d2|4}} Campaigns<br>{{codeblock|game &#61; l4d2<br>game &#61; left4dead2<br>type &#61; cam<br>type &#61; campaign}}}}
| {{Chapters|game=l4d2|type=camp}}
| {{Chapters|game=l4d2|type=camp}}
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{portal|4}} chapters<br>{{codeblock|game &#61; portal}}}}
| {{Chapters|game=portal}}
|-
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{portal2|4}} chapters<br>{{codeblock|game &#61; p2<br>game &#61; portal2}}}}
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{portal2|4}} chapters<br>{{codeblock|game &#61; p2<br>game &#61; portal2}}}}
| {{Chapters|game=portal2}}  
| {{Chapters|game=portal2}}
|-
|-
|}
|}

Revision as of 06:45, 2 April 2024

Gnome app science.png
This is the template test cases page for Template:Chapters. Purge this page in order to update the examples, if the template itself was recently edited.
If there are too many examples of a complicated template, later transclusions of such template may break due to the limitations of the Mediawiki software, or can cause the page itself to load very slow; See the HTML comment "NewPP limit Report" on the rendered page.
You can also use Special:ExpandTemplates to examine the results of template use cases.


Description Preview
Default appearance/For Half-Life 2 Half-Life 2 chapters
game = hl2
For Half-Life 2: Episode One Half-Life 2: Episode One chapters
game = hl2ep1
game = ep1
game = episodic
For Half-Life 2: Episode Two Half-Life 2: Episode Two chapters
game = hl2ep2
game = ep2
For Half-Life Half-Life chapters
game = hl
game = hl1
game = hls
For Black Mesa Black Mesa chapters, same as HL1, different link.
game = bms
Left 4 Dead Left 4 Dead Campaigns
game = l4d
game = left4dead
type = cam
type = campaign
Left 4 Dead Left 4 Dead + Left 4 Dead 2 Left 4 Dead 2 Campaigns
game = l4d2
game = left4dead2
type = cam
type = campaign
For Portal Portal chapters
game = portal
For Portal 2 Portal 2 chapters
game = p2
game = portal2