Template:User header: Difference between revisions

From Bradshaw, the companion guide to On Our Lines
(variable for top text colour (default is *broken*, maintaining backwards compatibility with existing template users))
m (add a shadow based on text colour)
Line 4: Line 4:
<div style="position:relative; top:{{{top|-325}}}px">[[{{{cover|File:Royal Albert Bridge.jpg}}}|2000px]]</div>
<div style="position:relative; top:{{{top|-325}}}px">[[{{{cover|File:Royal Albert Bridge.jpg}}}|2000px]]</div>
<div style="position: absolute; top: 10px; left: 40px;">
<div style="position: absolute; top: 10px; left: 40px;">
<div style="color: {{{usercolor|white}}}; font-size: 4em; line-height:1.3em; font-family: 'neo-sans',sans-serif; text-align:left">
<div style="color: {{{usercolor|white}}}; font-size: 4em; line-height:1.3em; font-family: 'neo-sans',sans-serif; text-align:left; text-shadow: 2px 2px 5px {{Greater colour contrast ratio|{{{usercolor|white}}}}};">
<div>{{{username}}}</div>
<div>{{{username}}}</div>
<div style="margin-right:2.4em">{{{subhead|userpage}}}</div></div></div>
<div style="margin-right:2.4em">{{{subhead|userpage}}}</div></div></div>

Revision as of 02:55, 24 February 2021

{{{username}}}
userpage
[[User:{{{username}}}|userpage]] • [[User talk:{{{username}}}|chat]] • [[Special:Contributions/{{{username}}}|contributions]]