Difference between revisions of "Template:Tracks Wikidata"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Izkala
(Change image link to something useful, swap image)
imported>Zyxw
(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>

Revision as of 19:53, 25 November 2015

Template documentation[create]