Difference between revisions of "Template:Infobox journal/wikidata"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(subject from wikidata P921)
imported>RexxS
(add support for arbitrary access)
Line 33: Line 33:
 
| label3      = [[Outline of academic disciplines|{{#if:{{{subject|}}} |Subject |Discipline}}]]
 
| label3      = [[Outline of academic disciplines|{{#if:{{{subject|}}} |Subject |Discipline}}]]
 
| class3      = category
 
| class3      = category
| data3      = {{#invoke:WikidataIB |getValue |P921 |name=subject |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |{{#if:{{{subject|}}} |{{{subject}}} |{{{discipline|}}} }} }}
+
| data3      = {{#invoke:WikidataIB |getValue |P921 |name=subject |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |qid={{{qid|}}} |{{#if:{{{subject|}}} |{{{subject}}} |{{{discipline|}}} }} }}
  
 
| label4      = {{nowrap|[[Peer review|Peer-reviewed]]}}
 
| label4      = {{nowrap|[[Peer review|Peer-reviewed]]}}
Line 42: Line 42:
  
 
| label6      = Edited by  
 
| label6      = Edited by  
| data6      = {{#invoke:WikidataIB |getValue |P98 |name=editor |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |{{{editors|{{{editor|}}}}}} }}
+
| data6      = {{#invoke:WikidataIB |getValue |P98 |name=editor |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |qid={{{qid|}}} |{{{editors|{{{editor|}}}}}} }}
  
  
Line 50: Line 50:
  
 
| label8      = Publisher
 
| label8      = Publisher
| data8      = {{#if:{{#invoke:WikidataIB |getValue |P123 |name=publisher |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |{{{publisher|}}} }} |{{longitem|{{#invoke:WikidataIB |getValue |P123 |name=publisher |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |{{{publisher|}}} }}{{#if:{{{country|}}}| ({{{country}}})}} }} }}
+
| data8      = {{#if:{{#invoke:WikidataIB |getValue |P123 |name=publisher |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |qid={{{qid|}}} |{{{publisher|}}} }} |{{longitem|{{#invoke:WikidataIB |getValue |P123 |name=publisher |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata}}} |onlysourced={{{onlysourced|}}} |qid={{{qid|}}} |{{{publisher|}}} }}{{#if:{{{country|}}}| ({{{country}}})}} }} }}
  
 
| label9      = {{longitem|Publication history}}
 
| label9      = {{longitem|Publication history}}

Revision as of 17:14, 17 August 2017

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

Usage

Tracking categories

Template:Wikidata infoboxes