Module talk:WikidataCoord: Difference between revisions

Content deleted Content added
No edit summary
Line 28:
:::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 19:23, 27 October 2020 (UTC)
::::1 a fourth-order place, {{Q|Q4708210}} area=0.48 km2 coordinates 10°19'55"N, 123°57'13"E<br /><nowiki>{{WikidataCoord|Q4708210|dim:1000|format=dms|display=i}}</nowiki> (display normally <code>display=it</code> but not here for testing)<br />{{WikidataCoord|Q4708210|dim:1000|format=dms|display=i}}<br />GeoHack - https://geohack.toolforge.org/geohack.php?pagename=Module_talk:WikidataCoord&params=10_19_55_N_123_57_13_E_dim:1000 – Correct<br />via Infobox it gives https://geohack.toolforge.org/geohack.php?pagename=Alang-alang,_Mandaue&params=10_19_55_N_123_57_13_E_type:city(13457)_region:PH-CEB – wrong, twice
::::
 
::::2 a third-order place, {{Q|Q315703}} area=191.50 km2 coordinates 9°53'N, 123°36'E<br /><nowiki>{{WikidataCoord|Q315703|type:adm3rd_dim:16000|format=dms|display=i}}</nowiki><br />{{WikidataCoord|Q315703|type:adm3rd_dim:16000|format=dms|display=i}}<br />direct GeoHack – https://geohack.toolforge.org/geohack.php?pagename=Module_talk:WikidataCoord&params=9_53_N_123_36_E_ – no cordinate parameters<br />via Infobox – https://geohack.toolforge.org/geohack.php?pagename=Argao&params=9.88_N_123.6_E_region:PH_type:city(72366) region is short, and should be given only for adm1st and adm2nd; type:city(pop) is not particularly helpful
::::
 
::::3 a second-order place, {{Q|Q13879}} area=337.49 km2 coordinates 9°11'N, 123°34'E<br /><nowiki>{{WikidataCoord|Q13879|type:adm2nd_region:PH-SIG_dim:64000|format=dms|display=i}}</nowiki><br />{{WikidataCoord|Q13879|type:adm2nd_region:PH-SIG_dim:64000|format=dms|display=i}}<br />direct GeoHack – https://geohack.toolforge.org/geohack.php?pagename=Module_talk:WikidataCoord&params=9_11_N_123_34_E_ – no coordinate parameters<br />via Infobox – https://geohack.toolforge.org/geohack.php?pagename=Siquijor&params=9.18_N_123.57_E_region:PH_type:adm1st_dim:8km region:PH is short; type:adm1st is wrong; dim:8km is wrong
::::
 
::::4 a first-order place {{Q|Q13669}} area=15,895.66 km2 coordinates 10°0'N, 123°30'E<br /><nowiki>{{WikidataCoord|Q13669|type:adm1st_region:PH-07_dim:256000|format=dms|display=i}}</nowiki><br />{{WikidataCoord|Q13669|type:adm1st_region:PH-07_dim:256000|format=dms|display=i}}<br />direct GeoHack – https://geohack.toolforge.org/geohack.php?pagename=Module_talk:WikidataCoord&params=10_0_N_123_30_E_ – no coordinate parameters<br />via Infobox – https://geohack.toolforge.org/geohack.php?pagename=Central_Visayas&params=10_N_123.5_E_region:PH_type:city(7396898) incomplete region; type:city(pop)
::::
 
::::I'll complete tomorrow. [[User:Not Samuel Pepys|Not Samuel Pepys]] ([[User talk:Not Samuel Pepys|talk]]) 00:23, 28 October 2020 (UTC)
<hr />
Line 49:
 
[[User:Not Samuel Pepys|Not Samuel Pepys]] ([[User talk:Not Samuel Pepys|talk]]) 09:18, 28 October 2020 (UTC)
:So what you are really complaining about is not that [[Module:WikidataCoord]] doesn't handle coordinates without seconds but that it does not include the template parameters in the call to {{tlx|coord}} when seconds are omitted. It would have been better for both of us had you simply said that at the beginning.
:
:Yep, {{tnull|coord}} parameters are not passed when seconds are omitted. This module did not initially support degrees/minutes; that was added later by another editor so I'll fix that. You do know that {{tnull|coord}} has {{para|qid}}, right? See these:
::<code><nowiki>{{coord|qid=Q4708210|dim:1000|format=dms|display=i}}</nowiki></code> → {{coord|qid=Q4708210|dim:1000|format=dms|display=i}}
::<code><nowiki>{{coord|qid=Q315703|type:adm3rd_dim:16000|format=dms|display=i}}</nowiki></code> → {{coord|qid=Q315703|type:adm3rd_dim:16000|format=dms|display=i}}
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:19, 28 October 2020 (UTC)