Zum Inhalt springen

Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen

Adding a "list of all parameters".
imported>Davidgothberg
(Adding "{{high-use| 65,000+ }}", but probably used on many more pages since now used in many thousands of templates.)
imported>Davidgothberg
(Adding a "list of all parameters".)
Zeile 86: Zeile 86:
<pre>
<pre>
{{namespace detect  
{{namespace detect  
| demospace = main
| main  = Article text
| main  = Article text
| other = Other pages text
| other = Other pages text
| demospace = main
}}
}}
</pre>
</pre>
Zeile 95: Zeile 95:


:{{namespace detect  
:{{namespace detect  
| demospace = main
| main  = Article text
| main  = Article text
| other = Other pages text
| other = Other pages text
| demospace = main
}}
}}


Zeile 104: Zeile 104:
<pre>
<pre>
{{namespace detect  
{{namespace detect  
| main  = Article text
| other = Other pages text
| demospace = {{{demospace|}}}
| demospace = {{{demospace|}}}
| main      = Article text
| other    = Other pages text
}}
}}
</pre>
</pre>


If the '''demospace''' parameter is empty or undefined then the template will detect page types as usual.
If the '''demospace''' parameter is empty or undefined then the template will detect page types as usual.
=== Parameters ===
List of all parameters:
<pre>
{{namespace detect
| main  =
...
| other =
| demospace = {{{demospace|}}} / main / talk / user /
              wikipedia / file / mediawiki / template /
              help / category / portal / other
}}
</pre>
Note: Empty values to the "main" ... "portal" parameters do have special meaning.


=== Technical details ===
=== Technical details ===
Anonymer Benutzer