Template:Strategy

From OpenStreetMap Wiki
Jump to navigation Jump to search

Missing parameter |1 = in {{Strategy}}.

[Edit] [Purge] Template-info.svg Template documentation

Display an icon that represents a mapping strategy or strategy related markers (icons) for tutorials, tips & tricks and validation instructions.

Usage

Wikitext Produces Description
{{Strategy|general}} or {{Strategy|g}} general General Mapping Strategy icon
{{Strategy|detailed}} or {{Strategy|d}} detailed Detailed Mapping Strategy icon
{{Strategy|micro}} or {{Strategy|m}} micro Micro Mapping Strategy icon
{{Strategy|tutorial}} or {{Strategy|tu}}
Tutorial
Icon to mark tutorial section. The icon is a link to the Beginners'_guide (linking to correct translated page).
{{Strategy|tipstricks}} or {{Strategy|tt}}
Tips & Tricks
Icon to mark tips & tricks section.
{{Strategy|validation}} or {{Strategy|va}}
Validation
Icon to mark section with descriptions to validate and resolve errors and warnings. The icon is a link to JOSM/Validator (linking to correct translated page).
{{Strategy|endline}} or {{Strategy|el}}
Line to mark the end of a section with tutorial, tips & tricks or validation info.

Parameters

Use or display mapping strategy and related tutorials, tips & tricks and validation help icons on wiki pages.

Template parameters

ParameterDescriptionTypeStatus
Icon code1 code

1 letter for strategy codes, 2 letters for addtional section icons with start and endline, see usage above. May also be given as full text.

Default
none, if not given gives error message.
Example
g or general
Stringrequired
Resize2 Resize

{width}px / x{height}px / {width}x{height}px / upright. For details see Mediawiki help linked below.

Default
40px
Example
80px
Numberoptional
Language switchlang

Switches to translated template

Default
en
Example
lang = en
Stringoptional
Caption or Descriptiondesc caption

Caption or description for the icon. Is the only parameter for which the default values in the template needs to be translated for the translated templates. The captions are displayed as tooltips because no specific image format is specified.

Default
g = general / d = detailed / m = micro / tu = tutorial / tt = tips & tricks / va = validation
Example
general
Stringoptional

Translation

The only translatable text in the template are the default full text codes. Visible to users are only the captions (parameter desc), however, translated captions can be passed with desc=your translation to the template.

Related documentation

Help on parameter 2 or Resize: Mediawiki help on images. This same help page provides help on the used text-bottom and specific caption content and placement. alt text is not defined separately but derived from the caption. For linking to translated pages the Template:LL is used.