Difference between revisions of "Template:GetEtAl"
Jump to navigation
Jump to search
imported>Evolution and evolvability m (ce) |
imported>Evolution and evolvability ({{{1|}}}) |
||
| Line 1: | Line 1: | ||
{{#if: | {{#if: | ||
| − | {{#ifeq:Wikipedia|{{#invoke:WikidataIB |getValue |qid={{{Q|Q76846397}}} |P793 |qual=P144 |qualsonly= 1 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=", "}}|1}} | + | {{#ifeq:Wikipedia|{{#invoke:WikidataIB |getValue |qid={{{1|{{{Q|Q76846397}}}}}} |P793 |qual=P144 |qualsonly= 1 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=", "}}|1}} |
| − | {{#ifeq:Wikipedia|{{#invoke:WikidataIB |getValue |qid={{{Q|Q76846397}}} |P144 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=", "}}|1}} | + | {{#ifeq:Wikipedia|{{#invoke:WikidataIB |getValue |qid={{{1|{{{Q|Q76846397}}}}}} |P144 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=", "}}|1}} |
|{{#expr: | |{{#expr: | ||
{{#invoke:String|count | {{#invoke:String|count | ||
| − | |source={{#invoke:WikidataIB |getValue |qid={{{Q|Q28651505}}} |P50 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true}} | + | |source={{#invoke:WikidataIB |getValue |qid={{{1|{{{Q|Q28651505}}}}}} |P50 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true}} |
|pattern=, | |pattern=, | ||
}} + 1 | }} + 1 | ||
}} | }} | ||
}}<noinclude>{{doc}}</noinclude> | }}<noinclude>{{doc}}</noinclude> | ||
Revision as of 09:09, 25 February 2020
Usage
For a Wikidata Q item, if property Template:Property, or the P144 qualifier of a Template:Property is "Wikipedia", the return the number of authors. Useful for WP:W2J publications.
Example
{{GetEtAl|Q=Q76846397}} →
{{GetEtAl|Q=Q28651505}} →
See also
{{Cite Q EtAl}}{{GetReview}}{{GetLicense}}
| The above documentation is transcluded from Template:GetEtAl/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. |