Template:Button: Difference between revisions
From CTLTMS
(Added buttons) |
(Added configurable label) |
||
Line 1: | Line 1: | ||
{{#ifexist: File:{{{1|Unknown}}}.png | [[File:{{{1|Unknown}}}.png|18px|Button|link=]] | }} '''{{{1|Unknown}}}'''<noinclude> | {{#ifexist: File:{{{1|Unknown}}}.png | [[File:{{{1|Unknown}}}.png|18px|Button|link=]] | }} '''{{{2|{{{1|Unknown}}}}}}'''<noinclude> | ||
Line 7: | Line 7: | ||
{{Button|New}} This is a new button. | {{Button|New}} This is a new button. | ||
You can select a button and have a different label against it using a second parameter. For example: | |||
<nowiki>{{Button|Detail|Tyres}} </nowiki> This is a new button. | |||
{{Button|Detail|Tyres}} | |||
The following buttons are supported: | The following buttons are supported: |
Latest revision as of 09:39, 15 April 2024
Unknown
Usage
The following displays the button icon and the description in bold after it.
{{Button|New}} This is a new button.
New This is a new button.
You can select a button and have a different label against it using a second parameter. For example:
{{Button|Detail|Tyres}} This is a new button.
Tyres
The following buttons are supported:
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Any other buttons will be given the Unknown button, unless you upload a picture with an identical name. For example, upload an image "My New Button.png" and access it with {{Button|My New Button}}.
Note: This is case-sensitive!