Template:User page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<onlyinclude><includeonly>{{DISPLAYTITLE:<span style=display:none>{{Settings|user={{PAGENAME}}|username|ifempty={{FULLPAGENAME}}}}</span>|noreplace}}
<onlyinclude><includeonly>{{DISPLAYTITLE:<span style=display:none>{{Settings|user={{PAGENAME}}|username|ifempty={{FULLPAGENAME}}}}</span>|noreplace}}
<!--
Cover:
-->
<div style="display:flex; justify-content:center; align-items:center; width:100%; height:256px; background-color:#404040; border-radius:6px; overflow: hidden; user-select:none; position:relative; z-index:1; margin-top:{{#ifeq:{{FULLPAGENAME}}|Template:User page|0|-30px}}"><!--
<div style="display:flex; justify-content:center; align-items:center; width:100%; height:256px; background-color:#404040; border-radius:6px; overflow: hidden; user-select:none; position:relative; z-index:1; margin-top:{{#ifeq:{{FULLPAGENAME}}|Template:User page|0|-30px}}"><!--
-->{{#if:{{PROTECTIONEXPIRY:edit|File:UserCover-{{PAGENAME}}.png}}
-->{{#if:{{PROTECTIONEXPIRY:edit|File:UserCover-{{PAGENAME}}.png}}
Line 9: Line 14:


<div style="display:flex; align-items:center; position:relative; z-index:3; padding: 0 clamp(8px, 2vw, 30px); margin-top:-64px">
<div style="display:flex; align-items:center; position:relative; z-index:3; padding: 0 clamp(8px, 2vw, 30px); margin-top:-64px">
<!-- 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]]
Line 19: Line 28:
|}}
|}}
</div>
</div>
<!-- Username -->
<!--
 
Username:
 
-->
<div style="background:#303030; border-radius:6px; font-size: 32px; line-height:24px; color: #FFFFFF; padding:10px; margin:0 16px">{{Settings|user={{PAGENAME}}|username|ifempty={{PAGENAME}}}}</div>
<div style="background:#303030; border-radius:6px; font-size: 32px; line-height:24px; color: #FFFFFF; padding:10px; margin:0 16px">{{Settings|user={{PAGENAME}}|username|ifempty={{PAGENAME}}}}</div>
<!-- Settings and Sandbox -->
<!--
<div style="background:#303030; border-radius:6px; font-size: 16px; line-height:8px; color: #FFFFFF; user-select:none; padding:10px; margin-left: auto; white-space: nowrap;"><span style="margin-right:1em;">[[File:icon-wh-sandbox.png|24px|link=User:{{PAGENAME}}/Sandbox|{{autolang|User Sandbox|ru=User Sandbox}}]]</span> [[File:Icon-settings_account_box-outlined.png|24px|link=User:{{PAGENAME}}/Settings|{{autolang|User Settings|ru=Настройки пользователя}}]]</div>
 
Buttons under the Cover:
 
-->
<div style="display:flex; 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=User Sandbox}}]]<!--
-->[[File:Icon-settings_account_box-outlined.png|24px|link=User:{{PAGENAME}}/Settings|{{Autolang|User Settings|ru=Настройки пользователя}}]]</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 style="display:flex; flex-direction:column; gap:10px; width:320px; color:lightgrey; float:right; margin:0 0 10px 10px">
<!-- Achievements -->
<!-- Achievements -->
{{#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">'''{{autolang|Achievements|ru=Достижения}}'''<span>This user has no achievements.</span></div>|}}
{{#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">'''{{Autolang|Achievements|ru=Достижения}}'''<span>This user has no achievements.</span></div>|}}
<!-- Links -->
<!-- Links -->
{{#if:{{{links|}}}|<div style="display:flex; flex-direction:column; box-sizing:border-box; width:100%; background:#303030; border-radius:6px; padding:8px 10px;">'''{{autolang|Links|ru=Ссылки}}'''<span>{{{links}}}</span></div>}}
{{#if:{{{links|}}}|<div style="display:flex; flex-direction:column; box-sizing:border-box; width:100%; background:#303030; border-radius:6px; padding:8px 10px;">'''{{Autolang|Links|ru=Ссылки}}'''<span>{{{links}}}</span></div>}}
</div></onlyinclude></includeonly>{{doc}}
</div></onlyinclude></includeonly>{{doc}}

Revision as of 11:22, 17 February 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

Frames

Frame Background colors