Template:TaginfoLinks

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

This template is used internally via Template:DescriptionLinks which should be modified and kept in sync with the list of active TagInfo sites.

Usage

Full parameter set in vertical format
Vertical list Prerequisites Brief instructions / notes
{{TaginfoLinks
| path = 
| aa = 
| ch = 
| cz = 
| fr = 
| gb = 
| hu = 
| ie = 
| in = 
| jp = 
| pl = 
}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 because other country-specific instances may stop working without prior notice.

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.) The following list is trancluded from Taginfo/Sites.

Code Country or region Taginfo site HTTP HTTPS Description
aa World taginfo.openstreetmap.org yes yes The main taginfo site. It contains OSM data for the whole planet and is updated daily.
ch Switzerland taginfo.openstreetmap.ch yes yes Taginfo instance showing tagging statistics only for Switzerland. Updated daily.
cz Czech Republic taginfo.openstreetmap.cz yes no Taginfo instance showing tagging statistics only for Czech Republic, based on the Geofabrik extract. Updated daily.
fr France taginfo.openstreetmap.fr yes yes Taginfo instance showing tagging statistics only for France mainland. Updated daily.
gb or uk United Kingdom taginfo.openstreetmap.org.uk yes no Taginfo instance showing tagging statistics only for Great Britain, based on the Geofabrik extract. Updated daily.
hu Hungary taginfo.openstreetmap.hu yes no Taginfo instance showing tagging statistics only for Hungary.
ie Ireland taginfo.openstreetmap.ie yes no Taginfo instance showing tagging statistics only for the island of Ireland. Updated daily.
in India taginfo.openstreetmap.in yes yes Taginfo instance showing tagging statistics only for India.
jp Japan taginfo.openstreetmap.jp yes no Taginfo instance showing tagging statistics only for Japan.
pl Poland taginfo.openstreetmap.pl yes no Taginfo instance showing tagging statistics only for Poland.
by Belarus by.taginfo.openstreetmap.ru no no Taginfo instance showing tagging statistics only for Belarus. Not working.
ee Estonia ee.taginfo.openstreetmap.ru no no Taginfo instance showing tagging statistics only for Estonia. Not working.
ht Haiti taginfo.haiti.fluv.io no no Taginfo instance showing tagging statistics only for Haiti. Not working.
it Italy taginfo.hanskalabs.net no no Taginfo instance showing tagging statistics only for Italy. Updated daily. Not working.
it Italy taginfo.openstreetmap.it no no 20 small Taginfo instances showing tagging statistics for the Italian regions. Updated daily. Not working.
ke Kenya taginfo.mapkibera.org no no Taginfo instance for Map Kibera covering Kibera, Mathare and Mukuru slums in Kenya. Not working.
lv Latvia lv.taginfo.openstreetmap.ru no no Taginfo instance showing tagging statistics only for Latvia. Not working.
ne Nepal nepal-taginfo.openstreetmap.hu no no Taginfo instance showing tagging statistics only for Nepal. Not working.
ru Russia taginfo.openstreetmap.ru no no Taginfo instance showing tagging statistics only for Russia. Not working.
se Sweden se.taginfo.openstreetmap.se no no Taginfo instance showing tagging statistics only for Sweden. Not working.
tw Taiwan taginfo.osm.kcwu.csie.org no no Taginfo instance showing tagging statistics only for Taiwan. Not working.
ua Ukraine ua.taginfo.openstreetmap.ru no no Taginfo instance showing tagging statistics only for Ukraine. Not working.
us United States taginfo.openstreetmap.us no no Taginfo instance showing tagging statistics only for United States of America (USA). Not working.

Links to sites with properly configured HTTPS access 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 'GB' taginfo link is always present, in addition to any others which may normally be listed:

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

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

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

Complete control can be taken over the list shown: the following instructions specify that all description boxes show just International and Eastern Europe links but any other country site:

span.taginfo { display: none !important; }
span.taginfo.aa,
span.taginfo.cz,
span.taginfo.hu,
span.taginfo.pl { 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 = 
| gb = 
| hu = 
| ie = 
| in = 
| jp = 
| pl = 
}}
taginfo
{{TaginfoLinks
| path = tags/sport=pétanque
| aa = yes
| ch = yes
| cz = yes
| fr = yes
| gb = yes
| hu = yes
| ie = yes
| in = yes
| jp = yes
| pl = yes
}}
taginfo · CH · CZ · FR · GB · HU · IE · IN · PL
{{TaginfoLinks
| aa = 
| ch = 
| cz = 
| fr = 
| gb = yes
| hu = 
| ie = 
| in = 
| jp =
| pl = 
}}
taginfo · GB
{{TaginfoLinks
| path = tags/fee=£1
| aa = 
| ch = 
| cz = 
| fr = yes
| gb = no
| hu = 
| ie = 
| in = 
| jp =
| pl = 
}}
taginfo · FR
{{TaginfoLinks
| aa = no
| ch = 
| cz = 
| fr = yes
| gb = yes
| hu = 
| ie = 
| in = 
| jp =
| pl = 
}}
 · FR · GB
{{TaginfoLinks
| cz = yes
| hu = yes
| pl = yes
}}
taginfo · CZ · HU · PL
{{TaginfoLinks
| path = tags/tourism=zoo
| cz = yes
| hu = yes
| pl = yes
}}
taginfo · CZ · HU · PL
{{TaginfoLinks
| path = keys/teryt:simc
}}
taginfo
{{TaginfoLinks
| path = tags/teryt:simc=0193016
}}
taginfo
{{TaginfoLinks
| path = keys/school:FR
}}
taginfo
{{TaginfoLinks
| path = tags/school:FR=élémentaire
}}
taginfo

See also