Template:Store-icon

Convenience store icon

[view] [edit] [history] [purge] Template documentation

Inserts a simple monochromatic icon inline with the text surrounding it that depicts a jug of milk and an apple, with a tooltip that reads "Convenience store available" shown on hover with the pointer. It is most often used to indicate that foodstuffs can be purchased at a map listing location for something other than such a store.

Usage edit

This template can be used to add an icon to a listing in a route article indicating that a vendor of some sort (convenience store, grocery market, etc.) with foodstuffs for sale can be found there. The template is invoked within the {{Listing}} template as follows:

Example edit

* {{Listing | type=buy
  | name=Santa Nella | alt=Exit 418
  | url=https://example.com/ | email=store@example.com
  | address= | lat=37.1069 | long=-121.0163 | directions=
  | phone= | tollfree= | fax=
  | hours= | price=
  | lastedit=2019-08-10
  | content=There are several convenience stores adjacent to the off-ramp. {{Store-icon}}
}}

…which generates the following map listing:

Parameters edit

This template accepts two optional parameters, listed below. To use them, they should be placed after the template name and before the closing double curly braces that ends the template transclusion call, with their desired value following the equality symbol (=). They may be used individually or in tandem, in any order. For example:

  • {{Store-icon|size=32px}}Convenience store icon
  • {{Store-icon|link=Wikivoyage:Links}}Convenience store icon
  • {{Store-icon|size=28px|link=https://www.ampm.com/}}Convenience store icon
Store-icon template parameters
Parameter Description
|size= Determines the size of the icon shown. Valid values must be an unsigned integer (whole numbers only, no negative values) indicating the length of one side in pixels, followed immediately by 'px'; the source image is square so the one value will determine the length of all four sides. If this parameter is unused, a default size of 20px is applied.
|link= Allows clicking the icon to take the user to another page, either on WikiVoyage, some other Wikimedia site with the use of an interwiki prefix, or an external page if a canonical URL with protocol is supplied; the icon is unlinked by default.

TemplateData edit

Add an icon showing a jug of milk and an apple to indicate a convenience store at the listing location

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Icon sizesize

Specify a size in pixels for the icon (the source is square so only one length is needed for all sides); include the affix 'px'

Default
20px
Example
24px
Lineoptional
Link targetlink

Specify a target for those who click on the icon to be taken to; icon is unlinked by default.

Example
https://www.example.com/
Lineoptional

See also edit