Template:Commons category: Difference between revisions
From Vigyanwiki
No edit summary |
m (1 revision imported from alpha:Template:Commons_category) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 13: | Line 13: | ||
Only add tracking categories to articles and categories. | Only add tracking categories to articles and categories. | ||
-->{{#if:{{{1|}}}|{{#ifeq:Category:{{replace|{{{1|}}}|_| }}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!-- | -->{{#if:{{{1|}}}|{{#ifeq:Category:{{replace|{{{1|}}}|_| }}|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|<!-- | ||
--><!-- | -->[[Category:Commons category link is on Wikidata]]<!-- | ||
-->|{{#ifeq:{{replace|{{{1|}}}|_| }}|{{PAGENAME}}|<!-- | -->|{{#ifeq:{{replace|{{{1|}}}|_| }}|{{PAGENAME}}|<!-- | ||
... the local parameter is the same as the local pagename | ... the local parameter is the same as the local pagename | ||
-->{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}<!-- | -->[[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]]}}<!-- | ||
... the local parameter is not the pagename | ... the local parameter is not the pagename | ||
-->|{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}}}} }}<!-- | -->|[[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]]}}}} }}<!-- | ||
We don't have a locally-defined link | We don't have a locally-defined link | ||
| Line 26: | Line 26: | ||
... so we're using Wikidata | ... so we're using Wikidata | ||
--><!-- | -->[[Category:Commons category link from Wikidata]]<!-- | ||
<!-- ... or we're using the pagename | <!-- ... or we're using the pagename | ||
-->|{{preview warning|Commons category does not match the Commons sitelink on Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]}} | -->|[[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]]}} | ||
}} | }} | ||
}} | }} | ||
| Line 36: | Line 36: | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, not here! --> | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude>[[Category: Templates Vigyan Ready]] | ||
Latest revision as of 10:07, 19 January 2023
Wikimedia Commons has media related to [[commons:Category:Commons category|Commons category]].
Lua error in Module:TNT at line 182: Missing Commons dataset I18n/Module:TNT.tab.