Template:Package/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Parameters and Examples: - Updated example after changing how the image parameters work.)
m (Added a new argument)
Line 54: Line 54:
| {{CodeBlock|margin=5px|<nowiki>| unavailable = true</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| unavailable = true</nowiki>}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|image = Package Cover - Valve Complete Pack.jpg|unavailable=true}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|image = Package Cover - Valve Complete Pack.jpg|unavailable=true}}
|-
| align="center" | {{Code|style=2|{{Param|packages}}}}
| align="center" | List of packages that include this game. Don't forget to add bullets "*".
| {{CodeBlock|margin=5px|<nowiki>| packages = *[[Package: Valve Complete Pack]]</nowiki>}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|packages=*[[Package: Valve Complete Pack|Valve Complete Pack]]}}
|}
|}

Revision as of 08:08, 30 May 2024

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.

Copy and paste

{{Package | name = <!-- Package name --> | image = <!-- (Optional) Package covers --> | id = <!-- Package ID --> | url = <!-- <package (default)/sub (default)/bundle/bundles> - This is used to switch the URLs, if the packages was located somewhere else. --> | list = <!-- Put the game/software template here. Example below: --> * {{hl2|4}} * {{hl2ep1|4}} * {{hl2ep2|4}} * {{portal|4}} * {{tf2|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.
For example, Valve Complete Pack was located in http://store.steampowered.com/bundles/232 instead of http://store.steampowered.com/sub/232.
| url = bundle
{{{image}}} (Optional) Package cover.
| image = Package Cover - Valve Complete Pack.jpg
{{{list}}} List of games on this package. Don't forget to add bullets "*".
| list = *{{hl2|4}}
{{{unavailable}}} Makes the template text switch to unavailable text.
| unavailable = true
{{{packages}}} List of packages that include this game. Don't forget to add bullets "*".
| packages = *[[Package: Valve Complete Pack]]