Editing Template:Namespace detect/doc
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
It helps other templates detect what type of page they are on. | It helps other templates detect what type of page they are on. | ||
It detects and groups all the different namespaces used | It detects and groups all the different [[Project:Namespaces|namespaces]] used on MediaWiki.org into several types: | ||
:'''main''' = Main/article space, as in normal MediaWiki.org articles. | :'''main''' = Main/article space, as in normal MediaWiki.org articles. | ||
Line 150: | Line 150: | ||
If you intend to feed tables as content to the numbered parameters of this template, then you need to know this: | If you intend to feed tables as content to the numbered parameters of this template, then you need to know this: | ||
[[ | [[Help:Template|Templates]] do have a problem to handle 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>[[Help:Template|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 "[[w:Help:HTML in wikitext|HTML wikimarkup]]" for the table code, which is more robust. | ||
<includeonly> | <includeonly> |