Template:Store-icon
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
editThis 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:
- 1 Santa Nella (Exit 418), store@example.com. There are several convenience stores adjacent to the off-ramp.
Parameters
editThis 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}}
⇒{{Store-icon|link=Wikivoyage:Links}}
⇒{{Store-icon|size=28px|link=https://www.ampm.com/}}
⇒
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
editAdd an icon showing a jug of milk and an apple to indicate a convenience store at the listing location
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon size | size | 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'
| Line | optional |
Link target | link | Specify a target for those who click on the icon to be taken to; icon is unlinked by default.
| Line | optional |
See also
edit- – {{EVCharger-icon}}
- – {{Food-icon}}
- – {{Fuel-icon}}
- – {{Handicap-icon}}
- – {{Lodging-icon}}
- – {{Toilet-icon}}