Template:User page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (revert)
(Links)
Line 1: Line 1:
<onlyinclude><includeonly>{{#if:{{{doc|}}}||{{DISPLAYTITLE:<span style=display:none>{{Settings|user={{PAGENAME}}|username|ifempty={{FULLPAGENAME}}}}</span>|noreplace}}}}
{{Doc}}
<includeonly><onlyinclude>{{#if:{{{doc|}}}||{{DISPLAYTITLE:<span style=display:none>{{Settings|user={{PAGENAME}}|username|ifempty={{FULLPAGENAME}}}}</span>|noreplace}}}}
<!--
<!--


Cover:
- Cover -


-->
-->
Line 16: Line 17:
<!--
<!--


Avatar:
- Avatar -


-->
-->
<div style="display:flex; justify-content:center; align-items:center; min-width: 128px; width:128px; height:128px; background-color:#525252; border-radius:{{Settings|user={{PAGENAME}}|squareavatar|ifempty=50%}}; overflow:hidden; user-select:none">{{#if:{{PROTECTIONEXPIRY:edit|File:UserAvatar-{{PAGENAME}}.png}}
<div style="display:flex; justify-content:center; align-items:center; min-width: 128px; width:128px; height:128px; background-color:#525252; border-radius:{{Settings|user={{PAGENAME}}|squareavatar|ifempty=50%}}; overflow:hidden; user-select:none"><!--
-->{{#if:{{PROTECTIONEXPIRY:edit|File:UserAvatar-{{PAGENAME}}.png}}
|[[File:UserAvatar-{{PAGENAME}}.png|link=|128px]]
|[[File:UserAvatar-{{PAGENAME}}.png|link=|128px]]
|{{#if:{{PROTECTIONEXPIRY:edit|File:UserAvatar-{{PAGENAME}}.jpg}}
|{{#if:{{PROTECTIONEXPIRY:edit|File:UserAvatar-{{PAGENAME}}.jpg}}
|[[File:UserAvatar-{{PAGENAME}}.jpg|link=|128px]]
|[[File:UserAvatar-{{PAGENAME}}.jpg|link=|128px]]
|[[File:Icon-user.png|link=|60px]]}}}}<!--
|[[File:Icon-user.png|link=|60px]]}}}}<!--
--->{{#if:{{PROTECTIONEXPIRY:edit|File:UserAvatarFrame-{{PAGENAME}}.png}}
 
|<div style="width:224px; height:224px; transform:scale(.7); display:flex; align-items:center; justify-content:center; overflow:hidden; user-select:none; position:absolute">[[File:UserAvatarFrame-{{PAGENAME}}.png|{{Settings|user={{PAGENAME}}|staticframe|ifempty=}}|link=]]</div>
-->{{#if:{{PROTECTIONEXPIRY:edit|File:UserAvatarFrame-{{PAGENAME}}.png}}
|}}
|<div style="width:224px; height:224px; transform:scale(.7); display:flex; align-items:center; justify-content:center; overflow:hidden; user-select:none; position:absolute">[[File:UserAvatarFrame-{{PAGENAME}}.png|{{Settings|user={{PAGENAME}}|staticframe|ifempty=}}|link=]]</div>|}}
</div>
</div>
<!--
<!--


Username:
- Username -


-->
-->
Line 36: Line 38:
<!--
<!--


Buttons under the Cover:
- Buttons under the Cover -


-->
-->
<div style="display:flex; align-items:center; gap:20px; background:#303030; border-radius:6px; user-select:none; padding:10px; margin-left:auto;"><!--
<div style="display:flex; align-items:center; gap:20px; background:#303030; border-radius:6px; user-select:none; padding:10px; margin-left:auto;"><!--
-->[[File:icon-wh-sandbox.png|24px|link=User:{{PAGENAME}}/Sandbox|{{Autolang|User Sandbox|ru=Песочница|zh=用户沙盒}}]]<!--
-->[[File:icon-wh-sandbox.png|24px|link=User:{{PAGENAME}}/Sandbox|{{User page/strings|UserSandbox}}]]<!--
-->[[File:Icon-settings_account_box-outlined.png|24px|link=User:{{PAGENAME}}/Settings|{{Autolang|User Settings|ru=Настройки пользователя|zh=用户设置}}]]</div>
-->[[File:Icon-settings_account_box-outlined.png|24px|link=User:{{PAGENAME}}/Settings|{{User page/strings|UserSettings}}]]</div>
</div>
</div>
<!--
<!--


Stuff:
- Stuff -


-->
-->
<div style="display:flex; flex-direction:column; gap:10px; width:320px; color:lightgrey; float:right; margin:0 0 10px 10px">
<div class="plainlinks" style="display:flex; flex-direction:column; gap:10px; width:320px; color:lightgrey; float:right; margin:0 0 10px 10px">
<!-- Achievements -->
<!-- Achievements -->
{{#if:{{{noach}}}||{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/Achievements}}|<div style="display:flex; flex-direction:column; box-sizing:border-box; width: 100%; background:#303030; border-radius:6px; padding:8px 10px; z-index:2;">'''[[{{FULLPAGENAME}}/Achievements|{{Autolang|Achievements|ru=Достижения|zh=成就}}]]'''<div style="display:flex; gap:8px; overflow:hidden;">{{Wikichievements|nodiv=1|mini=1}}</div></div>|}}}}
{{#if:{{{noach}}}||{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/Achievements}}|<div style="display:flex; flex-direction:column; width: 100%; box-sizing:border-box; background:#303030; box-shadow:0 4px 10px rgb(0,0,0,.2),0 20px 40px rgb(0,0,0,.1); border-radius:6px; padding:8px 10px; z-index:2;">'''[[{{FULLPAGENAME}}/Achievements|{{User page/strings|Achievements}}]]'''<div style="display:flex; gap:8px; overflow:hidden;">{{Wikichievements|nodiv=1|mini=1}}</div></div>|}}}}
<!-- Links -->
<!-- Links --><!-- Maybe it should be renamed -->
{{#if:{{{links|}}}|<div style="display:flex; flex-direction:column; box-sizing:border-box; width:100%; background:#303030; border-radius:6px; padding:8px 10px; z-index:2;">'''{{Autolang|Links|ru=Ссылки|zh=链接}}'''<span>{{{links}}}</span></div>}}
{{#if:{{{website|}}}{{{steam|}}}{{{gamebanana|}}}{{{github|}}}{{{gitlab|}}}{{{twitter|}}}{{{facebook|}}}{{{discord|}}}{{{links|}}}
</div></onlyinclude></includeonly>{{doc}}
| <div style="display:flex; flex-direction:column; box-sizing:border-box; width:100%; box-shadow:0 4px 10px rgb(0,0,0,.2),0 20px 40px rgb(0,0,0,.1); background:#303030; border-radius:6px; padding:8px 10px; z-index:2;">
<div style="font-weight:bold">{{User page/strings|Links}}</div>
<div style="display:flex; flex-direction:column"><!--
--><span>{{#if:{{{website|}}}| [http://{{{website|}}} Website] |}}</span><!--
--><span>{{#if:{{{steam|}}}| [http://steamcommunity.com/id/{{{steam}}} Steam] |}}</span><!--
--><span>{{#if:{{{gamebanana|}}}| [http://gamebanana.com/members/{{{gamebanana}}} GameBanana] |}}</span><!--
--><span>{{#if:{{{github|}}}| [http://github.com/{{{github}}} GitHub] |}}</span><!--
--><span>{{#if:{{{gitlab|}}}| [http://gitlab.com/{{{gitlab}}} GitLab] |}}</span><!--
--><span>{{#if:{{{twitter|}}}| [http://twitter.com/{{{twitter}}} Twitter] |}}</span><!--
--><span>{{#if:{{{facebook|}}}| [http://www.facebook.com/{{{facebook}}} Facebook] |}}</span><!--
 
--><span>{{#if:{{{links|}}}|{{{links}}}|}}</span><!--
 
--><hr><!--
 
--><span>{{#if:{{{discord|}}}| <span style="color:#FFF; margin-right:.3em">Discord:</span>{{{discord}}} |}}</span>
</div>
</div>
}}
</div></onlyinclude></includeonly>

Revision as of 03:23, 1 April 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

This template is intended for use on user pages as a means of standardizing them and making them look better. It will automatically search and attempt to load these images UserAvatar-YOURNAME UserAvatarFrame-YOURNAME or UserCover-YOURNAME. If any of the applicable images are available, then they will replace their correspondent placeholder counterparts.

Another thing to note. If your user page has a subpage called "Achievements", and it has the {{Wikichievements}} template transcluded into it, then this template will detect that and load a box to the right of your userpage titled "Achievements". If you have any achievements defined in {{Wikichievements/Data}} then they will load in the aforementioned box.

Translations

The used strings are on strings subpage. Please follow the format to add translations for them.

Images

Supported formats: JPG, PNG (PNG only for avatar and avatar frame).

Recommended avatar resolution: 128x128 pixels.

Recommended cover resolution: 2560x256 pixels.

Recommended avatar frame resolution: 224x224 pixels.

Copy and Paste

{{User page | website = | facebook = | gamebanana = | github = | gitlab = | patreon = | reddit = | lambdageneration = | soundcloud = | gamemaps = | moddb = | twhl = | gamerlab = | steam = | twitter = | bluesky = | youtube = | twitch = | discord id = }}

Frame style

| align = | frame bg = | frame = | radius frame cover = | radius frame username = | radius frame buttons = | padding frame cover = | padding frame username = | padding frame avatar = | padding frame buttons =

Parameters and Examples

Note.pngNote:All these parameters are optional. For the template to work properly, it is enough to use it without any parameters.

Used Categories

Users

Preview

Icon-panorama.png
Icon-user.png
User page
Icon-panorama.png
Icon-user.png
User page

Frames

Icon-panorama.png
Icon-user.png
User page
Icon-panorama.png
Icon-user.png
User page

Frame Background colors

Icon-panorama.png
Icon-user.png
User page
Icon-panorama.png
Icon-user.png
User page