Template:Strategy
Missing parameter |1 = in {{Strategy}}.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
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 Mapping Strategy icon | |
{{Strategy|detailed}} or {{Strategy|d}} | Detailed Mapping Strategy icon | |
{{Strategy|micro}} or {{Strategy|m}} | Micro Mapping Strategy icon | |
{{Strategy|tutorial}} or {{Strategy|tu}} | Icon to mark tutorial section. The icon is a link to the Beginners'_guide (linking to correct translated page). | |
{{Strategy|tipstricks}} or {{Strategy|tt}} | Icon to mark tips & tricks section. | |
{{Strategy|validation}} or {{Strategy|va}} | 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon code | 1 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.
| String | required |
Resize | 2 Resize | {width}px / x{height}px / {width}x{height}px / upright. For details see Mediawiki help linked below.
| Number | optional |
Language switch | lang | Switches to translated template
| String | optional |
Caption or Description | desc 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.
| String | optional |
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.