Lompat ke isi

Templat:Namespace detect: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
Relly Komaruzaman (bicara | kontrib)
k ←Suntingan 86.135.250.172 (bicara) dibatalkan ke versi terakhir oleh Addbot
Membalikkan revisi 7782117 oleh Relly Komaruzaman (bicara)
Baris 1: Baris 1:
{{#invoke:Namespace detect|main}}<noinclude>
{{#switch:
{{lc: <!--Lower case the result-->
<!--If no or empty "demospace" parameter then detect namespace-->
{{#if:{{{demospace|}}}
| {{{demospace}}}
| {{#ifeq:{{NAMESPACE}}|{{ns:0}}
| main
| {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
| talk
| {{NAMESPACE}}
}}
}}
}}
}}
<!-- Only one of the lines below will be executed -->
<!-- Respecting empty parameters on purpose -->
| main = {{{main| {{{other|}}} }}}
| talk = {{{talk| {{{other|}}} }}}
| user = {{{user| {{{other|}}} }}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| file
| image = {{{file| {{{image| {{{other|}}} }}} }}}
| mediawiki = {{{mediawiki| {{{other|}}} }}}
| template = {{{template| {{{other|}}} }}}
| help = {{{help| {{{other|}}} }}}
| category = {{{category| {{{other|}}} }}}
| portal = {{{portal| {{{other|}}} }}}
| other
| #default = {{{other|}}} <!--"demospace=other" or a new namespace-->


{{documentation}}
}}<!--End switch--><noinclude>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
[[Kategori:Templat dasar]]
</noinclude>
</noinclude>

Revisi per 4 Mei 2014 22.25