Template:Tools/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Odd. not sure why the tools templater is displaying in the middle of the heading on this page. Guess it's not that much of an issue.)
m (Should be 'Germany' not 'German')
Line 2: Line 2:
{{Tools
{{Tools
| flag = de
| flag = de
| country = German
| country = Germany
}}
}}
Adds a toolbar to the upper-right corner of the page, which also has some additional information (for example, country of residence).
Adds a toolbar to the upper-right corner of the page, which also has some additional information (for example, country of residence).
Line 29: Line 29:
| align="center" | {{Code|style=2|{{Param|country}}}}
| align="center" | {{Code|style=2|{{Param|country}}}}
| String parameter in which you enter the name of the country.
| String parameter in which you enter the name of the country.
| {{CodeBlock|margin=5px|<nowiki>| country = German</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| country = Germany</nowiki>}}
|}
|}

Revision as of 12:40, 21 April 2023

Edit-copy.png
This is a documentation subpage for Template:Tools.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Deutsch (de) Germany
Icon-edit.png
Icon-deblur.png
Icon-sandbox.png
Icon-settings.png

Adds a toolbar to the upper-right corner of the page, which also has some additional information (for example, country of residence).

The main focus of the template is to be used on user pages.

Copy and Paste

Template:ModernTip

{{Tools | flag = | country = }}

Parameters and Examples

Parameter Description Example Preview
{{{flag}}} A string parameter that changes the flag in the country field. See Flag icons category for details. Defaults to {{wh}} as the value.
| flag = de
Check the top right of the page
{{{country}}} String parameter in which you enter the name of the country.
| country = Germany