Templat:Commons category: Perbedaan antara revisi
Tampilan
Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan |
Hidayatsrf (bicara | kontrib) Tidak ada ringkasan suntingan |
||
(26 revisi perantara oleh 7 pengguna tidak ditampilkan) | |||
Baris 1: | Baris 1: | ||
{{Sister project |
|||
{{sister |
|||
| position = {{{position|}}} |
| position = {{{position|}}} |
||
| project = commons |
| project = commons |
||
| text = Wikimedia Commons memiliki {{{alt-term|media mengenai}}} '''''[[commons:{{#if:{{{1|}}}|Category:{{{1|}}}|{{if then show|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:{{PAGENAME}}}}}}|<span style="{{#ifeq:{{{nowrap|no}}}|yes|white-space:nowrap;}} {{#ifeq:{{{italic|no}}}|yes|font-style: italic; }}">{{#ifeq:{{{lcf|{{{lcfirst|no}}}}}}|yes|{{lcfirst:{{{2|{{#if:{{{1|}}} | {{{1|}}} <!-- |
|||
| text = |
|||
-->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}<!-- |
|||
[[Wikimedia Commons]] memiliki kategori mengenai '''''[[commons:{{#if:{{#property:P373}} |
|||
--> |{{PAGENAME}} }} }} }}} }}<!-- |
|||
| {{#if:{{{1|}}} |
|||
| |
-->|{{{2|{{#if:{{{1|}}} | {{{1|}}} <!-- |
||
-->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}<!-- |
|||
|Category:{{{1|}}}[[Category:Kategori dengan pranala sama dengan Wikidata]] <!-- We want to end up here --> |
|||
| |
--> |{{PAGENAME}} }} }} }}} |
||
}}</span>]]'''''.<!-- |
|||
⚫ | |||
End of the template code, now add relevant tracking categories |
|||
|Category:{{{PAGENAME}}}[[Category:Kategori dengan judul sama dengan Wikidata]] <!-- Ending up here is just fine --> |
|||
|Category:{{#property:P373}}[[Category:Kategori dengan judul berbeda dengan Wikidata]] <!-- Figure out the best link here too --> |
|||
--><includeonly>{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- |
|||
⚫ | |||
Only add tracking categories to articles and categories. |
|||
-->{{#if:{{{1|}}}|{{#ifeq:Category:{{replace|{{{1|}}}|_| }}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!-- |
|||
-->[[Kategori:Pranala kategori Commons ada di Wikidata]]<!-- |
|||
⚫ | |||
... the local parameter is the same as the local pagename |
|||
-->[[Kategori:Pranala kategori Commons didefinisikan sebagai nama halaman]]{{#invoke:Preview warning|main|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}<!-- |
|||
... the local parameter is not the pagename |
|||
-->|[[Kategori:Pranala kategori Commons ditentukan secara lokal]]{{#invoke:Preview warning|main|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}}} }}<!-- |
|||
We don't have a locally-defined link |
|||
-->|{{#if:{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!-- |
|||
... so we're using Wikidata |
|||
-->[[Kategori:Pranala kategori Commons dari Wikidata]]<!-- |
|||
<!-- ... or we're using the pagename |
|||
-->|[[Kategori:Pranala kategori Commons dari nama halaman]]{{#invoke:Preview warning|main|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}} |
|||
}} |
}} |
||
⚫ | |||
| [[Category:Commons category tanpa pranala di Wikidata]] <!-- These we still need to import --> |
|||
}}</includeonly> |
|||
}}|{{{2|{{PAGENAME}}}}}]]''''' |
|||
}}< |
}}<noinclude> |
||
{{Documentation}} |
|||
<!-- Add categories to the /doc subpage, not here! --> |
|||
</noinclude> |
Revisi terkini sejak 3 Juni 2021 04.34
Wikimedia Commons memiliki media mengenai Commons category.
Templat ini digunakan pada sekitar 810.000 halaman, atau sekira 21% dari keseluruhan halaman halaman. Untuk mencegah suntingan mengganggu skala besar dan beban peladen, setiap perubahan perlu diuji di subhalaman /bak pasir atau /kasus uji templat, atau subhalaman pengguna Anda. Perubahan yang diuji dapat ditambahkan ke halaman ini dalam satu suntingan. Pertimbangkan untuk mendiskusikan perubahan di halaman pembicaraan sebelum mengimplementasikannya. |
Penggunaan
{{Commons category}} |
– | Mengambil tautan situs Commons dari Wikidata (jika tersedia) |
{{Commons category|catname}} |
– | Menempatkan kotak pranala yang menghubungkan ke judul catname di Commons |
{{Commons category|catname|showname}} |
– | Menempatkan kotak prnala dengan nama tautan ditampilkan sebagai showname |
{{Commons category|catname|position=left}} |
– | Mengambangkan kotak pranala ke sisi kiri, sebagai opsi untuk menyelaraskan kotak ke margin kiri |
{{Commons category|nowrap=yes}} |
– | Mencegah teks dari kategori commons dari pembungkusan (text wrapping) |
{{Commons category|lcfirst=yes}} |
– | Menampilkan huruf pertama sebagai huruf kecil |
Kategori pelacak
Kategori normal
- Kategori:Pranala kategori Commons dari Wikidata (48.519) - pranala di artikel diambil dari Wikidata (tanpa parameter)
- Kategori:Pranala kategori Commons ada di Wikidata (52.651) - pranala ditentukan secara lokal dan sama dengan Wikidata
Kategori pemeliharaan
- Kategori:Pranala kategori Commons didefinisikan sebagai nama halaman (1.549) - pranala ditentukan secara lokal sesuai judul halaman, tetapi berbeda dengan Wikidata
- Kategori:Pranala kategori Commons ditentukan secara lokal (7.034) - pranala yang ditentukan secara lokal, berbeda dengan judul halaman, dan tidak ada atau tidak sama dengan pranala di Wikidata
- Kategori:Pranala kategori Commons dari nama halaman (136) pranala menggunakan judul halaman dan tidak ada data pranala kategori commons di Wikidata
Lihat pula
- {{Commons}}
- {{Commons-inline}}—untuk menampilkan galeri Commons dalam bentuk baris
- {{Commons category-inline}}—untuk menampilkan kategori Commons dalam bentuk baris
- {{Commons category multi}}—untuk menampilkan lebih dari enam kategori
- {{Commons and category}}—untuk menampilkan galeri dan kategori Commons
- {{Commons and category-inline}}—untuk menampilkan galeri dan kategori Commons dalam bentuk baris