Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:LayoutTemplateArgs/doc: Difference between revisions

Template page
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 &lt;nowiki&gt;, &lt;pre&gt;, &lt;poem&gt;, &lt;ref&gt;, &lt;gallery&gt;, etc. tags <s>turn into gibberish</s> cause the in-line replacement not to work.'''
:This is a known bug in the MediaWiki &#123;&#123;[[mw:Help:Magic words#URL data|urlencode]]:&#125;&#125; parser function: when given input containing "parser extension tags", those tags and their content get replaced by internal "strip markers" which look something like "&#x7F;UNIQ77ef13a860481bc0-nowiki-00000010-QINU&#x7F;".  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 &#123;&#123;[[mw:Help:Magic words#URL data|urlencode]]:&#125;&#125; parser function: when given input containing "parser extension tags", those tags and their content get replaced by internal "strip markers" which look something like "&#x7F;UNIQ77ef13a860481bc0-nowiki-00000010-QINU&#x7F;".  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.'''
Cookies help us deliver our services. By using our services, you agree to our use of cookies.