Difference between revisions of "Template:Button"

From LFS Manual
Jump to navigationJump to search
(Created page with "<!-- --><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...")
 
(added template documentation)
Line 2: Line 2:
 
--><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)|rgb(5,0,0,0.3)}}; border-radius: 4px; font-weight: bold;">{{{text|{{{1}}}}}}</span><!--
 
--><noinclude>
 
--><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>
 
<div>
 
Variants:
 
Variants:
 
{{button|default}}
 
{{button|default}}
 
{{button|light|light}}
 
{{button|light|light}}
</div>
+
</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}}
 
</noinclude>
 
</noinclude>

Revision as of 00:51, 14 December 2021

{{{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