Difference between revisions of "Template:AFC button/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Enterprisey
m (added example)
blackwiki>Andrybak
Line 18: Line 18:
 
{{Button templates}}
 
{{Button templates}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:WikiProject Articles for creation templates‎]]
 
[[Category:WikiProject Articles for creation templates‎]]
 
[[Category:Wikipedia button templates]]
 
[[Category:Wikipedia button templates]]
  
</includeonly>
+
}}</includeonly>

Revision as of 22:49, 25 March 2020

Usage

This template has three optional parameters:

  • size, which gives the size of the image in pixels. The default value is 200px. 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:
Button Icon GreenForest.svg

Click this button
to review
an AFC submission
However, the font size of the text under the image is not changed.
  • float, which specifies the float attribute of the <div> containing the template.
  • style, which, when set to button, makes the template use {{Clickable button 2}} instead of the image. For instance, {{AFC button|style=button}} produces:
Find a random AfC submission