Difference between revisions of "Template:GetReview"

From blackwiki
Jump to navigation Jump to search
imported>Evolution and evolvability
(Undid revision 943143824 by Evolution and evolvability (talk))
imported>Evolution and evolvability
Line 1: Line 1:
{{#if:{{{R|}}}{{{Q|}}}
+
{{#invoke:String|replace
|{{#invoke:String|replace
+
|(''[{{trim|
|(''[{{trim|
+
{{#invoke:String2 |split
  {{#invoke:String2 |split
+
|{{#invoke:WikidataIB |getValue |qid={{{Q|}}} |P7347 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=", "}}
  |{{#invoke:WikidataIB |getValue |qid={{{Q|}}} |P7347 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=", "}}
+
  {{#invoke:WikidataIB |getValue |qid={{{Q|}}} |P4032 |qual=P7347|qualsonly=1|fetchwikidata=ALL |onlysourced=no |noicon=true}}
    {{#invoke:WikidataIB |getValue |qid={{{Q|}}} |P4032 |qual=P7347|qualsonly=1|fetchwikidata=ALL |onlysourced=no |noicon=true}}
+
  {{#invoke:WikidataIB |getValue |qid={{{Q|}}} |P4032 |qual=2699 |qualsonly=1|fetchwikidata=ALL |onlysourced=no |noicon=true}}
    {{#invoke:WikidataIB |getValue |qid={{{Q|}}} |P4032 |qual=2699 |qualsonly=1|fetchwikidata=ALL |onlysourced=no |noicon=true}}
+
|sep=", " |idx=1}}
  |sep=", " |idx=1}}
 
|([ here])
 
|
 
}}
 
 
{{{R|}}}
 
{{{R|}}}
 
+
}} here]'')|([ here])|}}
}} here]'')
+
<noinclude>{{doc}}</noinclude>
}}<noinclude>{{doc}}</noinclude>
 

Revision as of 03:22, 29 February 2020

([ here])

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

Usage

Retrieve the peer review for an item.

|Q= is to provide a QID, from which is extracted either the Template:Property, or the P7347 qualifier of the first Template:Property.

|R= is the manual link override.

Examples

  • {{GetReview|Q=Q28651505}} → ([ here])
  • {{GetReview|Q=Q76846397}} → ([ here])
  • {{GetReview|R=www.example.com}} → (here)

See also