Difference between revisions of "Template:Big Red Button"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(tag fix)
imported>Matt Fitzpatrick
m (self rv 1 edit, font size, will think of a different solution for browser differences)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: {{{float|center}}};"><center><big>{{Random page in category|All unreferenced BLPs|2|text='''Click this button.'''}}<br />
+
<div style="position: relative; padding: 1.6em 0 1.92em; width: {{{size|200px}}}; height: {{{size|200px}}}; {{#if:{{{float|}}}|float: {{{float}}};|margin: auto;}} font-size: 120%; white-space: nowrap; text-align: center; font-weight: bold;"><!--
[[File:Button Icon Red.svg|{{{size|200px}}}|center|link=Special:RandomInCategory/All unreferenced BLPs]]
+
-->{{Random page in category|All unreferenced BLPs|2|text=
<center><big>{{#switch:{{{delete|no}}}
+
        <span style="display: block; position: absolute; top: 0; width: 100%; height: 100%;"><!--
|yes={{Random page in category|All unreferenced BLPs|2|text='''Delete this unsourced BLP.'''}}
+
        -->Click this button.<!--
|no|#default={{Random page in category|All unreferenced BLPs|2|text='''Reference this BLP'''}}
+
        --><span style="display: block; position: absolute; bottom: 0; width: 100%; font-size: 120%;"><!--
}}<br />
+
            -->{{#ifeq:{{{delete}}}|yes|Delete this unsourced BLP.|Reference this BLP}}<!--
</big></center></div><noinclude>
+
        --></span><!--
 +
    --></span>
 +
    }}<!--
 +
-->[[File:Button Icon Red.svg|{{{size|200px}}}|link=|alt=]]
 +
</div><noinclude>
  
 
{{Documentation}}
 
{{Documentation}}
 
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Latest revision as of 20:06, 15 October 2017

Template:Random page in category200px
50px Template documentation[view] [edit] [history] [purge]

This button, when pressed, generates a link to a random article in Category:All unreferenced BLPs.