Malline:GeoGroup

Kohteesta Wikipedia
Loikkaa: valikkoon, hakuun
Näytä koordinaatit OSM-kartalla
Näytä koordinaatit Google-kartalla
Vie koordinaatit KML-muodossa
Template-info.png
Mallineen ohje [näytä] [muokkaa] [päivitä]

Malline tekee linkkilaatikon karttapalveluihin siten, että artikkelissa olevat linkit näytetään kartalla. Malline on kopioitu enwikin GeoGroup-mallineesta.

Parametrit[muokkaa wikitekstiä]

article= The name of an article or a category, from which coordinates will be displayed:

{{GeoGroup|article=article name}}
{{GeoGroup|article=Category:category name}}

For a category example, see List of stations in London fare zone 2#List of stations)

articlee= Encoded name of the article. The encoding process here involves changing spaces to underscores ( _ ), everything else is taken care of by the urlencode magic word.

{{GeoGroup|article=article name|articlee=article_name}}

section= The section parameter arranges most of the links to use only coordinates in the named section of the article. This is useful to limit the number seen at one time in articles with many coordinates. For examples, see List of rapids of the Columbia River.in

{{GeoGroup|section=section name}}

A section-specific GeoGroup makes most sense placed within the section to which it refers.

No matter if the template is set to display coordinates of a faraway section, the GeoGroup box's wording will still assert it will display coordinates of "this section". Every section-specific GeoGroup box is worded "Map this section's coordinates...", and currently (March 2015) there is no way to change the wording presented.== Käyttö ==

Esimerkki[muokkaa wikitekstiä]

Näytä tämän osion koordinaatit OSM-kartalla
Näytä tämän osion koordinaatit Google-kartalla
Vie tämän osion koordinaatit KML-muodossa

Display the coordinates from a different section than this one (in current article): {{GeoGroup|section=Netherton Tunnel Branch Canal}}

  • Result: Works as intended, but GeoGroup box displays "this section".
Näytä tämän osion koordinaatit OSM-kartalla
Näytä tämän osion koordinaatit Google-kartalla
Vie tämän osion koordinaatit KML-muodossa

Display the coordinates from a different section than this one (in current article), when that section has no coordinates: {{GeoGroup|section=Linking}}

  • Result: Works: "sorry, no data to show", but GeoGroup box displays "this section".
Näytä koordinaatit "List of United States cities by population" OSM-kartalla
Näytä koordinaatit "List of United States cities by population" Google-kartalla
Vie koordinaatit KML-muodossa

Display all the coordinates in a different article: {{GeoGroup|article=List of United States cities by population}}

  • Result: Works
Näytä tämän osion koordinaatit "List of United States cities by population" OSM-kartalla
Näytä tämän osion koordinaatit "List of United States cities by population" Google-kartalla
Vie tämän osion koordinaatit KML-muodossa

Display just the coordinates in one section of a different article: {{GeoGroup|article=List of United States cities by population|section=Puerto Rico}}

  • Result: Works, but GeoGroup box displays "this section".
Näytä koordinaatit "List of United States cities by population#Puerto Rico" OSM-kartalla
Näytä koordinaatit "List of United States cities by population#Puerto Rico" Google-kartalla
Vie koordinaatit KML-muodossa

Try to display all coordinates in just one section of a different article, by giving a link to that section in the article: {{GeoGroup|article=List of United States cities by population#Puerto Rico}}

  • Result: Fails, as all coordinates in the article are displayed, not just the ones from the intended section. (So use "|section=" option.)
Näytä koordinaatit "Category:Rail transport stations in London fare zone 2" OSM-kartalla
Näytä koordinaatit "Category:Rail transport stations in London fare zone 2" Google-kartalla
Vie koordinaatit KML-muodossa

Display all coordinates in a category: {{GeoGroup|article=Category:Rail transport stations in London fare zone 2}}

  • Result: Works
Näytä koordinaatit "Category:Listed churches by grade in the United Kingdom" OSM-kartalla
Näytä koordinaatit "Category:Listed churches by grade in the United Kingdom" Google-kartalla
Vie koordinaatit KML-muodossa

Try to display all coordinates in a large parent category and all of its subcategories (using infinite recursion): {{GeoGroup|article=Category:Listed churches by grade in the United Kingdom|level=0}}

  • Result: Works
Näytä koordinaatit "Category:Listed churches by grade in the United Kingdom" OSM-kartalla
Näytä koordinaatit "Category:Listed churches by grade in the United Kingdom" Google-kartalla
Vie koordinaatit KML-muodossa

Display all coordinates in the large parent category to one level of subcategories (using recursion level 1): {{GeoGroup|article=Category:Listed churches by grade in the United Kingdom|level=1}}

  • Result: Works, properly showing no data.
Näytä koordinaatit "Category:Listed churches by grade in the United Kingdom" OSM-kartalla
Näytä koordinaatit "Category:Listed churches by grade in the United Kingdom" Google-kartalla
Vie koordinaatit KML-muodossa

Display coordinates in the large parent category to two levels of subcategories (using recursion level 2): {{GeoGroup|article=Category:Rail transport stations in London by fare zone|level=2}}

  • Result: Works, appears same as with Level=0, as there are just two levels of subcategories.

Display all coordinates in another large category and all its subcategories: {{GeoGroup|article=Category:Railway stations in London|level=0}}

Näytä koordinaatit "Category:Railway stations in London" OSM-kartalla
Näytä koordinaatit "Category:Railway stations in London" Google-kartalla
Vie koordinaatit KML-muodossa