Difference between revisions of "Template:Button"
From LFS Manual
Jump to navigationJump to search (use <samp> inside <kbd>) |
|||
| Line 1: | Line 1: | ||
| − | <includeonly><kbd class="nowrap" style="display: inline-block; height: 18px; line-height: 18px; font-family: inherit; color: {{# | + | <includeonly><kbd class="nowrap" style="display: inline-block; height: 18px; line-height: 18px; font-family: inherit; color: {{#switch: {{{2|}}} |
| + | | light = black | ||
| + | | green = white <!-- deprecated, use ok --> | ||
| + | | ok = white | ||
| + | | cancel = white | ||
| + | | white | ||
| + | }}; padding-inline: 4px; border: 0; background-color: {{#switch: {{{2|}}} | ||
| + | | light = rgb(200,200,200,0.4) | ||
| + | | green = #76B44B <!-- deprecated, use ok --> | ||
| + | | ok = #76B44B | ||
| + | | cancel = #D3621C | ||
| + | | {{{2|rgb(5,0,0,0.4)}}} | ||
| + | }}; border-radius: 4px; font-weight: bold;"><samp style="font-family: sans-serif">{{{text|{{{1}}}}}}</samp></kbd></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 09:14, 14 February 2026
Template documentation
This template allows you to illustrate LFS buttons in the current style. For the old-styled buttons, see template: Old button.
Examples
| Markup | Renders as |
|---|---|
{{button|Display}}
|
Display |
| Markup | Renders as |
|---|---|
{{button|in car|light}}
|
in car |
| Markup | Renders as |
|---|---|
{{button|in car|ok}}
|
in car |
| Markup | Renders as |
|---|---|
{{button|Button with (parentheses)}}
|
Button with (parentheses) |
| Markup | Renders as |
|---|---|
{{button|quit|cancel}}
|
quit |