Template:Message: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude><div style="margin:{{#ifeq:{{FULLPAGENAME}}|Template:Message|0| | {{Doc}} | ||
<includeonly><onlyinclude><div style="margin:{{#ifeq:{{FULLPAGENAME}}|Template:Message|0|18px 0}}; padding-left:50px; font-size:14px"> | |||
<!-- Avatar --> | |||
<div style="pointer-events:none; display:flex; justify-content:center; align-items:center; width:40px; height:40px; user-select:none; position:absolute; margin:2px 0 0 -50px"> | |||
<div style="display:flex; justify-content:center; align-items:center; width: 100%; height: 100%; background:#525252; border-radius:{{Settings|user={{{user|}}}|squareavatar|ifempty=50%}}; overflow:hidden;"><!-- | |||
-->[[{{Settings|user={{{user|}}}|before=File:UserAvatar-{{{user}}}.|avatarformat|after={{!}}40px{{!}}ERR|ifempty=File:Icon-user.png{{!}}link={{!}}16px}}]] | |||
</div> | |||
<div style="width:224px; height:224px; transform:scale(.2); display:flex; align-items:center; justify-content:center; overflow:hidden; user-select:none; pointer-events:none; position:absolute"><!-- | |||
-->[[{{Settings|user={{{user|}}}|before=File:UserAvatarFrame-{{{user}}}.|avatarframeformat|ifempty=File:Empty.png}}]] | |||
</div> | |||
</div> | |||
<!-- User & Time --> | |||
<div style="line-height:1.375rem; color:#696E73">{{#if:{{{user|}}}|<span style=color:#696E73>[[User:{{{user}}}|<font title="{{Message/strings|User}}: {{{user}}}" style="color:white;font-size:14.2px"><kbd style="font-family:sans-serif">'''{{Settings|user={{{user}}}|username|ifempty={{{user}}}}}'''</kbd></font>]] {{#switch:{{{user}}}|JeffLane=[[File:Icon-valve.png|text-top|link=]]}}|''{{Message/strings|Undefined user}}''}}<span style=user-select:none> </span>{{#if:{{{time|}}}|{{#time:{{Autolang|G:i, j xg Y|zh=Y年n月j日 G:i}}|{{{time}}} {{Settings|user={{{user|}}}|timeoffseth|before={{Settings|user={{{user|}}}|timeoffsetdir}}|after=hours}} {{Settings|user={{{user|}}}|timeoffsetm|before={{Settings|user={{{user|}}}|timeoffsetdir}}|after=minutes}}|{{uselang}}}} (UTC{{Settings|user={{{user|}}}|timeoffseth|before={{Settings|user={{{user|}}}|timeoffsetdirs|ifempty=+}}|after={{Settings|user={{{user|}}}|timeoffsetm|before=:}}|ifempty={{Settings|user={{{user|}}}|timeoffsetm|before={{Settings|user={{{user|}}}|timeoffsetdirs|ifempty=+}}0:}}}})|''{{Message/strings|Timestamp not defined}}''}}<span style="user-select:none"></span>{{#if:{{{edited|}}}|<span style=user-select:none;> <span title="{{#time:{{Autolang|G:i, j xg Y|zh=Y年n月j日 G:i}}|{{{edited}}} {{Settings|user={{{user|}}}|timeoffseth|before={{Settings|user={{{user|}}}|timeoffsetdir}}|after=hours}} {{Settings|user={{{user|}}}|timeoffsetm|before={{Settings|user={{{user|}}}|timeoffsetdir}}|after=minutes}}|{{uselang}}}} (UTC{{Settings|user={{{user|}}}|timeoffseth|before={{Settings|user={{{user|}}}|timeoffsetdirs|ifempty=+}}|after={{Settings|user={{{user|}}}|timeoffsetm|before=:}}|ifempty={{Settings|user={{{user|}}}|timeoffsetm|before={{Settings|user={{{user|}}}|timeoffsetdirs|ifempty=+}}0:}}}})">''({{Message/strings|edited}})''</span></span>}} | |||
</div> | |||
<!-- Text & Files --> | |||
<div style="border-radius:4px; line-height:1.375rem; word-wrap:break-word">{{{1|{{{text|}}}}}}</div> | |||
{{#if:{{{2|}}}|<div style="margin-top:4px; user-select:none">{{{2|}}}</div>}} | |||
</div></onlyinclude></includeonly> |