Difference between revisions of "Template:Old button"

From LFS Manual
Jump to navigationJump to search
m (add font color parameter)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
+
<includeonly><kbd class="nowrap" style="display: inline-block; color: {{{3|black}}}; padding: 1px 6px; border: 0; background-color: {{#switch: {{{2|}}}
--><span class="nowrap" style="color: {{{3|black}}}; padding: 3px 6px; border: 0; background-color: {{{2|#c9c9c9}}}; box-shadow: inset 2px 2px 2px rgba(255,255,255,0.5), inset -2px -2px 2px rgba(120,120,120,0.5); font-weight: bold; {{{style|}}}">{{{text|{{{1|Hello, World!}}}}}}</span><!--
+
| palegreen = #a1ffa1
--><noinclude>
+
| paleorange = #ffd3a1
== Template documentation ==
+
| paleviolet = #a1a1ff
This template allows you to illustrate LFS buttons in the "old" style, mostly used in the LFS Editor. For the new style, see template [[Template:Button|Button]].
+
| palecyan = #a1fafa
=== Parameters ===
+
| lightyellow = #ffffa1
* first (required): shown text
+
| yellow = #ffff00
* second (optional): colour for the button (hex), if not set, grey
+
| palered = #fa8d79
=== Examples ===
+
| green = #00ff00
<pre>
+
| lightgrey = #c9c9c9
{{Old button|main object}}
+
| darkgrey = #959595
</pre>
+
| paleyellow = #e0e08d
Renders as: {{Old button|main object}}
+
| grey = #b0b0b0
<pre>
+
| palepink = #faa1fa
{{Old button|layers|#a1a1ff}}
+
| orange = #ffa13b
</pre>
+
| {{{2|#c9c9c9}}}
Renders as: {{Old button|layers|#a1a1ff}}
+
}}; box-shadow: inset 2px 2px 2px rgba(255,255,255,0.5), inset -2px -2px 2px rgba(120,120,120,0.5); font-weight: bold; {{{style|}}}"><samp style="font-family: sans-serif">{{{text|{{{1|Hello, World!}}}}}}</samp></kbd>{{#switch: {{{2|}}}
 +
| #a1ffa1 = [[Category:Pages using old button with deprecated parameters]]
 +
|
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 09:30, 14 February 2026

Template Info-Icon.png

Template documentation

View - Edit

This template allows you to illustrate LFS buttons in the "old" style, mostly used in the LFS Editor. For the new style, see template Button.

Markup Renders as
{{Old button|main object}}

main object

Markup Renders as
{{Old button|layers|#a1a1ff}}

layers

Available named colours

Markup Renders as
{{Old button|lightgrey|lightgrey}}
{{Old button|grey|grey}}
{{Old button|darkgrey|darkgrey}}
{{Old button|palegreen|palegreen}}
{{Old button|green|green}}
{{Old button|palecyan|palecyan}}
{{Old button|paleviolet|paleviolet}}
{{Old button|palered|palered}}
{{Old button|orange|orange}}
{{Old button|paleorange|paleorange}}
{{Old button|lightyellow|lightyellow}}
{{Old button|yellow|yellow}}
{{Old button|paleyellow|paleyellow}}
{{Old button|palepink|palepink}}

lightgrey
grey
darkgrey
palegreen
green
palecyan
paleviolet
palered
orange
paleorange
lightyellow
yellow
paleyellow
palepink

See also