Difference between revisions of "Template:Button"

From LFS Manual
Jump to navigationJump to search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
+
<includeonly><kbd class="nowrap" style="display: inline-block; height: 18px; line-height: 18px; font-family: inherit; color: {{#ifeq:{{{2|}}}|light|black|white}}; padding-inline: 4px; 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.4)}}}}; border-radius: 4px; font-weight: bold;">{{{text|{{{1}}}}}}</kbd></includeonly><noinclude>
--><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><!--
+
{{documentation}}
--><noinclude>
 
== Template documentation ==
 
This template allows you to illustrate LFS buttons in the current style. For the old-styled buttons, see template: [[Template:Old button|Old button]].
 
<div>
 
Variants:
 
{{button|default}}
 
{{button|light|light}}
 
</div>
 
=== Parameters ===
 
* first (required): shown text
 
* second (optional): variant; set to "light" for the light variant
 
=== Examples ===
 
<pre>
 
{{button|Display}}
 
</pre>
 
Renders as: {{button|Display}}
 
<pre>
 
{{button|in car|light}}
 
</pre>
 
Renders as: {{button|in car|light}}
 
[[Category:LFS button templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 09:04, 24 January 2024

Template Info-Icon.png

Template documentation

View - Edit

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|green}}

in car

Markup Renders as
{{button|Button with (parentheses)}}

Button with (parentheses)