Difference between revisions of "Template:Is italicized"

From blackwiki
Jump to navigation Jump to search
imported>Czar
(documentation)
imported>Czar
(if no param, pull from wikidata directly)
Line 1: Line 1:
{{#switch: {{delink|{{#invoke:Wikidata|getValueFromID|{{{1|}}}|P31|FETCH_WIKIDATA}}}}
+
{{#switch:  
 +
 
 +
{{#if: {{{1|}}}
 +
| {{delink|{{#invoke:Wikidata|getValueFromID|{{{1|}}}|P31|FETCH_WIKIDATA}}}}
 +
| {{#property:P31}}
 +
}}
 +
 
 
| video game = 1
 
| video game = 1
 
| book = 1
 
| book = 1

Revision as of 23:45, 25 April 2016

0

Template documentation[view] [edit] [history] [purge]

Usage

Takes QID as |1= (first parameter) and returns:

  • 1 if the item is a video game, book, or film (or at least its P31 says so), and
  • void otherwise