Template:Commons category: Difference between revisions

PAGENAME -> PAGENAMEBASE
m (Changed protection level of Template:Commons category ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
(PAGENAME -> PAGENAMEBASE)
Line 3:
<!-- {{#if:x|}} strips whitespace from parameter 1,
in case it is fed like this: {{Commons category| Some cat }}. -->
|Category:{{#if:x| {{{1| {{PAGENAMEPAGENAMEBASE}} }}} }}<!--
-->|{{{2|{{{1|{{PAGENAMEPAGENAMEBASE}}}}}}}}<!--
-->}}<includeonly>{{#if:{{{1|}}}||[[Category:Commons category template with no category set]]}}</includeonly><noinclude>
 
Line 17:
| [[Category:Commons category with local link different than on Wikidata]] <!-- Figure out the best link -->
}}
| {{#ifeq:{{#property:P373}}|{{PAGENAMEPAGENAMEBASE}}
| [[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 -->