Template:Only: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Less contrast)
(Added game color detection)
Line 1: Line 1:
<span style="color:#add8e6; background-color: #202020; font-weight:bold; padding: 2px; {{border-radius|4px}}">(''only'' in {{{1}}})</span><noinclude>
<span style="color:{{Game color|{{{1}}}}}; background-color: #202020; font-weight:bold; padding: 2px; {{border-radius|4px}}">(''only'' in {{{1}}})</span><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->
</noinclude>
</noinclude>

Revision as of 18:31, 23 April 2020

(only in {{{1}}})

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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 unwieldly to work with.

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.

Translations

The used strings are on strings subpage of "Software" template. Please follow the format to add translations for them.

Examples

{{only|{{l4ds}}}} → <span style="color:{{ Left 4 Dead seriesLeft 4 Dead series|col}}; background-color: #202020; font-weight:bold; padding: 2px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;">(only in Left 4 Dead seriesLeft 4 Dead series)
{{only|{{tf2}}{{csgo}}{{GMOD}}}} → <span style="color:{{ Team Fortress 2Counter-Strike: Global OffensiveGarry's Mod|col}}; background-color: #202020; font-weight:bold; padding: 2px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;">(only in Team Fortress 2Counter-Strike: Global OffensiveGarry's Mod)

See also