Difference between revisions of "Template:Man button"

From Gramps
m
m
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
'''Usage: '''
 
'''Usage: '''
 
  {{man button|button label}}
 
  {{man button|button label}}
 +
When making a icon button, precede the [[Gramps_icon_set|icon image]] with a space (not the   non-breaking space) to set the height of the button box and follow with a [[:Template:Man_tooltip|tooltip template]].
  
When making a icon button, precede the icon image with a space (not the  ) to set the height of the button box and follow with a 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;
 
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]].
 
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.