Template:Package/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 11: Line 11:
| name = <!-- Package name -->
| name = <!-- Package name -->
| id = <!-- Package ID -->
| id = <!-- Package ID -->
| url = <!-- <package (default)/sub (default)/bundle/bundles> - This is used to switch the URLs, if the packages was located somewhere else. -->
| image = [[File:Package Cover - (Game name).jpg|320px|link=]]
| image = [[File:Package Cover - (Game name).jpg|320px|link=]]
| list = <!-- Put the game templates here. Example: {{hl2|4}}. -->
| list = <!-- Put the game templates here. Example: {{hl2|4}}. -->
Line 32: Line 33:
| {{CodeBlock|margin=5px|<nowiki>| id = 232</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| id = 232</nowiki>}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232}}
|-
| align="center" | {{Code|style=2|{{Param|id}}}}
| align="center" | Switch the URLs. Use this if the package was located somewhere else.
| {{CodeBlock|margin=5px|<nowiki>| url = bundle </nowiki>}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|url=bundle}}
|-
|-
| align="center" | {{Code|style=2|{{Param|image}}}}
| align="center" | {{Code|style=2|{{Param|image}}}}
| align="center" | '''(Optional)''' Package cover.
| align="center" | '''(Optional)''' Package cover.
| {{CodeBlock|margin=5px|<nowiki>| image = [[File:Package Cover - Valve Complete Pack.jpg|320px|link=]]</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| image = [[File:Package Cover - Valve Complete Pack.jpg|320px|link=]]</nowiki>}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|image = [[File:Package Cover - Valve Complete Pack.jpg|320px|link=]]}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|url=bundle|image = [[File:Package Cover - Valve Complete Pack.jpg|320px|link=]]}}
|-
|-
| align="center" | {{Code|style=2|{{Param|list}}}}
| align="center" | {{Code|style=2|{{Param|list}}}}

Revision as of 21:55, 29 September 2023

Edit-copy.png
This is a documentation subpage for Template:Package.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template is used to list the games that are available for purchase or download as part of its packages/bundles.

Translations

Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

Translations for this template are located in strings subpage, it uses the {{Autolang}} template (coming soon).

Copy and paste

{{Package | name = <!-- Package name --> | id = <!-- Package ID --> | url = <!-- <package (default)/sub (default)/bundle/bundles> - This is used to switch the URLs, if the packages was located somewhere else. --> | image = [[File:Package Cover - (Game name).jpg|320px|link=]] | list = <!-- Put the game templates here. Example: {{hl2|4}}. --> }}

Parameters and Examples

Parameter Description Value Previews
{{{name}}} Package name.
| name = Valve Complete Pack
{{{id}}} Package ID.
| id = 232
{{{id}}} Switch the URLs. Use this if the package was located somewhere else.
| url = bundle
{{{image}}} (Optional) Package cover.
| image = [[File:Package Cover - Valve Complete Pack.jpg|320px|link=]]
{{{list}}} List of games on this package. Don't forget to add bullets "*".
| list = *{{hl2|4}}