Difference between revisions of "Template:GetReview"

From blackwiki
Jump to navigation Jump to search
imported>Evolution and evolvability
(rm brackets)
imported>Evolution and evolvability
(return plain url)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#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={{{1|{{{Q|Q28651505}}}}}} |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={{{1|{{{Q|Q28651505}}}}}} |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={{{1|{{{Q|Q28651505}}}}}} |P4032 |qual=2699 |qualsonly=1|fetchwikidata=ALL |onlysourced=no |noicon=true}}
 
|sep=", " |idx=1}}
 
|sep=", " |idx=1}}
 
{{{R|}}}
 
{{{R|}}}
}} here]''|(''[ here]'')|}}
+
}}<noinclude>{{doc}}</noinclude>
<noinclude>{{doc}}</noinclude>
 

Latest revision as of 14:04, 14 August 2020

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}} →
  • {{GetReview|Q=Q76846397}} →
  • {{GetReview|R=www.example.com}} → http://www.example.com

See also