Difference between revisions of "Template:Is italicized"

From blackwiki
Jump to navigation Jump to search
imported>Czar
(documentation)
imported>JJMC89
(fix return)
 
(3 intermediate revisions by one other user not shown)
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
 
| film = 1
 
| film = 1
| #default = 0
+
| #default = {{void}}
}}
+
}}<noinclude>
<noinclude>{{documentation}}</noinclude>
+
{{documentation}}</noinclude>

Latest revision as of 03:55, 26 April 2016

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