Template:Commons category: Difference between revisions

Content added Content deleted
(whitespace fix)
(Adding Wikidata corruption tracking so we can find out if we're ready for the Wikidata switchover.)
Line 9: Line 9:
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude><includeonly><!-- Some tracking categories to see if we're ready to switch to Wikidata -->
</noinclude>
{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories. -->
{{#if:{{#property:P373}}
| {{#if:{{{1|}}}
| {{#ifeq:{{#property:P373}}|{{{1|}}}
| [[Category:Commons category with local link same as on Wikidata]] <!-- We want to end up here -->
| [[Category:Commons category with local link different than on Wikidata]] <!-- Figure out the best link -->
}}
| {{#ifeq:{{#property:P373}}|{{PAGENAME}}
| [[Category:Commons category with page title same as on Wikidata]] <!-- Ending up here is just fine -->
| [[Category:Commons category with page title different than on Wikidata]] <!-- Figure out the best link here too -->
}}
}}
| [[Category:Commons category without a link on Wikidata]] <!-- These we still need to import -->
}}
}}</includeonly>