Template:Also/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Completed links.)
m (documented the color change)
Line 1: Line 1:
{{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.) -->
An inline template showcasing the game availability of a keyvalue, material parameter, or other feature. It is intended to replace the multiple game also templates with a single template that's less unweldly to work with. The color of the text changes based upon which game is used.  
An inline template showcasing the game availability of a keyvalue, material parameter, or other feature. It is intended to replace the multiple game also templates with a single template that's less unwieldly to work with.
: {{note|This template should not be used on its own and should be used in conjunction with {{tl2|since}}.}}
{{note|This template should not be used on its own and should be used in conjunction with {{tl2|since}}.}}
==Usage==
==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.
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.


==Examples==
==Examples==
: <code><nowiki>{{also|{{GMOD}}}}</nowiki></code> → {{also|{{GMOD}}}}
: <code><nowiki>{{also|{{GMOD}}}}</nowiki></code> → {{also|{{GMOD}}}}


Line 22: Line 21:
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Notice templates]]
[[Category:Notice templates]]}}</includeonly>
}}</includeonly>

Revision as of 16:47, 20 October 2022

Edit-copy.png
This is a documentation subpage for Template:Also.
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 also templates with a single template that's less unwieldly to work with.

Note.pngNote:This template should not be used on its own and should be used in conjunction with {{since}}.

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.

Examples

{{also|{{GMOD}}}}(also in Garry's Mod)
{{since|{{l4d}}}}{{also|{{GMOD}}}}(in all games since Left 4 Dead)(also in Garry's Mod)

See Also