Template:In/doc: Difference between revisions
Jump to navigation
Jump to search
(Added {{{suffix}}} parameter.) |
Kestrelguy (talk | contribs) m (documented the color parameter) |
||
Line 11: | Line 11: | ||
{{inline note|bold=0|name={{param|text}}| The text to be shown on the left of the icon. Default is <code>in</code>.}} | {{inline note|bold=0|name={{param|text}}| The text to be shown on the left of the icon. Default is <code>in</code>.}} | ||
{{inline note|bold=0|name={{param|suffix}}| The text to be shown on the right of the icon. Default is nothing.}} | {{inline note|bold=0|name={{param|suffix}}| The text to be shown on the right of the icon. Default is nothing.}} | ||
{{inline note|bold=0|name={{param|color}}| The color of the text. Defaults to the color of the game icon used.}} | |||
===Examples=== | ===Examples=== | ||
Line 17: | Line 18: | ||
|- | |- | ||
| <code><nowiki>{{in|{{hl1}}{{hl1:bs}}}}</nowiki></code> || → {{in|{{hl1}}{{hl1:bs}}}} | | <code><nowiki>{{in|{{hl1}}{{hl1:bs}}}}</nowiki></code> || → {{in|{{hl1}}{{hl1:bs}}}} | ||
|- | |||
| <code><nowiki>{{in|{{hl1}}{{hl1:bs}}|color=#FFFFFF}}</nowiki></code> || → {{in|{{hl1}}{{hl1:bs}}|color=#FFFFFF}} | |||
|- | |- | ||
| <code><nowiki>{{in|text=in all games since|{{tf2}}}}</nowiki></code> || → {{in|text=in all games since|{{tf2}}}} | | <code><nowiki>{{in|text=in all games since|{{tf2}}}}</nowiki></code> || → {{in|text=in all games since|{{tf2}}}} |
Revision as of 16:03, 20 October 2022

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.
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
See Also