Module talk:Mapframe

This is an old revision of this page, as edited by Rehman (talk | contribs) at 13:32, 9 March 2019 (Template:Infobox power station/sandbox: +). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 6 years ago by Rehman in topic Template:Infobox power station/sandbox

@Evad37: For bnwiki, i want to add bengali parameter but at same time i don't want to remove english parameter. How can i add this {{{title|{{{শিরোনাম|}}}}}} in lua? (this isn't working)--আফতাব (talk) 16:50, 26 May 2018 (UTC)Reply

Its not yet possible without heavily modifying the module code. But storing alternate parameter names in a table is a good idea, I just need to make a helper function so the lua code knows what to do with them. - Evad37 [talk] 01:19, 27 May 2018 (UTC)Reply
@আফতাব:  Done here [1], you can make a similar edit on bnwiki and then it should work - Evad37 [talk]
@Evad37: Thanks. --আফতাব (talk) 17:55, 27 May 2018 (UTC)Reply
Hi @Evad37: just let you know that coord parameter does not support aliases. coord = { "coord", "anything" }, (line 20) gives error. --আফতাব (talk) 18:50, 29 May 2018 (UTC)Reply
@আফতাব:  Fixed here with this edit - Evad37 [talk] 02:25, 30 May 2018 (UTC)Reply

Sandbox error??

There seems to be an error at The Simpsons house in Module:Mapframe/sandbox. That should not be happening, not just the error but in particular the transclusion of the sandbox, as the sandbox or a template or module is normally an unprotected page that anyone can edit, and that editors are encouraged to try things out in even if they break things. Any code in there therefore is especially vulnerable and should not be used in articles, especially in templates that are already used in a large number of articles. Pinging Evad37 who seems to be the one working on this.--JohnBlackburnewordsdeeds 02:32, 31 July 2018 (UTC)Reply

Thanks for alerting me. I've turned off the mapframe in that article with |mapframe=no, and fixed the code that was loading the sandbox version of the module by mistake (in Module:Infobox mapframe). The error itself comes from this module not being prepared for the coordinates property on a Wikidata item being set to 'no value'. I'm looking into fixing this now. - Evad37 [talk] 02:54, 31 July 2018 (UTC)Reply
@JohnBlackburne:   Fixed, and requested protection for Infobox mapframe at WP:RFPP - Evad37 [talk] 03:31, 31 July 2018 (UTC)Reply
Thanks. I noticed your changes already to the Simpsons house article. An interesting test case as there can’t be many other articles for wholly fictional buildings.--JohnBlackburnewordsdeeds 03:35, 31 July 2018 (UTC)Reply

Error using decimal format

 
Using DD format: 37.7891838, -122.4033522
 
Using DMS: 37° 47′ 21.06″ N, 122° 24′ 12.07″ W

@Evad37: or someone else watching this module: Could you take at look at this? There currently seems to be an error when computing the latitude using the decimal format. In this example right here, when entering 37.7891838, -122.4033522 (the coordinates for the Wikimedia Foundation headquarters), the map currently displays instead 37.8212, -122.4033. The DMS equivalent seems fine. Thanks. Zzyzx11 (talk) 05:51, 28 August 2018 (UTC)Reply

@Zzyzx11:   Fixed - Evad37 [talk] 06:15, 28 August 2018 (UTC)Reply
it is displaying +dec_lat when the input is a -dec_lat, Japan instead of Mitagong Dave Rave (talk) 08:23, 12 November 2018 (UTC)Reply

Template:Infobox power station/sandbox

Hello. Can someone help me figure out what is causing this error? I can't seem to figure it out... Basically, I'm trying to instate these functions, but I don't know which part is causing the errors:

  1. If coordinates are not set locally, it should fetch from wikidata
  2. If |location_map=no the display of ___location map (i.e. mapframe) should be suppressed
  3. If no coordinates are set locally nor on wikidata, the display of ___location map (i.e. mapframe) should be suppressed, and the respective caption parameter should not be displayed.

Thanks in advance! Rehman 13:19, 9 March 2019 (UTC)Reply