Template:JOSM Icon/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:JOSM Icon.
It contains usage information, categories and other content or metadata that is not part of the original template.

Usage

This template includes JOSM icons into wiki pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Icon namename 1

Name of the JOSM icon.

Example
autonode
Stringrequired
Icon sizesize 2

Icon size, in a format supported by image links.

Default
24px
Example
64px
Stringoptional
Horizontal alignmentalignment

Alignment of the image on wiki page.

Suggested values
right left
Stringoptional
Linklink

Page the user is led to upon clicking the icon.

Example
JOSM
URLoptional
Alternative textalt

Alternative text used by screen readers or when the image fails to load.

Stringoptional
Captioncaption

Caption displayed in the hover tooltip.

Stringoptional

Application

  • {{JOSM Icon|add}}

  • {{JOSM Icon|add|alignment=right}}
  • {{JOSM Icon|add|link=https://openstreetmap.org}}

  • {{JOSM Icon|add|48px}}

  • {{Button|{{JOSM Icon|add}} Add}}

Add

  • {{JOSM Icon|add|alt=Add an item}}

Add an item

  • {{JOSM Icon|add|caption=Add an item}}

Add an item

JOSM icon names

 To do: Create a JOSM Icons list page and include it here

See also