Template:Tobgames/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Doc/subpage}} {{sn|1={{T|Seriesbox strings/strings}}}} <!-- Please place categories where indicated at the bottom of this page.) --> == Usage == Put {{t|Tobgames}} on the p...")
 
No edit summary
 
Line 5: Line 5:
== Usage ==
== Usage ==
Put {{t|Tobgames}} on the page.
Put {{t|Tobgames}} on the page.
<!--
 
See below for parameters.
See below for parameters.


Line 15: Line 15:
! style="text-align:center" style="background-color:#4f5559; color:#FFF" | Value
! style="text-align:center" style="background-color:#4f5559; color:#FFF" | Value
|-
|-
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{param|hide3rdparty}}}}
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{param|hidenontobgames}}}}
| bgcolor="#3A3A3A" align="center" | Hide third-party games if set to {{code|true}}, {{code|yes}} or {{code|1}}.
| bgcolor="#3A3A3A" align="center" | Hide non-Orange Box games if set to {{code|true}}, {{code|yes}} or {{code|1}}.
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>| hide3rdparty = true</nowiki>}}
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>| hidenontobgames = true</nowiki>}}
|-
|-
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{Param|appid}}}}
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{Param|nocat}}}}
| bgcolor="#3A3A3A" align="center" |Prevent the page from being added to [[:Category:Portal series]]
| bgcolor="#3A3A3A" align="center" |Prevent the page from being added to [[:Category:The Orange Box]]
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>| nocat = true</nowiki>}}
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>| nocat = true</nowiki>}}
|-
|-
|}
|}
-->
 
== Preview ==
== Preview ==
=== Default appearance: ===
=== Default appearance: ===
{{Tobgames|nocat=1}}
{{Tobgames|nocat=1}}
=== Only show games that are from Orange Box: ===
{{Tobgames|nocat=1|hidenontobgames=1}}


{{Doc/Sandbox other|
{{Doc/Sandbox other|

Latest revision as of 05:15, 16 June 2024

Edit-copy.png
This is a documentation subpage for Template:Tobgames.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Icon-translate.png
This template uses a strings subpage
Additional translations come from the following string template(s): {{Seriesbox strings/strings}}
Please follow the format on this subpage(s) to add translations.

Usage

Put {{Tobgames}} on the page.

See below for parameters.

Parameters

Parameter Description Value
{{{hidenontobgames}}} Hide non-Orange Box games if set to true, yes or 1.
| hidenontobgames = true
{{{nocat}}} Prevent the page from being added to Category:The Orange Box
| nocat = true

Preview

Default appearance:

Only show games that are from Orange Box: