Difference between revisions of "Template:Commons category"

From Self-sufficiency
Jump to: navigation, search
(Remove link to Wikipedia commons. The point of this template is to get people to the gallaries, not to the commons main page. We want that second link to have more chances to get clicked on.)
m (1 revision imported)
 
(19 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<div class="infobox sisterproject">[[Image:Commons-logo.svg|left|50px]]
+
{{Commons
<div style="margin-left: 60px;">Wikimedia Commons has media related to:
+
| position = {{{position|}}}
<div style="margin-left: 10px;"> '''''[[Commons:Category:{{{1|{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''</div>
+
  <!-- {{#if:x|}} strips whitespace from parameter 1,
</div></div><noinclude>{{clear}}
+
      in case it is fed like this: {{Commons category| Some cat }}. -->
{{protected template}}
+
|1=Category:{{#if:{{{1|}}}
[[Category:Interwiki link templates|Commonscat]]
+
|{{{1|}}}
[[Category:Interwiki category linking templates|Commonscat]]
+
|{{#if:{{#property:P373}}
 
+
  |{{#property:P373}}
[[af:Sjabloon:CommonsKategorie]]
+
  |{{PAGENAME}}
[[az:Şablon:CommonsKat]]
+
}}
[[bg:Шаблон:Commonscat]]
+
}}
[[ca:Plantilla:Commonscat]]
+
|2={{{2|{{{1|{{PAGENAME}}}}}}}}<!--
[[cs:Šablona:Commonscat]]
+
-->}}<noinclude>
[[da:Skabelon:Commonscat]]
+
{{Documentation}}
[[de:Vorlage:Commonscat]]
+
<!-- Add categories to the /doc subpage, not here! -->
[[es:Plantilla:Commonscat]]
+
</noinclude><includeonly>{{#if:{{{1|}}}||{{#if:{{#property:P373}}||{{#switch:{{NAMESPACE}}
[[eo:Ŝablono:Commonscat]]
+
|User|User talk=
[[eu:Txantiloi:Commonskat]]
+
|#default=[[Category:Commons category template with no category set|{{#ifeq:{{NAMESPACE}}|||{{Namespace Greek}}}}{{BASEPAGENAME}}]]<!--
[[fr:Modèle:CommonsCat]]
+
-->}}}}}}<!-- Some tracking categories to see if we're ready to switch to Wikidata
[[ko::Commonscat]]
+
-->{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories.
[[hr:Predložak:Commonscat]]
+
-->{{#if:{{#property:P373}}
[[io:Template:Commonscat]]
+
| {{#if:{{{1|}}}
[[id:Templat:Commonscat]]
+
  | {{#ifeq:{{#property:P373}}|{{#invoke:StringReplace|encode wiki page name|{{{1|}}}}}
[[ia:Patrono:Commonscat]]
+
  | <!-- [[Category:Commons category with local link same as on Wikidata]] – deleted per [[Wikipedia:Categories for discussion/Log/2017 January 25]] -->
[[os:Шаблон:Commonscat]]
+
  | [[Category:Commons category with local link different than on Wikidata]] <!-- Figure out the best link -->
[[is:Snið:Commonscat]]
+
  }}
[[lv:Veidne:Commonscat]]
+
  | {{#ifeq:{{#property:P373}}|{{PAGENAME}}
[[lt:Šablonas:Commonscat]]
+
  | <!-- [[Category:Commons category with page title same as on Wikidata]] – deleted per [[Wikipedia:Categories for discussion/Log/2017 January 25]] -->
[[hu:Sablon:Közvagyonkat]]
+
  | [[Category:Commons category with page title different than on Wikidata]] <!-- Figure out the best link here too -->
[[mk:Шаблон:Ризница-врска]]
+
  }}
[[ms:Templat:Commonscat]]
+
  }}
[[nl:Sjabloon:Commonscat]]
+
| [[Category:Commons category without a link on Wikidata]] <!-- These we still need to import -->
[[no:Mal:Commonscat]]
+
}}
[[ja:Template:Commonscat]]
+
}}</includeonly>
[[oc:Modèl:Commonscat]]
+
[[pl:Szablon:Commonscat]]
+
[[pt:Predefinição:Commonscat]]
+
[[ro:Format:Commonscat]]
+
[[ru:Шаблон:Commonscat]]
+
[[simple:Template:Commonscat]]
+
[[sk:Šablóna:Commonscat]]
+
[[sl:Predloga:Kategorija v Zbirki]]
+
[[sr:Шаблон:Commonscat]]
+
[[sh:Template:Commonscat]]
+
[[su:Citakan:Commonscat]]
+
[[fi:Malline:Commonscat]]
+
[[sv:Mall:Commonscat]]
+
[[th:แม่แบบ:Commonscat]]
+
[[vi:Tiêu bản:Commonscat]]
+
[[tr:Şablon:CommonsKat]]
+
[[uk:Шаблон:Commonscat]]
+
[[zh:Template:Commonscat]]
+
</noinclude>
+

Latest revision as of 20:55, 17 February 2018