User:Johnuniq/Convert problems

The following problems will need to be fixed either before or after Module:Convert is used to implement Template:Convert. These have been found by extracting all converts from all articles in a 44 GB dump showing the wikitext in all pages as at 4 November 2013 (enwiki-20131104-pages-articles.xml). Scanning all articles finds many examples of broken wikitext so the following may not be complete, however it is likely to be reasonably correct, although it will rapidly become out of date as wikignoming corrects articles.

The tables below show the output from the current templates as at 1 December 2013, captured from Special:ExpandTemplates (and slightly edited in a couple of cases). That was done because the page is too slow when many template converts are used. Johnuniq (talk) 03:54, 1 December 2013 (UTC)


 * See also: User:Johnuniq/Convert warnings

Unsupported features
The module is not able to handle the two following converts (and more than two usages would be needed to make it worthwhile).

The module is not able to handle the four following recently created converts.
 * Template:Convert/text2 and /text3 tested OK in run-preview with Lua, and so these 4 cases are not a problem. -Wikid77 (talk) 09:39, 4 December 2013 (UTC)
 * Today, simply replacing {convert/textx} with {convert/q} leaves a message 'unknown (second) unit', in all four. Does this /textx conversion need an extra parameter to be set here? -DePiep (talk) 08:52, 10 December 2013 (UTC)


 * Completed table: all mainspace usages of {convert/text2}, {convert/text3} (6 pages, 8 transclusions). Added /sandboxlua testcases. (note: the freeform separators in /textx could be the issue) -DePiep (talk) 19:33, 10 December 2013 (UTC)

Unknown units
The following appear to be the only units that are used in articles and which are not currently supported by the module.
 * and  occur in one article.
 * is a redirect to.
 * is a recent redirect to.
 * can be replaced with  in the module. (Not used in articles any more. No need to add this 'unit' to module. -DePiep (talk) 21:22, 10 December 2013 (UTC))
 * is  (latter redirects to former).
 * does not exist; it is some magic in convert/acres.
 * is a recent redirect to.

Convert/x
By using {convert/q} (Lua) preemptively. -DePiep (talk) 09:00, 10 December 2013 (UTC) Search for "Template:" in the following articles to see broken output as at 2013-12-10. * Solved by replacing {convert/spell|...} with {convert/q|spell=in|...}. (In the diff: use {convert|spell=in|...} solves it too, but would not leave a marker). -DePiep (talk) 08:17, 10 December 2013 (UTC)

Unit mismatches
The following 360 converts generate a "unit mismatch" error in the module. There is one  which is displayed, but has been omitted in the converts to avoid disrupting the table.

Broken converts
The following 143 converts appear to be broken. It's likely that many of these of these have been fixed (this data is from 4 November 2013). Perhaps add "yes" to a row if have fixed it?