Template:Tools/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(4 intermediate revisions by one other user not shown)
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 9: Line 9:


== Copy and Paste ==
== Copy and Paste ==
{{ModernTip|Place the template at the top of the page to avoid formatting errors.}}
{{Tip|Place the template at the top of the page to avoid formatting errors.}}
{{CodeBlock|<nowiki>{{Tools
{{CodeBlock|<nowiki>{{Tools
| flag =  
| flag =  
Line 18: Line 18:
{| class="standard-table" width="100%"
{| class="standard-table" width="100%"
! {{Dictionary/common|Param}}
! {{Dictionary/common|Param}}
! {{Dictionary/common|Desc}}
! {{int:listfiles_description}}
! {{Dictionary/common|Example}}
! {{int:apisandbox-examples}}
! {{Dictionary/common|Preview}}
! {{int:preview}}
|-
|-
| align="center" | {{Code|style=2|{{Param|flag}}}}
| align=center | {{Code|{{Param|flag}}}}
| A string parameter that changes the flag in the country field. See [[:Category:Flag icons|Flag icons]] category for details. Defaults to {{tl|wh}} as the value.
| A string parameter that changes the flag in the country field. See [[Template:Flag]] for details. The default is a white flag.
| {{CodeBlock|margin=5px|<nowiki>| flag = de</nowiki>}}
| {{CodeBlock|<nowiki>| flag = de</nowiki>}}
| align="center" rowspan="2" | Check the top right of the page
| align=center rowspan=2 | Check the top right of the page
|-
|-
| align="center" | {{Code|style=2|{{Param|country}}}}
| align=center | {{Code|{{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|<nowiki>| country = Germany</nowiki>}}
|}
|}

Latest revision as of 03:50, 6 May 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

Tip.pngTip:Place the template at the top of the page to avoid formatting errors.
{{Tools | flag = | country = }}

Parameters and Examples

Parameter Description Examples Preview
{{{flag}}} A string parameter that changes the flag in the country field. See Template:Flag for details. The default is a white flag.
| flag = de
Check the top right of the page
{{{country}}} String parameter in which you enter the name of the country.
| country = Germany