Anonymous user
Template:Commons category: Difference between revisions
use category defined on wikidata if no parameter is given
(Undid revision 681550535 by Nyttend (talk) don't pre-empt the outcome of Wikipedia:Categories for discussion/Log/2015 August 20#Category:Commons category template with no category set) |
(use category defined on wikidata if no parameter is given) |
||
Line 3:
<!-- {{#if:x|}} strips whitespace from parameter 1,
in case it is fed like this: {{Commons category| Some cat }}. -->
|1=Category:{{#if:
|{{#if:{{#property:P373}}
|{{#property:P373}}
|{{PAGENAME}}
}}
}}
|2={{{2|{{{1|{{PAGENAME}}}}}}}}<!--
-->}}<noinclude>
{{Documentation}}
<!-- Add categories
</noinclude><includeonly>{{#if:{{{1|}}}||{{#if:{{#property:P373}}||[[Category:Commons category template with no category set]]}}}}<!-- Some tracking categories to see if we're ready to switch to Wikidata -->
{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories. -->
{{#if:{{#property:P373}}
|