Template:Commons category: Difference between revisions
Content added Content deleted
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: | Line 3: | ||
<!-- {{#if:x|}} strips whitespace from parameter 1, |
<!-- {{#if:x|}} strips whitespace from parameter 1, |
||
in case it is fed like this: {{Commons category| Some cat }}. --> |
in case it is fed like this: {{Commons category| Some cat }}. --> |
||
|Category:{{#if:x| {{{1| {{ |
|Category:{{#if:x| {{{1| {{PAGENAMEBASE}} }}} }}<!-- |
||
-->|{{{2|{{{1|{{ |
-->|{{{2|{{{1|{{PAGENAMEBASE}}}}}}}}<!-- |
||
-->}}<includeonly>{{#if:{{{1|}}}||[[Category:Commons category template with no category set]]}}</includeonly><noinclude> |
-->}}<includeonly>{{#if:{{{1|}}}||[[Category:Commons category template with no category set]]}}</includeonly><noinclude> |
||
Line 17: | Line 17: | ||
| [[Category:Commons category with local link different than on Wikidata]] <!-- Figure out the best link --> |
| [[Category:Commons category with local link different than on Wikidata]] <!-- Figure out the best link --> |
||
}} |
}} |
||
| {{#ifeq:{{#property:P373}}|{{ |
| {{#ifeq:{{#property:P373}}|{{PAGENAMEBASE}} |
||
| [[Category:Commons category with page title same as on Wikidata]] <!-- Ending up here is just fine --> |
| [[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 with page title different than on Wikidata]] <!-- Figure out the best link here too --> |