Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen

Adding "See also" {{namespace detect showall}} and some other fixes.
imported>Davidgothberg
(Some prettyfying of the code in the examples.)
imported>Davidgothberg
(Adding "See also" {{namespace detect showall}} and some other fixes.)
Zeile 108: Zeile 108:


=== Technical details ===
=== Technical details ===
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 "[[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 "[[Help:HTML in wikitext|HTML wikimarkup]]" for the table code, which is more robust.
Zeile 124: Zeile 126:
* {{tl|main talk other}} – Separates some namespaces.
* {{tl|main talk other}} – Separates some namespaces.
* {{tl|main talk category other}} – Separates some more namespaces.
* {{tl|main talk category other}} – Separates some more namespaces.
* {{tl|namespace detect}} – The very versatile one.
* {{tl|namespace detect showall}} – The extremely versatile one.


Technical stuff:
Technical stuff:
Anonymer Benutzer