Difference between revisions of "Template:Big Red Button"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(tag fix)
imported>Matt Fitzpatrick
(modernizing html a bit)
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.92em 0 2.304em; width: {{{size|200px}}}; height: {{{size|200px}}}; {{#if:{{{float|}}}|float: {{{float}}};|margin: auto;}} white-space: nowrap; text-align: center; font-weight: bold;"><!--
[[File:Button Icon Red.svg|{{{size|200px}}}|center|link=Special:RandomInCategory/All unreferenced BLPs]]
+
-->[[File:Button Icon Red.svg|{{{size|200px}}}|link=|alt=]]<!--
<center><big>{{#switch:{{{delete|no}}}
+
-->{{Random page in category|All unreferenced BLPs|2|text=
|yes={{Random page in category|All unreferenced BLPs|2|text='''Delete this unsourced BLP.'''}}
+
        <span style="display: block; position: absolute; top: 0; width: 100%; height: 100%;"><!--
|no|#default={{Random page in category|All unreferenced BLPs|2|text='''Reference this BLP'''}}
+
        --><span style="display: block; position: absolute; top: 0; width: 100%; font-size: 120%;"><!--
}}<br />
+
            -->Click this button.<!--
</big></center></big></center></div><noinclude>
+
        --></span><!--
 +
        --><span style="display: block; position: absolute; bottom: 0; width: 100%; font-size: 144%;"><!--
 +
            -->{{#ifeq:{{{delete}}}|yes|Delete this unsourced BLP.|Reference this BLP}}<!--
 +
        --></span><!--
 +
    --></span>
 +
    }}
 +
</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>

Revision as of 18:46, 15 October 2017

Template:Random page in category
Template documentation[view] [edit] [history] [purge]

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