Difference between revisions of "Template:AFC button"
Jump to navigation
Jump to search
blackwiki>TheQ Editor (Add optional parameter to view old submissions only. tested in /sandbox already) |
m (25 revisions imported) |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <div style="{{#ifeq:{{lc:{{{float|left}}}}}|none||float: {{{float|left}}}; clear: {{{float|left}}};}}margin: 1em{{#ifeq:{{{size|200px}}}|200px| 1em -100px}}; width: 20%; padding: 0.5em; text-align: center;">[[File:Button Icon GreenForest.svg|{{{size|200px}}}|center|link= | + | {{#switch: {{{style|image}}} |
| − | </div><noinclude> | + | | image = <div style="{{#ifeq: {{lc:{{{float|left}}}}} | none | <!-- blank --> | float: {{{float|{{{align|left}}}}}}; clear: {{{float|{{{align|left}}}}}};}} margin: 1em{{#ifeq:{{{size|200px}}}|200px| 1em -100px}}; width: 20%; padding: 0.5em; text-align: center;">[[File:Button Icon GreenForest.svg|{{{size|200px}}}|center|link=toolforge:randomincategory/{{#ifeq:{{{old}}}|yes|AfC submissions_by_age/Very_old|Pending_AfC_submissions}}&server=en.wikipedia.org&namespace=2!118&type=page]]<br />[[toolforge:randomincategory/{{#ifeq:{{{old}}}|yes|AfC submissions_by_age/Very_old|Pending_AfC_submissions}}&server=en.wikipedia.org&namespace=2!118&type=page|<b style="color: #000; font-size: larger;{{#ifeq:{{{size|200px}}}|200px| top: -175px; position: relative;}}">Click this button<br />to review<br />an AFC submission</b>]] |
| + | </div> | ||
| + | | button = <div style="{{#ifeq: {{{align|left}}} | left | <!-- blank --> | text-align: {{{align|left}}};}}">{{Clickable button 2|1=toolforge:randomincategory/Pending AfC submissions&server=en.wikipedia.org&namespace=2!118&type=page|2=Find a random AfC submission|class=mw-ui-progressive}}</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 11:47, 15 October 2020
Usage
This template has three optional parameters:
size, which gives the size of the image in pixels. The default value is200px. To show the image at a different size, invoke the template with a different size parameter. For example,{{AFC button|size=50px}}(quarter size) would produce:
- However, the font size of the text under the image is not changed.
float, which specifies thefloatattribute of the<div>containing the template.style, which, when set tobutton, makes the template use {{Clickable button 2}} instead of the image. For instance,{{AFC button|style=button}}produces:
| The above documentation is transcluded from Template:AFC button/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |