On 01/25/2013 08:01 AM, Daniel Kinzler wrote: > * When using system messages to translate the error codes from the API, these > messages will often contain wikitext. How can we best avoid this? Wikitext is > likely to be quite useless to the client - it would be better to return HTML; > or > pass all the message keys and parameters, and let the client generate the > message.
It you take the approach of clients rendering wikitext into HTML, you can use jqueryMsg (https://www.mediawiki.org/wiki/Manual:Messages_API#mediawiki.jqueryMsg) Of course, non MediaWiki clients will have to use the error code or some other string. Matt Flaschen _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l