Difference between revisions of "Template:GetEtAl"
Jump to navigation
Jump to search
imported>Evolution and evolvability ({{{1|}}}) |
imported>Evolution and evolvability (correct to also count author name string, not just author) |
||
| Line 3: | Line 3: | ||
{{#ifeq:Wikipedia|{{#invoke:WikidataIB |getValue |qid={{{1|{{{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}} | ||
| − | | | + | |{{#invoke:String|count |
| − | {{#invoke:String|count | + | |source={{#invoke:WikidataIB |getValue |qid={{{1|{{{Q|Q28651505}}}}}} |P50 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=#}} |
| − | |source={{#invoke:WikidataIB |getValue |qid={{{1|{{{Q|Q28651505}}}}}} |P50 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true}} | + | {{#invoke:WikidataIB |getValue |qid={{{1|{{{Q|Q28651505}}}}}} |P2093 |linked=0 |fetchwikidata=ALL |onlysourced=no |noicon=true |postfix=#}} |
| − | |pattern= | + | |pattern=# |
| − | |||
}} | }} | ||
}}<noinclude>{{doc}}</noinclude> | }}<noinclude>{{doc}}</noinclude> | ||
Latest revision as of 03:28, 26 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. |