Template:LayoutTemplateArgs/doc: Difference between revisions
Template page
More actions
document new "template" parameter |
script now checks for strip markers |
||
| Line 75: | Line 75: | ||
There are a couple of known bugs in this template and in the associated [[MediaWiki:AjaxTranslation.js|Ajax translation script]], including: | There are a couple of known bugs in this template and in the associated [[MediaWiki:AjaxTranslation.js|Ajax translation script]], including: | ||
'''Parameters containing <nowiki>, <pre>, <poem>, <ref>, <gallery>, etc. tags turn into gibberish.''' | '''Parameters containing <nowiki>, <pre>, <poem>, <ref>, <gallery>, etc. tags <s>turn into gibberish</s> cause the in-line replacement not to work.''' | ||
:This is a known bug in the MediaWiki {{[[mw:Help:Magic words#URL data|urlencode]]:}} parser function: when given input containing "parser extension tags", those tags and their content get replaced by internal "strip markers" which look something like "UNIQ77ef13a860481bc0-nowiki-00000010-QINU". Unfortunately, there's no way for the Ajax translation script to work out what the content replaced by such strip markers might've originally been. | :This is a known bug in the MediaWiki {{[[mw:Help:Magic words#URL data|urlencode]]:}} parser function: when given input containing "parser extension tags", those tags and their content get replaced by internal "strip markers" which look something like "UNIQ77ef13a860481bc0-nowiki-00000010-QINU". Unfortunately, there's no way for the Ajax translation script to work out what the content replaced by such strip markers might've originally been. The current implementation reverts to opening the translated template on a new page if it detects any strip markers in the parameters. | ||
'''Very long parameter values cause the in-line replacement not to work.''' | '''Very long parameter values cause the in-line replacement not to work.''' | ||