Difference between revisions of "Template:Is italicized"
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
Usage
Takes QID as |1= (first parameter) and returns:
1if the item is a video game, book, or film (or at least its P31 says so), and- void otherwise
| The above documentation is transcluded from Template:Is italicized/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |