Jump to content

Template:Tracks Wikidata: Difference between revisions

Allow use in a category. No changes for transclusions in templates or modules. Tested first in /sandbox.
(Change image link to something useful, swap image)
(Allow use in a category. No changes for transclusions in templates or modules. Tested first in /sandbox.)
Line 9: Line 9:
   | x = 12
   | x = 12
   | y = 0
   | y = 0
}}
  }}
| position = {{{position|}}}
| position = {{{position|}}}
| text    = This {{module other|module|template}} [[:Category:{{{cat|Wikidata tracking categories}}}|tracks]] {{#if:{{{section|}}} | one or more [[Wikidata]] properties; see [[#{{{section}}}|§ {{{section}}}]] for details. | the [[Wikidata]] propert{{#if:{{{2|}}}|ies|y}}:
| text    = This {{template other
{{#invoke:Uses Wikidata|usesProperty}}
  | template
}}}}<includeonly>{{#switch:{{SUBPAGENAME}}
  | {{module other
|sandbox |testcases |doc= <!--no category-->
    | module
|#default=[[Category:{{module other|Modules|Templates}} tracking Wikidata]]
    | {{category other
}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>
      | category
      | page <!-- not template, module, or category -->
      }}
    }}
  }} [[:Category:{{{cat|Wikidata tracking categories}}}|tracks]] {{#if:{{{section|}}}
  | one or more [[Wikidata]] properties; see [[#{{{section}}}|§&nbsp;{{{section}}}]] for details.
  | the [[Wikidata]] propert{{#if:{{{2|}}}|ies:|y:}} {{#invoke:Uses Wikidata|usesProperty}}
  }}
}}<includeonly>{{#switch:{{SUBPAGENAME}}
  |sandbox |testcases |doc= <!--no category-->
  |#default = {{template other
    | [[Category:Templates tracking Wikidata]]
    | {{module other
      | [[Category:Modules tracking Wikidata]]
      | {{category other
        | <!-- if used in a category, don't automatically add parent category -->
        | <!-- not template, module, or category -->
        }}
      }}
    }}
  }}</includeonly><noinclude>
{{Documentation}}<!-- Add categories and interwikis to the /doc sub-page -->
</noinclude>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.