Template:User page: Difference between revisions
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> | ||
<!-- | <!-- | ||
<div style="background:#303030; border-radius:6px | |||
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">'''{{ | {{#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;">'''{{ | {{#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
The above documentation is transcluded from Template:User page/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.