Lompat ke isi

Templat:Namespace detect: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
k Robot: Perubahan kosmetika
Migrasi templat ke modul menggunakan bahasa pemrograman Lua.
 
Baris 1: Baris 1:
{{SAFESUBST:<noinclude />#invoke:Namespace detect|main}}<noinclude>
{{#switch:
{{documentation}}
{{lc: <!--Lower case the result-->
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
<!--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 = {{{utama| {{{other|}}} }}}
| talk = {{{pembicaraan| {{{other|}}} }}}
| user = {{{pengguna| {{{other|}}} }}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| file
| image = {{{berkas| {{{gambar| {{{other|}}} }}} }}}
| mediawiki = {{{mediawiki| {{{other|}}} }}}
| template = {{{templat| {{{other|}}} }}}
| help = {{{bantuan| {{{other|}}} }}}
| category = {{{kategori| {{{other|}}} }}}
| portal = {{{portal| {{{other|}}} }}}
| other
| #default = {{{other|}}} <!--"demospace=other" or a new namespace-->

}}<!--End switch--><noinclude>
[[Kategori:Templat dasar]]
</noinclude>
</noinclude>

Revisi terkini sejak 4 Mei 2018 14.13