Template:User page: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Got it back by the WayBackMachine, FROM 1 JULY 2024) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Todo| | {{Todo|Someday complete work on this template, thereby standardizing non-stylized user pages.}} | ||
{{Todo|This template should become the second {{tl|MultiPage}}, but for user pages.}} | |||
{{Todo|Animated avatar. {{Note|It's not hard to do.}}}} | |||
{{Todo|The {{param|discord}} parameter should be changed to accept a user link, e.g.: {{code|discordapp.com/users/{{param|discord}}}}}} | |||
{{Note | |||
{{ | |||
}} | |||
{{Doc}} | {{Doc}} | ||
<includeonly><onlyinclude>{{#if:{{{nocat|}}}||[[Category:Users]]}}{{#if:{{{doc|}}}||{{DISPLAYTITLE:<span style=display:none>{{Settings|user={{PAGENAME}}|username|ifempty={{FULLPAGENAME}}}}</span>|noreplace}}}} | <includeonly><onlyinclude>{{#if:{{{nocat|}}}||[[Category:Users]]}}{{#if:{{{doc|}}}||{{DISPLAYTITLE:<span style=display:none>{{Settings|user={{PAGENAME}}|username|ifempty={{FULLPAGENAME}}}}</span>|noreplace}}}} | ||
Line 16: | Line 11: | ||
--> | --> | ||
<div style="display:flex; justify-content:center; align-items:center; height:256px; {{#if:{{{cover gradient|}}}|background-image:{{{cover gradient}}};|}} background-color:{{#switch:{{{theme}}} | <div style="display:flex; justify-content:center; align-items:center; height:256px; {{#if:{{{cover gradient|}}}|background-image:{{{cover gradient}}};|}} background-color:{{#switch:{{{theme}}} | ||
| dark = #181818 | | dark = #181818 | ||
| #default = #404040 | | #default = #404040 | ||
}}; border-radius:6px; overflow: hidden; user-select:none; position:relative; z-index:1; margin-top:{{#ifeq:{{FULLPAGENAME}}|Template:User page|0| | }}; 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}} | ||
|[[File:UserCover-{{PAGENAME}}.png|link=]] | |[[File:UserCover-{{PAGENAME}}.png|link=]] | ||
Line 27: | Line 21: | ||
|{{#if:{{{cover gradient|}}}||<span style="opacity:.6">[[File:Icon-panorama-filled.png|80px|{{User page/strings|AddCover}}|link=File:UserCover-{{ROOTPAGENAME}}.png]]</span>}}}}}} | |{{#if:{{{cover gradient|}}}||<span style="opacity:.6">[[File:Icon-panorama-filled.png|80px|{{User page/strings|AddCover}}|link=File:UserCover-{{ROOTPAGENAME}}.png]]</span>}}}}}} | ||
</div> | </div> | ||
<div style="display:flex; align-items:center; position:relative; z-index:3; padding: 0 clamp(8px, 2vw, 30px); margin-top:-64px; margin-bottom:20px"> | |||
<!-- | <!-- | ||
Line 37: | Line 28: | ||
--> | --> | ||
<div style="display:flex; justify-content:center; align-items:center; min-width: 128px; width:128px; height:128px; background-color: {{#switch:{{{theme}}} | <div style="display:flex; justify-content:center; align-items:center; min-width: 128px; width:128px; height:128px; background-color: {{#switch:{{{theme}}} | ||
| dark = #212121 | | dark = #212121 | ||
Line 53: | Line 41: | ||
|<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{{#switch:{{{event|}}}|xmas=XMAS|}}-{{PAGENAME}}.png|{{Settings|user={{PAGENAME}}|avatar frame size|ifempty=}}|link=]]</div>|}} | |<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{{#switch:{{{event|}}}|xmas=XMAS|}}-{{PAGENAME}}.png|{{Settings|user={{PAGENAME}}|avatar frame size|ifempty=}}|link=]]</div>|}} | ||
</div> | </div> | ||
<!-- | <!-- | ||
Line 59: | Line 46: | ||
--> | --> | ||
<div style="background-color: {{#switch:{{{theme}}} | <div style="background-color: {{#switch:{{{theme}}} | ||
| dark = #212121 | | dark = #212121 | ||
| #default = #303030 | | #default = #303030 | ||
}}; border-radius:6px; font-size: 32px; line-height:24px; color: #FFFFFF; padding:10px; | }}; border-radius:6px; font-size: 32px; line-height:24px; color: #FFFFFF; padding:10px; margin:0 16px">{{Settings|user={{PAGENAME}}|username|ifempty={{PAGENAME}}}}<span style="user-select:none"></span></div> | ||
<!-- | <!-- | ||
Line 71: | Line 55: | ||
--> | --> | ||
<div style="display:flex; align-items:center; gap:20px; background:{{#switch:{{{theme}}} | <div style="display:flex; align-items:center; gap:20px; background:{{#switch:{{{theme}}} | ||
| dark = #212121 | | dark = #212121 | ||
Line 79: | Line 62: | ||
-->[[File:Icon-settings_account_box-outlined.png|24px|link={{#ifexist:{{FULLPAGENAME}}/Settings|{{FULLPAGENAME}}/Settings|{{fullurl:{{FULLPAGENAME}}/Settings|action=edit&preload={{urlencode:Template:User settings page/preload}}}}}}|{{User page/strings|UserSettings}}]]</div> | -->[[File:Icon-settings_account_box-outlined.png|24px|link={{#ifexist:{{FULLPAGENAME}}/Settings|{{FULLPAGENAME}}/Settings|{{fullurl:{{FULLPAGENAME}}/Settings|action=edit&preload={{urlencode:Template:User settings page/preload}}}}}}|{{User page/strings|UserSettings}}]]</div> | ||
</div> | </div> | ||
<!-- | <!-- | ||
Line 85: | Line 67: | ||
--> | --> | ||
<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}} | {{#if:{{{noach|}}}||{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/Achievements}} | ||
Line 100: | Line 82: | ||
|}}}} | |}}}} | ||
<!-- Links --><!-- Maybe it should be renamed --> | <!-- Links --><!-- Maybe it should be renamed --> | ||
{{#if: | {{#if:{{{website|}}}{{{steam|}}}{{{gamebanana|}}}{{{github|}}}{{{gitlab|}}}{{{youtube|}}}{{{twitter|}}}{{{facebook|}}}{{{discord|}}}{{{links|}}} | ||
| <div style="display:flex; flex-direction:column; box-sizing:border-box; width:100%; {{#switch:{{{theme}}} | | <div style="display:flex; flex-direction:column; box-sizing:border-box; width:100%; {{#switch:{{{theme}}} | ||
| dark = background:#212121; box-shadow:rgba(0, 0, 0, .45) 0 0 25px | | dark = background:#212121; box-shadow:rgba(0, 0, 0, .45) 0 0 25px | ||
Line 115: | Line 97: | ||
-->{{#if:{{{facebook|}}} | <span>[http://www.facebook.com/{{{facebook}}} Facebook]</span> |}}<!-- | -->{{#if:{{{facebook|}}} | <span>[http://www.facebook.com/{{{facebook}}} Facebook]</span> |}}<!-- | ||
-->{{#if:{{{gamebanana|}}} | <span> | -->{{#if:{{{gamebanana|}}} | <span>[http://gamebanana.com/members/{{{gamebanana}}} GameBanana]</span> |}}<!-- | ||
-->{{#if:{{{github|}}} | <span> | -->{{#if:{{{github|}}} | <span>[http://github.com/{{{github}}} GitHub]</span> |}}<!-- | ||
-->{{#if:{{{gitlab|}}} | <span>[http://gitlab.com/{{{gitlab}}} GitLab]</span> |}}<!-- | -->{{#if:{{{gitlab|}}} | <span>[http://gitlab.com/{{{gitlab}}} GitLab]</span> |}}<!-- | ||
-->{{#if:{{{patreon|}}} | <span>[https://patreon.com/{{{patreon}}} Patreon]</span> |}}<!-- | -->{{#if:{{{patreon|}}} | <span>[https://patreon.com/{{{patreon}}} Patreon]</span> |}}<!-- | ||
-->{{#if:{{{lambdageneration|}}} | <span>[https://community.lambdageneration.com/user/{{{lambdageneration}}} Lambda Generation]</span> |}}<!-- | -->{{#if:{{{lambdageneration|}}} | <span>[https://community.lambdageneration.com/user/{{{lambdageneration}}} Lambda Generation]</span> |}}<!-- | ||
-->{{#if:{{{soundcloud|}}} | <span>[https://www.soundcloud.com/{{{soundcloud}}} SoundCloud]</span> |}}<!-- | -->{{#if:{{{soundcloud|}}} | <span>[https://www.soundcloud.com/{{{soundcloud}}} SoundCloud]</span> |}}<!-- | ||
-->{{#if:{{{gamemaps|}}} | <span>[https://www.gamemaps.com/profile/{{{gamemaps}}} GameMaps]</span> |}}<!-- | -->{{#if:{{{gamemaps|}}} | <span>[https://www.gamemaps.com/profile/{{{gamemaps}}} GameMaps]</span> |}}<!-- | ||
-->{{#if:{{{moddb|}}} | <span> | -->{{#if:{{{moddb|}}} | <span>[https://www.moddb.com/members/{{{moddb}}} ModDB]</span> |}}<!-- | ||
-->{{#if:{{{twhl|}}} | <span>[https://twhl.info/index.php/user/view/{{{twhl}}} TWHL]</span> |}}<!-- | -->{{#if:{{{twhl|}}} | <span>[https://twhl.info/index.php/user/view/{{{twhl}}} TWHL]</span> |}}<!-- | ||
-->{{#if:{{{gamerlab|}}} | <span>[https://gamer-lab.com/eng/user/{{{gamerlab}}} Gamer-Lab]</span> |}}<!-- | -->{{#if:{{{gamerlab|}}} | <span>[https://gamer-lab.com/eng/user/{{{gamerlab}}} Gamer-Lab]</span> |}}<!-- | ||
-->{{#if:{{{steam|}}}{{{steam id|}}} | <span> | -->{{#if:{{{steam|}}}{{{steam id|}}} | <span>[http://steamcommunity.com/{{#if:{{{steam|}}}|id|profiles}}/{{{steam|{{{steam id}}}}}} Steam]</span> |}}<!-- | ||
-->{{#if:{{{twitter|}}} | <span> | -->{{#if:{{{twitter|}}} | <span>[http://twitter.com/{{{twitter}}} Twitter]</span> |}}<!-- | ||
-->{{#if:{{{ | -->{{#if:{{{youtube|}}} | <span>[http://www.youtube.com/{{{youtube}}} YouTube]</span> |}}<!-- | ||
-->{{#if:{{{links-after|}}} | <span>{{{links-after}}}</span> |}}<!-- | -->{{#if:{{{links-after|}}} | <span>{{{links-after}}}</span> |}}<!-- | ||
Line 152: | Line 130: | ||
}}; font-weight:bold; padding:4px 10px;">{{User page/strings|Userboxes}}</div> | }}; font-weight:bold; padding:4px 10px;">{{User page/strings|Userboxes}}</div> | ||
<div style="display:grid; gap:.3em; overflow:hidden; padding:10px">{{#if:{{{userboxes|}}}|{{{userboxes}}}|}}</div> | <div style="display:grid; gap:.3em; overflow:hidden; padding:10px">{{#if:{{{userboxes|}}}|{{{userboxes}}}|}}</div> | ||
</div>| | </div>| | ||
}} | }} | ||
</div> | </div></onlyinclude></includeonly> |
Revision as of 13:04, 17 June 2024
Todo: Someday complete work on this template, thereby standardizing non-stylized user pages.
Todo: This template should become the second
{{MultiPage}}
, but for user pages.Todo: Animated avatar.
Note:It's not hard to do.

Todo: The {{{discord}}} parameter should be changed to accept a user link, e.g.: discordapp.com/users/{{{discord}}}
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.