Template:Package/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created doc. Still incomplete but it works.)
 
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{doc/subpage}}
This template is used to list the games that are available for purchase or download as part of its packages/bundles.
This template is used to list the games that are available for purchase or download as part of its packages/bundles.
== Translations ==
{{Strings notice}}
Translations for this template are located in [[/strings|strings subpage]], it uses the {{t|Autolang}} template (coming soon).


== Copy and paste ==
== Copy and paste ==
=== List of games included in a package ===
{{CodeBlock|<nowiki>{{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}}
}}
</nowiki>}}
=== List of packages that include this game ===
{{CodeBlock|<nowiki>{{Package
{{CodeBlock|<nowiki>{{Package
| name = <!-- Package name -->
| packages =  
| id = <!-- Package ID -->
<!-- Put the game/software template here. Example below: -->
| image = [[File:Package Cover - (Game name).jpg|320px|link=]]
* {{tob|4}}
| list = <!-- Put the game templates here. Example: {{hl2|4}}. -->
* {{pcc|4}}
}}
* [[Package: Valve Complete Pack|Valve Complete Pack]]
}}
</nowiki>}}
</nowiki>}}


Line 31: Line 44:
| {{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|url}}}}
| align="center" | Switch the URLs. Use this if the package was located somewhere else.<br> For example, '''[[Package: Valve Complete Pack|Valve Complete Pack]]''' was located in http://store.steampowered.com/bundles/232 instead of http://store.steampowered.com/sub/232.
| {{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 = Package Cover - Valve Complete Pack.jpg</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 = Package Cover - Valve Complete Pack.jpg}}
|-
|-
| align="center" | {{Code|style=2|{{Param|list}}}}
| align="center" | {{Code|style=2|{{Param|list}}}}
| align="center" | List of games on this package. Don't forget to add bullets "*".
| align="center" | List of games on this package. Don't forget to add bullets "*".
| {{CodeBlock|margin=5px|<nowiki>| list = *{{hl2|4}}</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| list = *{{hl2|4}}</nowiki>}}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|image = [[File:Package Cover - Valve Complete Pack.jpg|320px|link=]]|list=*{{hl2|4}} }}
| {{Package|nocat=1|name = Valve Complete Pack|id = 232|image = Package Cover - Valve Complete Pack.jpg|list=*{{hl2|4}} }}
|-
| align="center" | {{Code|style=2|{{Param|unavailable}}}}
| align="center" | Makes the template text switch to unavailable text.
| {{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}}
|-
| 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]]}}
|}

Latest revision as of 04:12, 14 June 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

List of games included in a package

{{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}} }}

List of packages that include this game

{{Package | packages = <!-- Put the game/software template here. Example below: --> * {{tob|4}} * {{pcc|4}} * [[Package: Valve Complete Pack|Valve Complete Pack]] }}

Parameters and Examples

Parameter Description Value Previews
{{{name}}} Package name.
| name = Valve Complete Pack
{{{id}}} Package ID.
| id = 232
{{{url}}} 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]]