Difference between revisions of "Template:Man button"
From Gramps
m |
m |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <kbd {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} | + | <kbd {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} |
| − | style="border: 1px solid; | + | style="border: 1px solid; color:#5e4638; background-color: #f9f9f9; border-bottom-width: 2px; {{border-radius|3px}} |
| − | {{#if:{{{spacing|}}}| padding-left:0.4em; padding-right:0.4em;| letter-spacing:0.1em; padding-left:0.5em; padding-right:0.4em;}}{{#if:{{{style|}}}|{{{style}}}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}" xml:lang="{{{lang}}}"}} {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1}}}</kbd><noinclude> | + | {{#if:{{{spacing|}}}| padding-left:0.4em; padding-right:0.4em;| letter-spacing:0.1em; padding-left:0.5em; padding-right:0.4em;}}{{#if:{{{style|}}}|{{{style}}}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}" xml:lang="{{{lang}}}"}} {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1}}}</kbd><noinclude> |
| − | + | ||
| + | '''Usage: ''' | ||
| + | {{man button|button label}} | ||
| + | When making a icon button, precede the [[Gramps_icon_set|icon image]] with a space (not the &nbsp; non-breaking space) to set the height of the button box and follow with a [[:Template:Man_tooltip|tooltip template]]. | ||
| + | |||
| + | [[Gramps_{{man version}}_Wiki_Manual_-_Categories|example]]: | ||
| + | {{man button| {{icon| stock_edit}}}} {{man tooltip|Edit the selected source}} | ||
| + | :renders as {{man button| {{icon|stock_edit}}}} {{man tooltip|Edit the selected source}} | ||
| + | Based on [http://en.wikipedia.org/wiki/Template:Kbd Template:Kbd] From Wikipedia, the free encyclopedia; | ||
| + | mixed with [[Template:Key_press/core|Template:key press]]. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> | ||
Latest revision as of 18:48, 24 July 2023
{{{1}}}
Usage:
{{man button|button label}}
When making a icon button, precede the icon image with a space (not the non-breaking space) to set the height of the button box and follow with a tooltip template.
{{man button| {{icon| stock_edit}}}} {{man tooltip|Edit the selected source}}
- renders as
Edit the selected source
Based on Template:Kbd From Wikipedia, the free encyclopedia; mixed with Template:key press.