Template:Only/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated documentation to reflect changes)
No edit summary
Line 1: Line 1:
{{otherlang2
|title=
|es=Template:Only:es
|de=Template:Only:de
|fr=Template:Only:fr
}}
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->

Revision as of 06:47, 7 March 2021

Template:Otherlang2

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

An inline template showcasing the game availability of a keyvalue, material parameter, or other feature. It is intended to replace the multiple game only templates with a single template that's less unweldly to work with. The color of the text changes based upon which game is used.

Usage

This template has one unnamed parameter. The parameter should be a transclusion of a template in Category:Game icons. Multiple game icon templates can be used for the parameter, but this will result in the default color for the text.

Examples

{{only|{{l4ds}}}}(only in Left 4 Dead seriesLeft 4 Dead series)
{{only|{{tf2}}{{csgo}}{{GMOD}}}}(only in Team Fortress 2Counter-Strike: Global OffensiveGarry's Mod)

See Also

  • {{Also}}
  • {{Removed}}
  • {{Since}}