Ŝablono-Diskuto:Koord

Tiu ĉi ŝablono estas aperigata dufoje en unu paĝo. Unuanfojon post noto Koordinatoj kaj duanfojon tute dekstre supre. Kial? Ekz. en Satu Mare Petr Tomasovsky@diskkont 17:51, 3. Apr 2008 (UTC)

En Satu Mare estas uzata {{koordinatoj gm}} kiu mem vokas la ŝablonon {{koord}} kun por parametro montru defaŭlta valoro entekste,titolo kiu tute celite aperigas la koordinatojn kaj en la teksto, kie la ŝablono estas, kaj en la supro de la paĝo (tion signifas "montru=titolo"). Se tio ne estas dezirata, sufiĉas aldoni |montru=entekste. Vidu la dokumentadon. Arno Lagrange @ 18:23, 3. Apr 2008 (UTC)

Ligilo al angla vikipedio redakti

Saluton. Mi ĵus rimarkis, ke la ligilo al la angla vikipedio ne ĝustas. Devas esti en:Wikipedia:WikiProject Geographical coordinates. Mi trovis ĝin en la angla versio de ĉiu tiu ŝablono. Kore --Tlustulimu 19:26, 22. Jun 2008 (UTC)

Nova ligilo redakti

Ŝajnas, ke la ŝablono devas ligi al http://sable.toolserver.org/, ne plu al http://toolserver.org/ NicoRay 09:36, 21. Aŭg 2008 (UTC)

Mi ĵus sur http://sable.toolserver.org/, sed ĝi ne estas trovata. Kore --Tlustulimu 09:48, 21. Aŭg 2008 (UTC)

My apologies for writing in English.

Would it be possible to change |nomo={{{nomo|}}}| to |nomo={{{nomo|{{{PAGENAME}}}}}}|? --Erik Warmelink 09:06, 10. Dec 2010 (UTC)

Dankon, merci. --Erik Warmelink 19:12, 10. Dec 2010 (UTC)
O, help. That should probably have been |nomo={{{nomo|{{PAGENAME}}}}}| (that is only two '{'/'}' around PAGENAME, [the global PAGENAME, not the parameter]). I am so sorry, there was a reason to protect {{coord}} and I asked to make it worse. --Erik Warmelink 19:33, 10. Dec 2010 (UTC)
Mi faris la korekton proponitan de Erik (I made the correction Erik suggested) ĉar ĉiuj mapaj paĝoj aperis kun la titolo {{{PAGENAME}}}. Nun ĉio ŝajnas en ordo. Mi petas pardonon, ke mi ŝanĝis la ŝablonon sen antaŭa diskuto, sed estis nur korekto de antaŭa ŝanĝo, kaj la eraro ja estis iom ĝena. – Umbert' 20:46, 10. Dec 2010 (UTC)
Dankon Umbert' ke vi korektis, mi fakte ne kontrolis ke la ŝanĝo entenis eraron kiu havas sekvojn. Mi kunrespondecas nezorgan ŝanĝon. Nu bone ke vi rapide riparis. Arno Lagrange @ 22:35, 10. Dec 2010 (UTC)
Dankon Umbert'.
I will come back to ask for more changes, but I will not have much time this weekend. Until now, I know of two changes that I will probably propose
  1. in Ŝablono:Koord/enigu/gms: change |name={{{name|}}}}}{ to |nomo={{{nomo|}}}}}{ (that is: change name to nomo twice), just like it is in Ŝablono:Koord/enigu/gm and Ŝablono:Koord/enigu/g. This change seems uncontroversial, but I made an error before, so don't trust me. An example which should get &title=Enschede in the geohack-URL is Enschede.
      Farite AL @
  2. in either Ŝablono:Koord/situo sur mapo or Ŝablono:Koord/ligilo, the same change would be nice. In Ŝablono:Koord/situo sur mapo it would be exactly the same change as in Ŝablono:Koord, but perhaps other ŝablonon also call Ŝablono:Koord/ligilo and then these ŝablonojn should be changed too (but they aren't protected). In Ŝablono:Koord/ligilo the change would be somewhat different (perhaps {{#if:{{{nomo|}}}|&title={{urlencode:{{{nomo}}}}}}} to &title={{urlencode:{{{nomo|{{PAGENAME}}}}}}}). Which one to choose, also depends on {{#if:{{{nomo|}}}|<span style="display:none"> (<span class="fn org">{{{nomo|}}}</span>)</span></span>|}}]; I don't know whether it would be good to have that (invisible) text when the name is chosen by default. For either change, Wietmarschen is a test case.
      Farite &title={{urlencode:{{{nomo|{{PAGENAME}}}}}}} I don't quite understand what would {{#if:{{{nomo|}}}|<span style="display:none"> (<span class="fn org">{{{nomo|}}}</span>)</span></span>|}}] do. In which page ? AL @ 09:38, 11. Dec 2010 (UTC)
    I have no idea either. That «style="display:none"» might mean that it is for programs and/or bots. If I don't know why something is done, I'd rather not change it. I found some more leads, eo.wiki has both {{KoordinatojURL}} and {{Koord URL}}, the first one does not have &pagename={{FULLPAGENAMEE}}, the second links to the obsolete http://tools.wikimedia.de/~magnus/geo/geohack.php. At no:Mal:Koor URL I have been collecting interwikis to Coord URL-style templates, almost all of them have &pagename={{FULLPAGENAMEE}}. I think {{KoordinatojURL}} and {{Koord URL}} should eventually be merged, but I don't know how/where that is normally asked at eo.wiki (and I can't write Esperanto).
    I'd rather have some others also look at it, but I would propose that in {{KoordinatojURL}} language=eo&params= is changed to language=eo&pagename={{FULLPAGENAMEE}}&params= (that is: add &pagename={{FULLPAGENAMEE}} between language=eo and &params= --Erik Warmelink 20:14, 14. Dec 2010 (UTC)
This link (also with other coordinates) should show no more [empty string]'s, it takes time for the underlying database to be refreshed though. I found Ŝablono:Koordinatoj that way, which isn't used heavily and unprotected. I could test some ideas for the 2nd change on that ŝablonoj before making more requests.
There still now are [empty string] AL @
That is normal, the database is refreshed daily, I think. Enschede and Wietmarschen now tell their name to geohack, so their name will be displayed after the next update, I hope. Drenthe doesn't tell its name, which is like I expected. Thanks again. Dankon. --Erik Warmelink 11:03, 11. Dec 2010 (UTC)
It is much better now, only Drenthe (already noted above), Flughaveno Stadskanaal and Schoonebeek are still labeled [empty string] and all three do use {{koordinatoj}}. The link for the same area on ruwiki only has italics (like this) for Элп which is mentioned in the article ru:Элпская культура. That's only appearance, I'll probably ask for other changes later, but there's no hurry, I think. --Erik Warmelink 21:29, 12. Dec 2010 (UTC)
It's OK now. It remains only a few [empty string]. I replaced {{koordinatoj}} by {{koord}} in the two pages you mentionned. It remaind one more place at 52° 59′ 00″ Nordo 6° 33′ 00″ Oriento / 52.98333 °N, 6.550000 °O / 52.98333; 6.550000 (mapo) Assen Arno Lagrange @ 07:50, 13. Dec 2010 (UTC)
Hmm, that "should" was a bad choice of words, I wanted to say that "area overviews" from http://toolserver.org/~dispenser/cgi-bin/locateCoord.py are a good test whether we have found all cases. Well, Assen remains. See the stuff on "&pagename={{FULLPAGENAMEE}}" above for other ideas. --Erik Warmelink 20:14, 14. Dec 2010 (UTC)
Once again my apologies for the trouble I am causing, and thanks a lot for your help. --Erik Warmelink 06:46, 11. Dec 2010 (UTC)
No matter. I thank you, you try to improve things here. Arno Lagrange @ 09:38, 11. Dec 2010 (UTC)
We all are here to improve wikipedia. --Erik Warmelink 11:03, 11. Dec 2010 (UTC)
That did make the name of the articles show up at some places, but only at some places. I tested the "&pagename={{FULLPAGENAMEE}}" at Ŝablono:Koordinatoj artikolo and it does seem to work better (or less bad, perhaps). http://toolserver.org/~dispenser/cgi-bin/locateCoord.py?dbname=coord_eowiki&lon=34.650278&lat=31.797778&range_km=100 gives 3 names in "unslanted"/non-"italic" font and http://toolserver.org/~dispenser/view/File_viewer#log:coord-eowiki.log mentions some names. My proposal of 20:14, 14. Dec 2010 (UTC) seems to work. --Erik Warmelink 23:32, 21. Jan 2011 (UTC)

Mi konstatas malbonan funkciadon de WikiMiniAtlaso: per alklako de la tergloba ikono devas montriĝi WMA. Tio bone funkcias en multaj kazoj kaj ne plu en iuj precizaj kazoj:

Ĉu iu kapablas ripari tion ? Arno Lagrange @ 10:42, 13. Dec 2010 (UTC)

Artikolo Fajrovulpo Google Chrome
Internet Explorer
en la titolo en la teksto ĉie
en:Chiemsee Jes Jes Jes
Ŝablono:Koord/dokumentado Jes Jes Jes
Chiemsee_(lago) Jes Ne Jes
Listo_de_ZEO-j_en_Nederlando Jes Ne Jes
Saluton, Arno. Mi ĵus testis la atlason en la teksto de la menciitaj artikoloj. Ĝi funkcias per Fajrvulpo 18.0.1. Do, ne devas esti korektata io tie. Ĉu vi ankoraŭ scias, kiu versio de Fajrvulpo havis problemon? --Tlustulimu (diskuto) 09:52, 2 Feb. 2013 (UTC)

Update the template for more features redakti

Hello, you may have heard in the news that recent features let users Go on a Wikipedia scavenger hunt with Wikipedia Nearby. For those features to work, however, you need templates like this to give MediaWiki the coordinates using the GeoData syntax.
In short, I suggest you to copy or adapt the last code of w:en:Template:Coord, with w:en:Module:Coordinates etc. If you need help, you can probably ask en.wiki users. Nemo 14:41, 10 Jun. 2013 (UTC)

Hello, Nemo. Thank you for your tip. Greetings --Tlustulimu (diskuto) 16:09, 29 Jun. 2013 (UTC)

Baldaŭ ĝia kodo estos aktualigata, ĉar ni jam havas la bezonatan Lua-modulon

Mi jam okupiĝas ekde la 27-a de junio pri la Lua-modulo {{Coordinates}}. Hodiaŭ mi jam sukcesis aranĝi provejan version, kiu bone subtenas la esperantajn parametrojn montru kaj formato de la ŝablono {{Koord}}. Sed mi ankoraŭ devos trovi solvon por la parametro nomo, dum ke la angla name jam ĝuste funkcias. --Tlustulimu (diskuto) 16:09, 29 Jun. 2013 (UTC)

Problemo kun la nuna kodo de la ŝablono redakti

Saluton. Mi ĵus volis anstataŭigi {{Koordinatoj teksto}} per {{Koord}} en Hindia plato. Sed subite dum la antaŭrigardo aperis erarmesaĝo. Mi volis uzi la jenan kodon:

{{Koord|3.316|N|95.854|E|type:landmark}}

Ĝi redonas fuŝon, kvankam simila ekzemplo estas en la dokumentado kaj tie funkcias bone: 3° 18′ 58″ Nordo 95° 51′ 14″ Oriento / 3.316 °N, 95.854 °O / 3.316; 95.854 (mapo) Mi pensas, ke eble estas iu problemo pri la precizeco de la numeroj. Do, mi ŝanĝis al la jena varianto:

{{Koord|3|18|58|N|95|51|14|E|type:landmark}}

kaj ĝi funkcias bone: 3° 18′ 58″ N 95° 51′ 14″ O / 3.31611 °N, 95.85389 °O / 3.31611; 95.85389 (mapo) Pro la unua fuŝaĵo mi proponas ekuzi la kodon el {{Koord/provejo}} por {{Koord}}. Vidu la unuan ekzemplon per ĝi:

{{Koord/provejo|3.316|N|95.854|E|type:landmark}}

Ĝi ne estas montrata fuŝe (3° 18′ 58″ Nordo 95° 51′ 14″ Oriento / 3.316 °N, 95.854 °O / 3.316; 95.854), kvankam la parametroj estas tute la samaj kiel supre. La nova kodo estas pli tolerema je uzaj variantoj. Do, mi pensas, ke ni finfine ekuzu tion. Ĉu estas iuj proponoj? --Tlustulimu (diskuto) 15:11, 1 Jul. 2013 (UTC)

La nova kodo en {{Koord/provejo}} eĉ superfluigas la apartan ŝablonon {{Koord2}}. Vidu la ekzemplojn:
* {{Koord2|47.370278/8.548056/type:landmark|formato=gms}}
* {{Koord/provejo|47.370278/8.548056/type:landmark|formato=gms}}
* {{Koord2|47/22/13/N/08/32/53/E/type:landmark|formato=gms}} 
* {{Koord/provejo|47/22/13/N/08/32/53/E/type:landmark|formato=gms}} 
fariĝas
Do, jen plia kialo por la ŝanĝo de la ŝablona kodo al la nova varianto kun Lua-modulo. La modulo nur havas fuŝeton en listoj. La kialon mi ankoraŭ serĉos. En la ŝablona ekspandilo videblas, ke ial aperas linisalto post la listera punkto. Ĉitie ĝi malaperas, verŝajne, ĉar "Tidy" forigas ĝin kune kun la malplena listero. --Tlustulimu (diskuto) 20:07, 1 Jul. 2013 (UTC)
La fuŝeto ne okazis en la modulo, sed je la komenco de la proveja versio de la ŝablono. Tie estis troa linisalto, kiun mi ĵus forigis. --Tlustulimu (diskuto) 20:21, 1 Jul. 2013 (UTC)
Reiri al la paĝo "Koord".