Template:Uses Wikidata and Template:Uses Wikidata/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Wrap catting in <includeonly> instead of an ifeq
 
m nope, doesn't work
 
Line 2: Line 2:
| position = {{{position|}}}
| position = {{{position|}}}
| project = data
| project = data
| text = This {{module other|module|template}} uses {{#if:{{{section|}}} | one or more [[Wikidata]] properties; see {{Section link||{{{section}}}}} for details. | the [[Wikidata]] propert{{#if:{{{2|}}}|ies|y}}:
| text = This {{module other|module|template}} uses {{#if:{{{section|}}} | one or more [[Wikidata]] properties; see [[#{{{section}}}|§&nbsp;{{{section}}}]] for details. | the [[Wikidata]] propert{{#if:{{{2|}}}|ies|y}}:
{{#invoke:Uses Wikidata|usesProperty}}
{{#invoke:Uses Wikidata/sandbox|usesProperty}}
}}}}<includeonly>{{#switch:{{SUBPAGENAME}}
}}}}{{#switch:{{SUBPAGENAME}}
|sandbox |testcases |doc= <!--no category-->
|sandbox |testcases |doc= <!--no category-->
|#default={{module other |[[Category:Modules using data from Wikidata]] |{{template other |[[Category:Templates using data from Wikidata]]}} }}
|#default={{#ifeq:{{PAGENAME}} |Uses Wikidata ||{{module other |[[Category:Modules using data from Wikidata]] |{{template other |[[Category:Templates using data from Wikidata]]}} }} }}
}}</includeonly><noinclude>
}}<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage -->
</noinclude>
</noinclude>