Selasa, 29 September 2026
17:38 WIB
TERKINI
Nasional Saksi Ungkap Penolakan Uang 1 Juta Dolar AS untuk Pansus Haji oleh Dua Tokoh Megapolitan Demo Buruh di DPR Lumpuhkan Gatot Subroto: Simak Jalur Alternatifnya Megapolitan Komunikasi Terputus Jadi Akar Tabrakan KA Argo Bromo Anggrek di Bekasi Regional KPU Batam Musnahkan Ribuan Surat Suara Rusak, Jaga Integritas Pemilu Regional Gagal Menulis Ulang: Konten Berita Tidak Memadai Way Kanan Kepala Toko Alfamart Way Kanan Diduga Gelapkan Rp141 Juta, Dua Pelaku Ditangkap Hiburan Lisa BLACKPINK Ukir Sejarah: Solois Asia Pertama Sabet Best Pop MTV VMAs 2026 Ekonomi Dan Bisnis Harga Emas Antam Turun Drastis Rp17 Ribu, Cek Daftar Lengkap 29 September 2026 Hiburan TXT Gegerkan Penggemar dengan Mini Album 'PERFECT STORM' dan Tur Dunia Termasuk Jakarta Berita Fenomena Unik 'Hujan Salju' di Lapangan Sempur Bogor, Warga Sambut Riang Nasional Saksi Ungkap Penolakan Uang 1 Juta Dolar AS untuk Pansus Haji oleh Dua Tokoh Megapolitan Demo Buruh di DPR Lumpuhkan Gatot Subroto: Simak Jalur Alternatifnya Megapolitan Komunikasi Terputus Jadi Akar Tabrakan KA Argo Bromo Anggrek di Bekasi Regional KPU Batam Musnahkan Ribuan Surat Suara Rusak, Jaga Integritas Pemilu Regional Gagal Menulis Ulang: Konten Berita Tidak Memadai Way Kanan Kepala Toko Alfamart Way Kanan Diduga Gelapkan Rp141 Juta, Dua Pelaku Ditangkap Hiburan Lisa BLACKPINK Ukir Sejarah: Solois Asia Pertama Sabet Best Pop MTV VMAs 2026 Ekonomi Dan Bisnis Harga Emas Antam Turun Drastis Rp17 Ribu, Cek Daftar Lengkap 29 September 2026 Hiburan TXT Gegerkan Penggemar dengan Mini Album 'PERFECT STORM' dan Tur Dunia Termasuk Jakarta Berita Fenomena Unik 'Hujan Salju' di Lapangan Sempur Bogor, Warga Sambut Riang

Templat:File other

templat Wikimedia

Bagikan:
Dokumentasi templatlihatsuntingriwayatsegarkan
WarningTemplat ini digunakan pada 65.000+ halaman dan perubahannya kemungkinan memicu perubahan massal pada semua halaman yang menggunakannya. Uji cobalah di subhalaman /bak pasir atau /kasus uji Templat:File other, atau subhalaman pengguna Anda. Pertimbangkan untuk mendiskusikan perubahan di halaman pembicaraan sebelum mengimplementasikannya.
WarningTemplat ini digunakan di pesan sistem, dan pada sekitar65.000 halaman.
Perubahan pada templat atau modul ini dapat mengubah antarmuka pengguna Wikipedia secara serentak.
Untuk mencegah suntingan mengganggu skala besar, setiap perubahan harus diuji di subhalaman /bak pasir atau /kasus uji Templat:File other, atau subhalaman pengguna Anda. Perubahan yang telah diuji kemudian dapat ditambahkan ke halaman ini dalam satu suntingan. Harap diskusikan perubahan di halaman pembicaraan sebelum mengimplementasikannya.

This is the {{file other}} meta-template.

This template helps other templates detect if they are on a "File:" page or some "other" type of page.

This template was previously named {{image other}}. That name redirects here so it still works, but using the old name is now deprecated.

Penggunaan

This template usually takes two parameters, like this:

{{file other | File page text | Other pages text }}

If the template is on a file (image) page, it will return this:

File page text

If the template is on any other page, it will return this:

Other pages text

A typical usage case could be to make it so that a template only adds a category when on file pages. Thus not adding other pages that just show the template. Like this:

{{file other | [[Category:Some file maintenance category]] }}

Or to warn that a template should not be used on other pages:

{{file other | | This template should only be used on file (image) pages. }}

Note that in the first case above the "other" parameter was not used, and in the second example the "file" parameter was left empty.

Demospace

For testing and demonstration purposes this template can take a parameter named demospace.

  • If it has the value file it returns the file page text.
  • It if has the value other or any other value such as the name of some other namespace it returns the other pages text.
  • If the parameter is empty or undefined, the actual page type determines the result.

Like this:

{{file other 
| File page text 
| Other pages text 
| demospace = file
}}

No matter on what kind of page the code above is used it will return this:

File page text

You can make it so your template also understands the demospace parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:

{{file other 
| File page text 
| Other pages text 
| demospace = {{{demospace|}}}
}}

Detail teknis

This template detects "File talk:" pages as type other.

Namespace "Image" was renamed to "File" on 11 December 2008. This template was updated to understand both names well before that, thus it still works fine.

This template works like {{main talk other}}, for more examples and technical details see full documentation there.


Namespace and pagename-detecting templates
Namespace
Particular
More generic
Pagename
When on basepage
Detects and acts according to whether it is on a basepage or on any subpage (that is, a ../.. subpage).
When pagename is
For pattern matching on the pagename.
Module:Page
Can take apart and put together pagenames in several ways.
IP-talk
Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
IP-user other
For detecting IP-user pages.
Subpage other
Pagename has an after-slash part (not in mainspace)
Sandbox other
Page is subpage /sandbox (template space)
Testcases other
Page is subpage /testcases (template space)
Rootpage other
Page is rootpage (vs. /subpage) (template space)
Others
Stub other
Detects whether it is on a page with a stub template or not.
Redirect other
Detects whether it is on a redirect or not.
If preview
Detects whether page is viewed as a preview or not.
If IP
Displays different content to IP users and logged-in users.
If autoconfirmed
Displays different content to autoconfirmed and non-autoconfirmed users.
If extended confirmed
Displays different content to extended confirmed and non-extended confirmed users.
If administrator
Displays content only to admins.
If mobile
Displays different content to mobile users and desktop users.
If dark
Displays different content to dark mode users and light mode users.
Noscript
Detects whether page is viewed with a JavaScript-capable client or not.
Dokumentasi di atas ditransklusikan dari Templat:File other/doc. (sunting | riwayat)
Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini.
Mohon tambahkan kategori pada subhalaman /doc. Subhalaman templat ini.
Konten disalin dari Wikipedia Bahasa Indonesia (lisensi CC BY-SA) Lihat versi asli di Wikipedia

Rekomendasi Pilihan