Templat:Commons category: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
k Bagas Chrisara memindahkan halaman Templat:Commonscat ke Templat:Commons category menimpa pengalihan lama: Standardisasi per WP:EN agar tidak terjadi kesalahan sistem. |
k Hasil uji coba: Templat:Commons category/sb |
||
Baris 1:
{{Sister project
| position = {{{position|}}}
| project = commons
| text = Wikimedia Commons memiliki {{{alt-term|media mengenai}}} '''''[[commons:{{#if:{{{1|}}}|Kategori:{{{1|}}}|{{if then show|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Kategori:{{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|}}} <!--
-->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Kategori:|}}<!--
-->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Kategori:|}}<!--
--> |{{PAGENAME}} }} }} }}}
}}</span>]]'''''.<!--
}}▼
End of the template code, now add relevant tracking categories
}}▼
▲|2={{{2|{{{1|{{PAGENAME}}}}}}}}<!--
-->}}<noinclude>▼
Only add tracking categories to articles and categories.
-->{{#if:{{{1|}}}|{{#ifeq:Kategori:{{replace|{{{1|}}}|_| }}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!--
--><!--[[Kategori:Commons category link is on Wikidata]]--><!--
... the local parameter is the same as the local pagename
-->[[Kategori:Kategori Commons yang pranala lokalnya berbeda dengan Wikidata]]{{#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:Kategori Commons yang pranala lokalnya berbeda dengan Wikidata]]{{#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:Commons category link from Wikidata]]--><!--
<!-- ... or we're using the pagename
-->|[[Kategori:Kategori Commons yang judul halamannya berbeda dengan Wikidata]]{{#invoke:Preview warning|main|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}
▲ }}
}}</includeonly>▼
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
▲-->{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories.
▲ | {{#ifeq:{{#property:P373}}|{{PAGENAME}}
▲}}</includeonly>
|