Template:Test: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(35 intermediate revisions by 3 users not shown)
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}}}}
</includeonly></onlyinclude>{{doc|nolang=1}}[[category:templates]]
<!--
 
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]]<!--

Latest revision as of 07:18, 23 February 2024

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

This is a template created solely for the purpose of testing template code without either creating an entirely new page or editing an existing template.

Preview

Any changes you make will appear below. If not, then make sure to purge the cache of the template page. If you want to test your parameters, then you have to add them into the transcluded template within the documentation page.