Malline:GeoGroup
Malline tekee linkkilaatikon karttapalveluihin siten, että artikkelissa olevat linkit näytetään kartalla. Malline on kopioitu enwikin GeoGroup-mallineesta. Malline lakkasi toimimasta 2019 ja ensiapuna se muutettiin toimimaan {{Public art wikishoot me -linkki}}-mallineen kautta.
Parametrien toimivuus 2019
muokkaa- article
- Toimii mikäli kyseessä on sivu fiwikissä. Luokkien näyttäminen ei toimi.
- articlee
- Ei toimi
- section
- Ei toimi
- level
- Ei toimi
Parametrien käytön seuranta
muokkaa- article-tietolaatikon articlee-parametria käyttävät artikkelit ( 0 )
- article-tietolaatikon project-parametria käyttävät artikkelit ( 0 )
- article-tietolaatikon section-parametria käyttävät artikkelit ( 9 )
- article-tietolaatikon level-parametria käyttävät artikkelit ( 0 )
Parametrit
muokkaaarticle= The name of an article or a category, from which coordinates will be displayed:
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
muokkaaDisplay 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".
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".
Display all the coordinates in a different article:
{{GeoGroup|article=List of United States cities by population}}
- Result: Works
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".
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.)
Display all coordinates in a category:
{{GeoGroup|article=Category:Rail transport stations in London fare zone 2}}
- Result: Works
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
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.
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}}