Template:Commons category: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Renamed user ixgysjijel
m (+protected tag)
m (1 revision imported)
 
(61 intermediate revisions by 28 users not shown)
Line 1: Line 1:
{| class="infobox sisterproject"
{{Sister project
| style="width:50px; height:67px;" | [[Image:Commons-logo.svg|50px|none|]]
| position = {{{position|}}}
| style="padding-left:5px;" | [[Wikimedia Commons]] has media related to:
| project  = commons
<div style="margin-left: 10px;"> '''''[[Commons:Category:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]'''''</div>
| text    = Wikimedia Commons has {{{alt-term|media related to}}} <span style="font-weight: bold; {{#ifeq:{{{nowrap|no}}}|yes|white-space:nowrap;}} {{#ifeq:{{{italic|yes}}}|yes|font-style: italic;}}">[[commons:{{#if:{{{1|}}}|Category:{{{1|}}}|{{if then show|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:{{PAGENAME}}}}}}|{{#ifeq:{{{lcf|{{{lcfirst|no}}}}}}|yes|{{lcfirst:{{{2|{{#if:{{{1|}}} | {{{1|}}} <!--
|}<noinclude>
  -->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}<!--
{{protected template}}
  --> |{{PAGENAME}} }} }} }}} }}<!--
[[Category:Interwiki link templates|Commonscat]]
  -->|{{{2|{{#if:{{{1|}}} | {{{1|}}} <!--
[[Category:Interwiki category linking templates|Commonscat]]
  -->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}|{{PAGENAME}} }}<!--
  -->}}}}}}}]]</span>.<!--
End of the template code, now add relevant tracking categories


[[ca:Template:Commonscat]]
--><includeonly>{{#switch:{{NAMESPACE}}||{{ns:14}}=<!--
[[cs:Template:Commonscat]]
Only add tracking categories to articles and categories.
[[da:Skabelon:Commonscat]]
-->{{#if:{{{1|}}}|{{#ifeq:Category:{{replace|{{{1|}}}|_|&#32;}}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!--
[[de:Vorlage:Commonscat]]
  -->[[Category:Commons category link is on Wikidata]]<!--
[[eo:Template:Commonscat]]
 
[[es:Plantilla:Commonscat]]
  -->|{{#ifeq:{{replace|{{{1|}}}|_|&#32;}}|{{PAGENAME}}|<!--
[[fr:Modèle:CommonsCat]]
  ... the local parameter is the same as the local pagename
[[hr:Template:Commonscat]]
  -->[[Category:Commons category link is defined as the pagename]]{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}<!--
[[hu:Template:Commonscat]]
 
[[id:Template:Commonscat]]
  ... the local parameter is not the pagename
[[io:Template:Commonscat]]
  -->|[[Category:Commons category link is locally defined]]{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}}} }}<!--
[[is:Template:Commonscat]]
 
[[lt:Template:Commonscat]]
  We don't have a locally-defined link
[[lv:Template:Commonscat]]
  -->|{{#if:{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!--
[[ms:Template:Commonscat]]
 
[[nl:Sjabloon:Commonscat]]
  ... so we're using Wikidata
[[no:Mal:Commonscat]]
  -->[[Category:Commons category link from Wikidata]]<!--
[[ja:Template:Commonscat]]
 
[[oc:Template:Commonscat]]
    <!-- ... or we're using the pagename
[[os:Шаблон:Commonscat]]
    -->|[[Category:Commons category link is the pagename]]{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}
[[pl:Template:Commonscat]]  
  }}
[[pt:Predefinição:Commonscat]]
  }}
[[ro:Template:Commonscat]]
  }}</includeonly>
[[ru:Template:Commonscat]]
}}<noinclude>
[[fi:Malline:Commonscat]]
{{Documentation}}
[[simple:Template:Commonscat]]
<!-- Add categories to the /doc subpage, not here! -->
[[sl:Template:Commonscat]]
[[sr:Шаблон:Commonscat]]
[[su:Template:Commonscat]]
[[sv:Mall:Commonscat]]
[[th:Template:Commonscat]]
[[tr:Şablon:CommonsKat]]
[[uk:Шаблон:Commonscat]]
[[vi:Tiêu bản:Commonscat]]
[[zh:Template:Commonscat]]
</noinclude>
</noinclude>

Latest revision as of 06:28, 6 June 2021