Template:Namespace detect/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} {{High-risk| approximately 140000 }} {{Lua|Module:Namespace detect}} <!--Categories where indicated at the bottom of this page, please; interwikis at..."
 
m Text replacement - "[[Help:Template" to "[[Wikipedia:Help:Template‏‎ "
 
Line 147:
If you intend to feed tables as content to the numbered parameters of this template, you need to know this:
 
[[Wikipedia:Help:TemplateTemplate‏‎ |Templates]] have a problem handling parameter data that contains pipes "<code>|</code>" unless the pipe is inside another template <code><nowiki>{{name|param1}}</nowiki></code> or inside a piped link <code><nowiki>[[Wikipedia:Help:TemplateTemplate‏‎ |help]]</nowiki></code>. Thus templates can not handle [[Help:Table|wikitables]] as input unless you escape them by using the {{tn|!}} template. This makes it hard to use wikitables as parameters to templates. Instead, the usual solution is to use "[[Help:HTML in wikitext|HTML wikimarkup]]" for the table code, which is more robust.
 
For more technical details, e.g. about copying this template to other projects and CSS-based namespace detection, see {{tl|Main talk other}} and its talk page.