Template talk:Infobox islands

From WikiProjectMed
Jump to navigation Jump to search

How to suppress the OSM map

Hello all, I was wondering if anyone knows how to suppress the automatic OSM map. I'm not sure how it works, but at Malay Archipelago it is for some reason displaying a map of Belitung, which is deeply unhelpful. CMD (talk) 08:55, 10 April 2024 (UTC)[reply]

@Chipmunkdavis To suppress OSM you can use the argument | mapframe-id = none . But to correct the map, you should correct wikidata coordinate location additionally you can set for OSM area the wikidata-id. Cheers, Hooman Mallahzadeh (talk) 10:06, 10 April 2024 (UTC)[reply]
What would the coordinate location be for an entire archipelago? CMD (talk) 13:48, 10 April 2024 (UTC)[reply]
@Chipmunkdavis Here https://www.wikidata.org/wiki/Q208643 at coordinate location, I updated it to 2°4'50.09462"S, 126°32'48.79298"E Hooman Mallahzadeh (talk) 13:54, 10 April 2024 (UTC)[reply]
Thanks very much. CMD (talk) 13:57, 10 April 2024 (UTC)[reply]

Add territorial seas info?

It would be helpful to add information about maritime claims to the infobox. Particularly outside the territorial seas of a nation, islands like Navassa Island or Clipperton Island are used to stake out exclusive economic zones for fishing, mineral exploration, etc. Suggest adding under geography two new fields: Territorial Sea and EEZ. One tricky bit is that these may be reported as a radius (mi, nm, or km) or as an area (km2, sqmi), so a few options are probably needed to support different source units (for example, eez_mi=, eez_nm=, eez_km=, eez_area_sqmi=, eez_area_km2=, etc.). Corresponding footnote fields would be needed too. —Carter (Tcr25) (talk) 15:47, 8 July 2024 (UTC)[reply]

I think I have it working in the sandbox. The only issue that someone needs to add nautical miles (nm) to Template:Infobox islands/length; other than that, it seems to be working in Example 2 in the test cases. —Carter (Tcr25) (talk) 19:35, 8 July 2024 (UTC)[reply]

Template-protected edit request on 10 July 2024

Please add to Template:Infobox islands/length

|{{#if:{{{nm|}}}<!--nm and no mi and no km-->
|{{formatnum:{{{nm}}}}}&nbsp;nm ({{#expr: ({{formatnum:{{{nm}}}|R}})*1.150779 round ({{precision|{{formatnum:{{{nm}}}|R}}}&#125;-0)}}&nbsp;mi; {{#expr: ({{formatnum:{{{nm}}}|R}})*1.852 round ({{precision|{{formatnum:{{{nm}}}|R}}}&#125;-0)}}&nbsp;km)

I believe that is the correct code to add support for nautical miles. Once this is confirmed as working, please also see the comment above. —Carter (Tcr25) (talk) 14:57, 10 July 2024 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Template:Infobox islands/sandbox and Template:Infobox islands/length/sandbox. —⁠andrybak (talk) 22:25, 14 July 2024 (UTC)[reply]
I've created Template:Infobox islands/length/sandbox and it's not displaying any errors, but I'm not sure how to get testcases to call it. The above #Add territorial seas info? request is already in the sandbox and testcases shows it working well.
I've forced testcases to call the sandbox version of /length and it seems to be working other than the template not liking it if you put in multiple units (i.e., mi and km), but that seems to be the case no matter what. I do wonder if it would make sense to simplify /length and /area to use {{convert}} instead of magic words. It would definitely make it simpler to identify how to expand functionality. ——Carter (Tcr25) (talk) 14:59, 16 July 2024 (UTC)[reply]