Template:Chapters/testcases: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added Portal 2)
m (Wrong param for HLA)
 
(8 intermediate revisions by 3 users not shown)
Line 7: Line 7:
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|Default appearance/For {{hl2|4}} chapters<br>{{codeblock|game &#61; hl2}}}}
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|Default appearance/For {{hl2|4}} chapters<br>{{codeblock|game &#61; hl2}}}}
| {{Chapters|game=hl2}}
| {{Chapters|game=hl2}}
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{hl2ep1|4}} chapters<br>{{codeblock|game &#61; hl2ep1<br>game &#61; ep1<br>game &#61; episodic}}}}
| {{Chapters|game=hl2ep1}}
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{hl2ep2|4}} chapters<br>{{codeblock|game &#61; hl2ep2<br>game &#61; ep2}}}}
| {{Chapters|game=hl2ep2}}
|-
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{hl|4}} chapters<br>{{codeblock|game &#61; hl<br>game &#61; hl1<br>game &#61; hls}}}}
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{hl|4}} chapters<br>{{codeblock|game &#61; hl<br>game &#61; hl1<br>game &#61; hls}}}}
| {{Chapters|game=hl}}  
| {{Chapters|game=hl}}  
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{bms|4}} chapters, same as HL1, different link.<br>{{codeblock|game &#61; bms}}}}
| {{Chapters|game=bms}}
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{hla|4}} chapters<br>{{codeblock|game &#61; hla}}}}
| {{Chapters|game=hla}}
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|{{l4d|4}} Campaigns<br>{{codeblock|game &#61; l4d<br>game &#61; left4dead<br>type &#61; cam<br>type &#61; campaign}}}}
| {{Chapters|game=l4d|type=camp}}
|-
| 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}}
|-
| 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}}
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{portalrev|4}} chapters<br>{{codeblock|game &#61; portalrev}}}}
| {{Chapters|game=portalrev}}
|-
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{capsule|style=2|For {{p3|4}} chapters<br>{{codeblock|game &#61; p3<br>game &#61; postal3}}}}
| {{Chapters|game=postal3|type=missions}}
|}
|}

Latest revision as of 07:34, 9 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
For Half-Life: Alyx Half-Life: Alyx chapters
game = hla
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
For Portal: Revolution Portal: Revolution chapters
game = portalrev
For Postal III Postal III chapters
game = p3
game = postal3