Difference between revisions of "Template:Old button"

From LFS Manual
Jump to navigationJump to search
m (added link to new button-style)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<!--
 
<!--
--><span class="nowrap" style="color: 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><!--
+
--><span class="nowrap" style="display: inline-block; color: {{{3|black}}}; padding: 1px 6px; border: 0; background-color: {{#switch: {{{2|}}}
 +
| palegreen = #a1ffa1
 +
| paleorange = #ffd3a1
 +
| paleviolet = #a1a1ff
 +
| palecyan = #a1fafa
 +
| lightyellow = #ffffa1
 +
| yellow = #ffff00
 +
| palered = #fa8d79
 +
| green = #00ff00
 +
| lightgrey = #c9c9c9
 +
| darkgrey = #959595
 +
| paleyellow = #e0e08d
 +
| grey = #b0b0b0
 +
| palepink = #faa1fa
 +
| orange = #ffa13b
 +
| {{{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><!--
 
--><noinclude>
 
--><noinclude>
== Template documentation ==
+
{{documentation}}
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]].
 
=== Parameters ===
 
* first (required): shown text
 
* second (optional): colour for the button (hex), if not set, grey
 
=== Examples ===
 
<pre>
 
{{Old button|main object}}
 
</pre>
 
Renders as: {{Old button|main object}}
 
<pre>
 
{{Old button|layers|#a1a1ff}}
 
</pre>
 
Renders as: {{Old button|layers|#a1a1ff}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 16:45, 28 January 2025

Hello, World!

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