Difference between revisions of "Template:Button"
From LFS Manual
Jump to navigationJump to searchm |
m |
||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
− | --><span class="nowrap" style="color: {{#ifeq:{{{2|}}}|light|black|white}}; padding: 3px 6px; border: 0; background-color: {{#ifeq:{{{2|}}}|light|rgb(200,200,200,0.4)|rgb(5,0,0,0.3)}}; border-radius: 4px; font-weight: bold;">{{{text|{{{1}}}}}}</span><!-- | + | --><span class="nowrap" style="color: {{#ifeq:{{{2|}}}|light|black|white}}; padding: 3px 6px; border: 0; background-color: {{#ifeq:{{{2|}}}|light|rgb(200,200,200,0.4)|{{#ifeq:{{{2|}}}|green|rgb(117 180 76)|rgb(5,0,0,0.3)}}}}; border-radius: 4px; font-weight: bold;">{{{text|{{{1}}}}}}</span><!-- |
--><noinclude> | --><noinclude> | ||
== Template documentation == | == Template documentation == | ||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
Renders as: {{button|in car|light}} | Renders as: {{button|in car|light}} | ||
+ | <pre> | ||
+ | {{button|in car|green}} | ||
+ | </pre> | ||
+ | Renders as: {{button|in car|green}} | ||
[[Category:LFS button templates]] | [[Category:LFS button templates]] | ||
</noinclude> | </noinclude> |
Revision as of 23:21, 2 December 2023
{{{1}}}
Template documentation
This template allows you to illustrate LFS buttons in the current style. For the old-styled buttons, see template: Old button.
Variants: default light
Parameters
- first (required): shown text
- second (optional): variant; set to "light" for the light variant
Examples
{{button|Display}}
Renders as: Display
{{button|in car|light}}
Renders as: in car
{{button|in car|green}}
Renders as: in car