Template:Test: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) m (Replaced content with "<onlyinclude><includeonly><!-- <!-- Type your code below this comment. Do not remove this comment </includeonly></onlyinclude>{{doc|nolang=1}}category:templates<!--") Tag: Replaced |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
<!-- Type your code below this comment. Do not remove this comment | <!-- Type your code below this comment. Do not remove this comment | ||
{{#if:{{{doc|}}}||{{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}}"><!-- | |||
-->{{#if:{{PROTECTIONEXPIRY:edit|File:UserCover-{{PAGENAME}}.png}} | |||
|[[File:UserCover-{{PAGENAME}}.png|link=]] | |||
|{{#if:{{PROTECTIONEXPIRY:edit|File:UserCover-{{PAGENAME}}.jpg}} | |||
|[[File:UserCover-{{PAGENAME}}.jpg|link=]] | |||
|<span style="pointer-events:none; opacity:0.6">[[File:Icon-panorama.png|link=|80px]]</span>}}}} | |||
</div> | |||
<div style="display:flex; align-items:center; position:relative; z-index:3; padding: 0 clamp(8px, 2vw, 30px); margin-top:-64px"> | |||
<!-- | |||
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}} | |||
|[[File:UserAvatar-{{PAGENAME}}.png|link=|128px]] | |||
|{{#if:{{PROTECTIONEXPIRY:edit|File:UserAvatar-{{PAGENAME}}.jpg}} | |||
|[[File:UserAvatar-{{PAGENAME}}.jpg|link=|128px]] | |||
|[[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> | |||
|}} | |||
</div> | |||
<!-- | |||
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> | |||
<!-- | |||
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;"><!-- | |||
-->[[File:icon-wh-sandbox.png|24px|link=User:{{PAGENAME}}/Sandbox|{{Autolang|User Sandbox|ru=Песочница}}]]<!-- | |||
-->[[File:Icon-settings_account_box-outlined.png|24px|link=User:{{PAGENAME}}/Settings|{{Autolang|User Settings|ru=Настройки пользователя}}]]</div> | |||
</div> | |||
<!-- | |||
Stuff: | |||
--> | |||
<div style="display:flex; flex-direction:column; gap:10px; width:320px; color:lightgrey; float:right; margin:0 0 10px 10px"> | |||
<!-- 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">'''[[{{FULLPAGENAME}}/Achievements|{{Autolang|Achievements|ru=Достижения}}]]'''<div style="display:flex; gap:8px; overflow:hidden;">{{Wikichievements|nodiv=1|mini=1}}</div></div>|}} | |||
<!-- 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>}} | |||
</div> | |||
</includeonly></onlyinclude>{{doc|nolang=1}}[[category:templates]]<!-- | </includeonly></onlyinclude>{{doc|nolang=1}}[[category:templates]]<!-- |
Revision as of 14:25, 15 March 2023
The above documentation is transcluded from Template:Test/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.