"ढाँचा:Commons category" को बिचमी भिन्नता
Content deleted Content added
imported>Fayenatic london another category deleted per Wikipedia:Categories for discussion/Log/2017 January 25 |
+copied from maiwiki |
||
पंक्ति ३:
<!-- {{#if:x|}} strips whitespace from parameter 1,
in case it is fed like this: {{Commons category| Some cat }}. -->
|
-->}}<includeonly>{{#if:{{{1|}}}||<noinclude>[[Category:Commons category template with no category set]]</noinclude>}}</includeonly><noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude><includeonly>
{{#switch:{{NAMESPACE}}||{{ns:14}}=<!-- Only articles and categories. -->
{{#if:{{#property:P373}}
| {{#if:{{{1|}}}
| {{#ifeq:{{#property:P373}}|{{#invoke:StringReplace|encode wiki page name|{{{1|}}}}}
| <!-- We want to end up here -->
|
}}
| {{#ifeq:{{#property:P373}}|{{PAGENAME}}
| <!-- Ending up here is just fine -->
|
}}
}}
| <noinclude>[[Category:Commons category without a link on Wikidata]]</noinclude> <!-- These we still need to import -->
}}
}}</includeonly>
|