Template:AfC button/doc: Difference between revisions

From Bharatpedia, an open encyclopedia
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
Line 7: Line 7:
*<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, {{Tlc|AFC button|size{{=}}50px}} (quarter size) would produce:
*<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, {{Tlc|AFC button|size{{=}}50px}} (quarter size) would produce:


{{AFC button|size=60px}}
{{AFC button|size=100px}}


{{clear}}
{{clear}}

Latest revision as of 22:32, 5 November 2024

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:
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}} instead of the image. For instance, {{AFC button|style=button}} produces: