Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen
Vorlage:Namespace detect/Doku (Quelltext anzeigen)
Version vom 23. September 2013, 07:17 Uhr
, vor 12 Jahrenformatting: 8x whitespace (using Advisor.js)
imported>Numbermaniac KKeine Bearbeitungszusammenfassung |
imported>Numbermaniac K (formatting: 8x whitespace (using Advisor.js)) |
||
| Zeile 79: | Zeile 79: | ||
=== Demospace and page === | === Demospace and page === | ||
For testing and demonstration purposes this template can take two parameters named '''demospace''' and '''page'''. | For testing and demonstration purposes this template can take two parameters named '''demospace''' and '''page'''. | ||
Demospace understands any of the page type names used by this template, including the '''other''' type. It tells the template to behave like it is on some specific type of page. Like this: | Demospace understands any of the page type names used by this template, including the '''other''' type. It tells the template to behave like it is on some specific type of page. Like this: | ||
<pre> | <pre> | ||
{{namespace detect | {{namespace detect | ||
| main = Article text | | main = Article text | ||
| other = Other pages text | | other = Other pages text | ||
| Zeile 93: | Zeile 93: | ||
No matter on what kind of page the code above is used it will return this: | No matter on what kind of page the code above is used it will return this: | ||
:{{namespace detect | :{{namespace detect | ||
| main = Article text | | main = Article text | ||
| other = Other pages text | | other = Other pages text | ||
| Zeile 102: | Zeile 102: | ||
<pre> | <pre> | ||
{{namespace detect | {{namespace detect | ||
| user = User page text | | user = User page text | ||
| other = Other pages text | | other = Other pages text | ||
| Zeile 111: | Zeile 111: | ||
No matter on what kind of page the code above is used it will return this: | No matter on what kind of page the code above is used it will return this: | ||
:{{namespace detect | :{{namespace detect | ||
| user = User page text | | user = User page text | ||
| other = Other pages text | | other = Other pages text | ||
| Zeile 120: | Zeile 120: | ||
<pre> | <pre> | ||
{{namespace detect | {{namespace detect | ||
| main = Article text | | main = Article text | ||
| other = Other pages text | | other = Other pages text | ||
| Zeile 138: | Zeile 138: | ||
... | ... | ||
| other = | | other = | ||
| demospace = {{{demospace|}}} / main / talk / user / | | demospace = {{{demospace|}}} / main / talk / user / | ||
wikipedia / file / mediawiki / template / | wikipedia / file / mediawiki / template / | ||
help / category / portal / book / other | help / category / portal / book / other | ||
| page = {{{page|}}} / User:Example | | page = {{{page|}}} / User:Example | ||