Module talk:Mapframe
@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)
- 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)
- @আফতাব:
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)
- 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)- @আফতাব:
Fixed here with this edit - Evad37 [talk] 02:25, 30 May 2018 (UTC)
- @আফতাব:
- Hi @Evad37: just let you know that
- @Evad37: Thanks. --আফতাব (talk) 17:55, 27 May 2018 (UTC)
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)
- 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) - @JohnBlackburne: Fixed, and requested protection for Infobox mapframe at WP:RFPP - Evad37 [talk] 03:31, 31 July 2018 (UTC)
- 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)
Error using decimal format
@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)
- @Zzyzx11: Fixed - Evad37 [talk] 06:15, 28 August 2018 (UTC)