Template:Commons category: Difference between revisions

escaping the string isn't needed. tested with Q739550 (M&M's) and Q8349 ("Weird Al" Yankovic)
(don't add userpages into Category:Commons category template with no category set))
(escaping the string isn't needed. tested with Q739550 (M&M's) and Q8349 ("Weird Al" Yankovic))
Line 21:
-->{{#if:{{#property:P373}}
| {{#if:{{{1|}}}
| {{#ifeq:{{#property:P373}}|{{#invoke:StringReplace|encode wiki page name|{{{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 -->
Anonymous user