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

From blackwiki
Jump to navigation Jump to search
blackwiki>Enterprisey
(added docs for another param)
blackwiki>Enterprisey
m (added example)
Line 12: Line 12:
 
::However, the font size of the text under the image is not changed.
 
::However, the font size of the text under the image is not changed.
 
*<code>float</code>, which specifies the <code>float</code> attribute of the <code><nowiki><div></nowiki></code> containing the template.
 
*<code>float</code>, which specifies the <code>float</code> attribute of the <code><nowiki><div></nowiki></code> containing the template.
*<code>style</code>, which, when set to <code>button</code>, makes the template use {{tl|Clickable button 2}} instead of the image.
+
*<code>style</code>, which, when set to <code>button</code>, makes the template use {{tl|Clickable button 2}} instead of the image. For instance, {{tlc|AFC button|style{{=}}button}} produces:
 +
 
 +
{{AFC button|style=button}}
  
 
{{Button templates}}
 
{{Button templates}}

Revision as of 13:19, 18 March 2015

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