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

From blackwiki
Jump to navigation Jump to search
blackwiki>Enterprisey
(Fix newline)
blackwiki>Enterprisey
(→‎Usage: Added float attribute to documentation)
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
This template has one optional parameter, <code>size</code>, which gives the size of the image in pixels. The default value is <code>200px</code>. To show the image at a different size, invoke the template with a different size parameter. For example, {{Tlx|AFC button|size{{=}}50px}} (quarter size) would produce:
+
This template has two optional parameters:
 +
 
 +
*<code>size</code>, which gives the size of the image in pixels. The default value is <code>200px</code>. To show the image at a different size, invoke the template with a different size parameter. For example, {{Tlx|AFC button|size{{=}}50px}} (quarter size) would produce:
  
 
{{AFC button|size=50px}}
 
{{AFC button|size=50px}}
  
 
{{clear}}
 
{{clear}}
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.
  
 
<includeonly>
 
<includeonly>

Revision as of 01:29, 30 November 2013

Usage

This template has two 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:

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.