Editing Template:Namespace detect/doc

From Guild of Archivists
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 in the Archive into several types:
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:


[[w: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.
[[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>
Please note that all contributions to Guild of Archivists may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see GoArch:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)