wikimaps-dev / mapwarper

Wikimedia Commons map georectifier and warper. See wikimaps_new branch.
http://warper.wmflabs.org
11 stars 1 forks source link

Warper adds parameters in wrong template #113

Closed Abbe98 closed 8 years ago

Abbe98 commented 8 years ago

Found the following file where parameters added by the Warper has ended up in the wrong template(Commons):

{{Map
|title=A map of the town of Lexington Middlesex County, Mass
|author=Walling, Henry Francis
|date=1853
|source=[http://ark.digitalcommonwealth.org/ark:/50959/x059c898m Digital Commonwealth]
|location=Lexington, MA
|scale=10632
|institution={{Institution:Boston Public Library}}
|dimensions={{Size|cm| warp_status=warped
| latitude=42.394155/42.5016334
| longitude=-71.2857071/-71.1656438
|87|70}}
}}
timwaters commented 8 years ago

OKay, this looks bad. Probably due to how it parses the template text. Will get on it asap

timwaters commented 8 years ago

For the moment wiki editing should be disabled to reduce any harm

timwaters commented 8 years ago

I added config param to disable wiki editing, whilst fixing.

Now new parameters will be added at the end of the Template list, and not stuck inside the existing ones. This should be sufficient.

I've also fixed 3 wiki pages with this borked edit

timwaters commented 8 years ago

Thanks @Abbe98 for noticing the bug! :dancers: