Template:Portal games/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Updated docs with new parameters.)
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
== Usage ==
Put {{t|Portal games}} on the page.
See below for parameters.
== Parameters ==
{| width="100%" class="unsortable" style="overflow: hidden; border-radius:.4em; border:2px solid #525252"
|- bgcolor="#3A3A3A" style="white-space:nowrap"
! style="width:15%" style="background-color:#4f5559; color:#FFF" | {{Dictionary/common|Param}}
! style="text-align:center" style="background-color:#4f5559; color:#FFF" | {{Dictionary/common|Desc}}
! style="text-align:center" style="background-color:#4f5559; color:#FFF" | Value
|-
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{param|hide3rdparty}}}}
| bgcolor="#3A3A3A" align="center" | Hide third-party games if set to {{code|true}}, {{code|yes}} or {{code|1}}.
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>| hide3rdparty = true</nowiki>}}
|-
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{Param|appid}}}}
| bgcolor="#3A3A3A" align="center" |Prevent the page from being added to [[:Category:Portal series]]
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>| nocat = true</nowiki>}}
|-
|}


== Preview ==
== Preview ==
{{Doc/PreviewBlock
=== Default appearance: ===
|{{Portal games|nocat=1}}
{{Portal games|nocat=1}}
}}
=== Third-party games hidden: ===
{{Portal games|hide3rdparty=1|nocat=1}}


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

Revision as of 06:52, 15 June 2024

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

Usage

Put {{Portal games}} on the page.

See below for parameters.

Parameters

Parameter Description Value
{{{hide3rdparty}}} Hide third-party games if set to true, yes or 1.
| hide3rdparty = true
{{{appid}}} Prevent the page from being added to Category:Portal series
| nocat = true

Preview

Default appearance:

Third-party games hidden: