Difference between revisions of "Template:Tracks Wikidata"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Evad37
(update from sandbox - custom cat to replace default link (Category:Wikidata tracking categories) for "tracks"; wrap categorising code in <includeonly>)
imported>Frietjes
(use svg composite image to reduce overhead)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Sister project
 
{{Sister project
| image    = {{Superimpose
+
| image    = [[File:Wikidata-logo-with-magnifying-glass-icon.svg|40px|link=Wikipedia:Wikidata]]
  | base = Wikidata-logo.svg
 
  | base_width = 40px
 
  | base_link =
 
  | float = Gnome-searchtool.svg
 
  | float_link = File:Gnome-searchtool.svg
 
  | float_width = 22px
 
  | x = 12
 
  | y = 4
 
}}
 
 
| 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}}}|§&nbsp;{{{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>

Latest revision as of 19:34, 12 November 2018

Template documentation[create]