Template:Chapters/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
|- | |- | ||
| align="center" | None | | align="center" | None | ||
| align="center" | Default appearance | | align="center" | Default appearance<br><small>(''By default its expanded, for the documentation, its collapsed'')</small> | ||
| N/A | | N/A | ||
| {{Chapters}} | | {{Chapters|state=collapsed}} | ||
|- | |- | ||
| align="center" | {{Code|style=2|{{Param|game}}}} | | align="center" | {{Code|style=2|{{Param|game}}}} | ||
| align="center" | Game name, uses anything that are based off {{t|Software}} template. | | align="center" | Game name, uses anything that are based off {{t|Software}} template. | ||
| {{CodeBlock|margin=5px|<nowiki>| game = hl</nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| game = hl</nowiki>}} | ||
| {{Chapters|game=hl}} | | {{Chapters|game=hl|state=collapsed}} | ||
|- | |- | ||
| align="center" | {{Code|style=2|{{Param|type}}}} | | align="center" | {{Code|style=2|{{Param|type}}}} | ||
| align="center" | Changes the title bar to Chapters, campaigns or missions. | | align="center" | Changes the title bar to Chapters, campaigns or missions. | ||
| {{CodeBlock|margin=5px|<nowiki>| type = chapters</nowiki>}}{{CodeBlock|margin=5px|<nowiki>| type = camp</nowiki>}}{{CodeBlock|margin=5px|<nowiki>| type = missions</nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| type = chapters</nowiki>}}{{CodeBlock|margin=5px|<nowiki>| type = camp</nowiki>}}{{CodeBlock|margin=5px|<nowiki>| type = missions</nowiki>}} | ||
| {{Chapters|game=l4d|type=camp}} | | {{Chapters|game=l4d|type=camp|state=collapsed}} | ||
|- | |||
| align="center" | {{Code|style=2|{{Param|state}}}} ~ {{Code|style=2|{{Param|state<?>}}}} | |||
| align="center" | Collapses the chapters. <br>(<code><?></code>: Unknown amount of states, used in "Template:Chapters/<game name>") | |||
| {{CodeBlock|margin=5px|<nowiki>| state = collapsed</nowiki>}}<br>{{CodeBlock|margin=5px|<nowiki>| state1 = collapsed</nowiki>}} | |||
| {{Chapters|game=hla|type=camp|state=collapsed}}{{Chapters|game=l4d2|type=camp|state1=collapsed}} | |||
|- | |- | ||
|} | |} |
Revision as of 04:23, 29 May 2025

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.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{{type}}} | Changes the title bar to Chapters, campaigns or missions. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{{state}}} ~ {{{state<?>}}} | Collapses the chapters. ( <?> : Unknown amount of states, used in "Template:Chapters/<game name>")
|
|