Difference between revisions of "Template:Purge button"

From blackwiki
Jump to navigation Jump to search
test>Matt Fitzpatrick
(removed redundant title attributes; noprint when transcluded; simplified switch logic and HTML/CSS markup)
test>Matt Fitzpatrick
(rewrote as single link rather than two repeated links; made whole box a tap target for mobile)
Line 3: Line 3:
 
|center= margin:0 auto;
 
|center= margin:0 auto;
 
|#default=float:left;margin:0 0.5em;
 
|#default=float:left;margin:0 0.5em;
}};width:{{#expr:{{{iconsize|64}}}+2}}px;font-size:smaller;text-align:center;"> [[File:View-refresh.svg|{{{iconsize|64}}}px|link={{fullurl:{{{page|{{FULLPAGENAME}}}}}|action=purge}}|alt=Update this page]]<div style="padding:0.5em 0.15em 0.15em;line-height:1.2em;font-weight:bold;{{{textstyle|}}}">[{{fullurl:{{FULLPAGENAME}}|action=purge}} Update this page]</div> </div><noinclude>{{clear}}<!--(to separate template and Documentation boxes)-->{{Documentation}}</noinclude>
+
}};position:relative;padding:0;width:{{#expr:{{{iconsize|64}}}+6}}px;font-size:smaller;text-align:center;"><span style="position:absolute;left:3px;top:3px;">[[File:View-refresh.svg|{{{iconsize|64}}}px|link=|alt=]]</span>[{{fullurl:{{FULLPAGENAME}}|action=purge}} <span style="display:block;position:relative;margin:-1px;padding:{{#expr:{{{iconsize|64}}}+10}}px 0.4em 0.4em;line-height:1.2em;font-weight:bold;{{{textstyle|}}}">Update this page</span>]</div><noinclude>{{clear}}<!--(to separate template and Documentation boxes)-->{{Documentation}}</noinclude>

Revision as of 03:10, 31 May 2018

Template documentation[create]