Difference between revisions of "Template:AFC button/doc"
Jump to navigation
Jump to search
blackwiki>Davisonio |
blackwiki>Enterprisey (added docs for another param) |
||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
| − | This template has | + | 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, {{ | + | *<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=50px}} | ||
| 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. | ||
{{Button templates}} | {{Button templates}} | ||
Revision as of 13:18, 18 March 2015
| 40px | This is a documentation subpage for Template:AFC button. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template has three optional parameters:
size, which gives the size of the image in pixels. The default value is200px. 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 thefloatattribute of the<div>containing the template.style, which, when set tobutton, makes the template use {{Clickable button 2}} instead of the image.