Template:AfC button/doc: Difference between revisions

From Bharatpedia, an open encyclopedia
(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Bharatdata. --> == Usage == This template has three 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, {{Tlc|AFC button|size{{=}}50px}} (quarter size) would produce: {{AFC button|size=50px}} {{clea...")
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
No edit summary
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=50px}}
{{AFC button|size=60px}}


{{clear}}
{{clear}}

Revision as of 22:31, 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: