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}}}"}} style="background:#D3D3D3;
+
<kbd {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}}  
style="border: 1px solid; border-color: #D3D3D3 #D3D3D3 #D3D3D3 #D3D3D3; border-bottom-width: 2px; {{border-radius|3px}}
+
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><br><br>
+
{{#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>
Copy of [http://en.wikipedia.org/wiki/Template:Kbd Template:Kbd] From Wikipedia, the free encyclopedia
+
 
 +
'''Usage: '''
 +
&#123;&#123;man button&#124;button label}}
 +
When making a icon button, precede the [[Gramps_icon_set|icon image]] with a space (not the &amp;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]]:
 +
  &#123;&#123;man button| &#123;&#123;icon&#124; stock_edit}}}} {{man tooltip&#124;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 &nbsp; non-breaking space) to set the height of the button box and follow with a tooltip template.

example:

 {{man button| {{icon| stock_edit}}}} {{man tooltip|Edit the selected source}}
renders as STOCK_EDIT Edit the selected source

Based on Template:Kbd From Wikipedia, the free encyclopedia; mixed with Template:key press.