Template:User settings page
来自Valve Developer Community
跳转到导航
跳转到搜索

文档页面 Template:User settings page/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。

本模板使用字符串子页面
请遵循该子页面上的格式添加翻译。
请遵循该子页面上的格式添加翻译。
This template is used for checking the functionality of a user settings subpage Special:MyPage/Settings.
Usage
{{User settings page}}
Create your settings page
To create your settings page, click here.
Copy and Paste
{{User settings page}}
<onlyinclude>{{#switch:{{{1|}}}
| username =
| timeoffsetdir =
| timeoffseth =
| timeoffsetm =
| avatar format =
| avatar radius =
| avatar frame format =
| avatar frame size =
}}</onlyinclude>
Translations
The used strings are on strings subpage. Please follow the format to add translations for them.
Parameters and Examples
These are parameters that used by various templates such as {{Message}}
.
Parameter | Description | Example |
---|---|---|
{{{username}}} | Your nickname that the template should show instead of your username.
![]() {{Autolang}} for supporting multi-language nickname. |
| username = Gabe Newell | username = {{#switch: {{language}}|#default = Gabe Newell|zh=加布·纽维尔}} |
Location | ||
{{{timeoffsetdir}}} | Time direction (plus or minus) relative to UTC. The default value is +, so this parameter should only be used if you want to specify a minus | | timeoffsetdir = - |
{{{timeoffseth}}} | Time difference from UTC (hours) | | timeoffseth = 8 |
{{{timeoffsetm}}} | Time difference from UTC (minutes) | | timeoffsetm = 30 |
Avatar | ||
{{{avatar format}}} | The file format of your avatar. Without this parameter, the image for avatar will not be used. | | avatar format = png |
{{{avatar radius}}} | Avatar Radius. | | avatar radius = 6px |
{{{avatar rendering}}} | Specifies the value for image-rendering (CSS property) in the avatar. The default value is auto. | | avatar rendering = pixelated |
Avatar Frame | ||
{{{avatar frame format}}} | The file format of the frame of your avatar. Without this parameter, the frame image for avatar will not be used. | | avatar frame format = gif |
{{{avatar frame size}}} | It is necessary to specify the recommended resolution of the avatar frame instead of the native one. The parameter was added due to differences between static and animated avatar frames on Steam. Static avatar frames have a resolution of 244 x 244 pixels, while animated frames use the recommended 224 x 224 pixels.
Due to the way MediaWiki works, we cannot specify a fixed size for all avatar frames, because after that animated frames simply won't work. |
| avatar frame size = 224px |