Template:TaginfoLinks

From OpenStreetMap Wiki
(Redirected from User:Moresby/TaginfoLinks)
Jump to: navigation, search
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

Full parameter set in vertical format
Vertical list Prerequisites Brief instructions / notes
{{TaginfoLinks
| path = 
| aa   = 
| ch   = 
| cz   = 
| fr   = 
| hu   = 
| ie   = 
| in   = 
| pl   = 
| ru   = 
| se   = 
| uk   = 
}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
yes/no
yes/no
yes/no
yes/no
yes/no
yes/no
yes/no
yes/no
yes/no
yes/no
yes/no
 
  • If a field name is listed in the Prerequisites column it is a prerequisite for the field to the left.

Parameters

The following parameters are recognised:

  • path: If present, this text is added to the main taginfo URL to allow a specific page or feature to be linked. It may be necessary to urlencode any non-ASCII content, although this seems to be taken care of automatically. (See examples for further details.)
  • aa: If yes, or no value specified, a link will be shown to the main, global taginfo site. If no, no link will be show. However, it's probably not a good idea to change this.

Country choices

The following parameters specify which country-specific taginfo sites will be linked to. In each case, specifying yes will cause the link to be shown, no (or no value) will cause it not to be shown. (See User configuration section for additional options.)

Parameter Country name taginfo site
ch Switzerland http://taginfo.openstreetmap.ch/
cz Czech Republic http://taginfo.openstreetmap.cz/
fr France http://taginfo.openstreetmap.fr/
hu Hungary http://taginfo.openstreetmap.hu/
ie Ireland http://taginfo.openstreetmap.ie/
in India http://taginfo.openstreetmap.in/
pl Poland http://taginfo.openstreetmap.pl/
ru Russia http://taginfo.openstreetmap.ru/
se Sweden http://se.taginfo.openstreetmap.se/
uk United Kingdom http://taginfo.openstreetmap.org.uk/

The countries are listed in decreasing order of population, with sites with outdated data relegated to the end of the list. Links to sites with properly configured HTTPS access (currently only worldwide Taginfo) are protocol-relative

User configuration

For users who want more personal control over which taginfo sites are linked, these can be set in the user's personal wiki CSS page.

The following instruction ensures that the 'uk' taginfo link is always present, in addition to any others which may normally be listed:

span.taginfo.uk { display: inline !important; }

The following instruction ensures that the 'uk' taginfo link is never present, even when it would otherwise be present:

span.taginfo.ru { display: none !important; }

Complete control can be taken over the list shown: the following instructions specify that all description boxes show just world and eastern Europe links:

span.taginfo { display: none !important; }

span.taginfo.ua,
span.taginfo.cz,
span.taginfo.by,
span.taginfo.lv,
span.taginfo.ee { display: inline !important; }

Examples

Please note that these examples will be affected by any changes you have made to your personal CSS page (see User configuration section above).

Wikitext Produces
{{TaginfoLinks}}
taginfo
{{TaginfoLinks
| path = keys/building
| aa   = 
| ch   = 
| cz   = 
| fr   = 
| hu   = 
| ie   = 
| in   = 
| pl   = 
| ru   = 
| se   = 
| uk   = 
}}
taginfo
{{TaginfoLinks
| path = tags/sport=pétanque
| aa   = yes
| ch   = yes
| cz   = yes
| fr   = yes
| hu   = yes
| ie   = yes
| in   = yes
| pl   = yes
| ru   = yes
| se   = yes
| uk   = yes
}}
taginfo, CH, CZ, FR, GB, HU, IE, IN, PL, RU, SE
{{TaginfoLinks
| aa   = 
| ch   = 
| cz   = 
| fr   = 
| hu   = 
| ie   = 
| in   = 
| pl   = 
| ru   = 
| se   = 
| uk   = yes
}}
taginfo, GB
{{TaginfoLinks
| path = tags/fee=£1
| aa   = 
| ch   = 
| cz   = 
| fr   = 
| hu   = 
| ie   = 
| in   = 
| pl   = 
| ru   = 
| se   = 
| uk   = yes
}}
taginfo, FR
{{TaginfoLinks
| aa   = no
| ch   = 
| cz   = 
| fr   = yes
| hu   = 
| ie   = 
| in   = 
| pl   = 
| ru   = 
| se   = 
| uk   = yes
}}
, FR, GB
{{TaginfoLinks
| ru = yes
| ua = yes
| cz = yes
| by = yes
| lv = yes
| ee = yes
}}
taginfo, CZ, RU
{{TaginfoLinks
| path = tags/tourism=zoo
| ru = yes
| ua = yes
| cz = yes
| by = yes
| lv = yes
| ee = yes
}}
taginfo, CZ, RU

See also