Template:In/doc: Difference between revisions
Jump to navigation
Jump to search
(→Examples: text=in is redundant.) |
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{Documentation subpage → {{Doc/subpage) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page.) --> | <!-- Please place categories where indicated at the bottom of this page.) --> | ||
__NOTOC__ | __NOTOC__ | ||
An inline template showcasing the game availability of a [[keyvalue]], [[material]] parameter, or other feature. | An inline template showcasing the game availability of a [[keyvalue]], [[material]] parameter, or other feature. | ||
It is intended to be a super template for the ones listed [[#See | It is intended to be a super template for the ones listed [[#See also|below]]. | ||
The color of the text changes based upon which game is used. | The color of the text changes based upon which game is used. | ||
== Translations == | |||
The used strings are on [[Template:Software/strings|strings subpage of "Software" template]]. Please follow the format to add translations for them. | |||
==Usage== | ==Usage== | ||
Line 15: | Line 18: | ||
===Examples=== | ===Examples=== | ||
{| style=background:none | {| style=background:none | ||
| <code><nowiki>{{in|{{hl2}}}}</nowiki></code> || | | <code><nowiki>{{in|{{hl2}}}}</nowiki></code> || → {{in|{{hl2}}}} | ||
|- | |||
| <code><nowiki>{{in|{{hl1}}{{hlbs}}}}</nowiki></code> || → {{in|{{hl1}}{{hlbs}}}} | |||
|- | |||
| <code><nowiki>{{in|{{hl1}}{{hlbs}}|color=#FFFFFF}}</nowiki></code> || → {{in|{{hl1}}{{hlbs}}|color=#FFFFFF}} | |||
|- | |- | ||
| <code><nowiki>{{in|{{ | | <code><nowiki>{{in|text=in all games since|{{tf2}}}}</nowiki></code> || → {{in|text=in all games since|{{tf2}}}} | ||
|- | |- | ||
| <code><nowiki>{{in|{{ | | <code><nowiki>{{in|{{l4dbranch|3.1}}}}</nowiki></code> || → {{in|{{l4dbranch|3.1}}}} | ||
|- | |- | ||
| <code><nowiki>{{in | | <code><nowiki>{{in|{{src06}}|suffix=branch}}</nowiki></code> || → {{in|{{src06}}|suffix=branch}} | ||
|- | |- | ||
| <code><nowiki>{{in|{{ | | <code><nowiki>{{in|{{src13|4}}|suffix=branch}}</nowiki></code> || → {{in|{{src13|4}}|suffix=branch}} | ||
|} | |} | ||
==See | ==See also== | ||
* {{tl2|In}} | * {{tl2|In}} | ||
* {{tl2|Also}} | * {{tl2|Also}} |
Latest revision as of 02:16, 12 January 2024

This is a documentation subpage for Template:In.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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 be a super template for the ones listed below. The color of the text changes based upon which game is used.
Translations
The used strings are on strings subpage of "Software" template. Please follow the format to add translations for them.
Usage
Parameters
{{{1}}}: This unnamed parameter should be a transclusion of a template in Category:Game icons. Multiple game icon templates can be used, but this will result in the default color for the text.
{{{text}}}: The text to be shown on the left of the icon. Default is
in
.{{{suffix}}}: The text to be shown on the right of the icon. Default is nothing.
{{{color}}}: The color of the text. Defaults to the color of the game icon used.
Examples
{{in|{{hl2}}}} |
→ (in ![]() |
{{in|{{hl1}}{{hlbs}}}} |
→ (in ![]() ![]() |
{{in|{{hl1}}{{hlbs}}|color=#FFFFFF}} |
→ (in ![]() ![]() |
{{in|text=in all games since|{{tf2}}}} |
→ (in all games since ![]() |
{{in|{{l4dbranch|3.1}}}} |
→ (in Left 4 Dead engine branch) |
{{in|{{src06}}|suffix=branch}} |
→ (in ![]() |
{{in|{{src13|4}}|suffix=branch}} |
→ (in ![]() |
See also