If you plug a URL into the Cite feature in VisualEditor on English Wikipedia that is for a 2nd or 3rd edition book, it creates a weird entry for the edition data.
For example:
http://www.amazon.com/Programming-Principles-Practice-Using-2nd/dp/0321992784/ref=sr_1_1?s=books&ie=UTF8&qid=1449880161&sr=1-1&keywords=Programming+2nd+edition
Creates:
Programming: Principles and Practice Using C++ (2 edition ed.). Upper Saddle River, NJ: Addison-Wesley Professional. 2014-05-25. ISBN 9780321992789.
This is because the Citoid API returns "2nd edition" as the edition, but the Cite Book template on English Wikipedia expects just "2nd".
- Strip "edition" from mediawiki format in backend and leave as numeral (i.e. '2')
- Add ordinal indicators in en wiki, if value is numeral (i.e. convert '2' to '2nd')
- Bonus points, fix other language templates :)