Template:Commons category: Difference between revisions

Handle underscores (which was asked for in the original edit request that resulted in the page name encoding, but never implemented)
(escaping the string isn't needed. tested with Q739550 (M&M's) and Q8349 ("Weird Al" Yankovic))
(Handle underscores (which was asked for in the original edit request that resulted in the page name encoding, but never implemented))
Line 21:
-->{{#if:{{#property:P373}}
| {{#if:{{{1|}}}
| {{#ifeq:{{PAGENAME:{{#property:P373}}}}|{{PAGENAME:{{{1|}}}}}
| <!-- [[Category:Commons category with local link same as on Wikidata]] – deleted per [[Wikipedia:Categories for discussion/Log/2017 January 25]] -->
| [[Category:Commons category with local link different than on Wikidata]] <!-- Figure out the best link -->
}}
| {{#ifeq:{{PAGENAME:{{#property:P373}}}}|{{PAGENAME}}
| <!-- [[Category:Commons category with page title same as on Wikidata]] – deleted per [[Wikipedia:Categories for discussion/Log/2017 January 25]] -->
| [[Category:Commons category with page title different than on Wikidata]] <!-- Figure out the best link here too -->
Anonymous user