Template:Package/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Parameters and Examples: Added unavailable parameter)
(→‎Copy and paste: - Updated Copy & paste.)
Line 4: Line 4:
== Copy and paste ==
== Copy and paste ==
{{CodeBlock|<nowiki>{{Package
{{CodeBlock|<nowiki>{{Package
| 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. -->
| 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 =
| list = <!-- Put the game templates here. Example: {{hl2|4}}. -->
<!-- Put the game/software template here. Example below: -->
}}
* {{hl2|4}}
* {{hl2ep1|4}}
* {{hl2ep2|4}}
* {{portal|4}}
* {{tf2|4}}
}}
</nowiki>}}
</nowiki>}}



Revision as of 01:52, 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 --> | 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 = [[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}}
{{{unavailable}}} Makes the template text switch to unavailable text.
| unavailable = true