Template talk:Infobox islands
This is the talk page for discussing improvements to the Infobox islands template. |
|
Archives: 1, 2Auto-archiving period: 14 days |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
|
||
This page has archives. Sections older than 14 days may be automatically archived by Lowercase sigmabot III when more than 3 sections are present. |
How to suppress the OSM map
editHello 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)
- @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)
- What would the coordinate location be for an entire archipelago? CMD (talk) 13:48, 10 April 2024 (UTC)
- @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)
- Thanks very much. CMD (talk) 13:57, 10 April 2024 (UTC)
- @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)
- What would the coordinate location be for an entire archipelago? CMD (talk) 13:48, 10 April 2024 (UTC)
Add territorial seas info?
editIt 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)
- 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)
Template-protected edit request on 10 July 2024
editIt is requested that an edit be made to the template-protected template at Template:Infobox islands/length. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Please add to Template:Infobox islands/length
|{{#if:{{{nm|}}}
<!--
nm and no mi and no km
-->
|{{formatnum:{{{nm}}}}} nm ({{#expr: ({{formatnum:{{{nm}}}|R}})*1.150779 round ({{precision|{{formatnum:{{{nm}}}|R}}}}-0)}} mi; {{#expr: ({{formatnum:{{{nm}}}|R}})*1.852 round ({{precision|{{formatnum:{{{nm}}}|R}}}}-0)}} 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)
- 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)
- 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)
- I've created Template:Infobox islands/length/sandbox