Jump to content

Module talk:Wikidata

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lowercase sigmabot III (talk | contribs) at 05:56, 8 November 2021 (Archiving 1 discussion(s) to Module talk:Wikidata/Archive 2) (bot). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

QID lookup from enwp article title

Multilingual qualifier

How to get a specific value of a multilingual qualifier e.g. the official UNESCO name of Q351 in german? The function getQualifierSnak should use the parameter language if a qualifier is given, currently only the first matched entry is always returned (if qualifier then return qualifier[1] end).--Sinuhe20 (talk) 19:29, 16 July 2020 (UTC)[reply]

@Sinuhe20: You can do it with WikidataIB's getValue function:
  • {{#invoke:WikidataIB |getValue |fwd=ALL |qid=Q351 |P1435 |qual=P1448 |qualsonly=y |lang=de}} → Nationalpark Yellowstone Edit this on Wikidata
--RexxS (talk) 17:16, 9 September 2020 (UTC)[reply]

Italicization does not work for news publications

{{Wikidata}} does not work appropriately for citing news sources, where the newspaper should be in |work= and should be italicized (unlike |publisher=, which is not; see {{cite news}} documentation and discussion over the years at WT:CS1 for more). Currently, the template is only able to pull from publisher (P123), with no equivalent to work on Wikidata. As use of this scales up, it's crucial that we resolve this issue to make the two projects interoperable. Thoughts? {{u|Sdkb}}talk 22:22, 7 November 2021 (UTC)[reply]

An example usage would probably help us understand. I don't think this template is intended to do what you want to do. You might look at {{Cite Q}}, which has its own problems but which is intended for citing sources using Wikidata information. – Jonesey95 (talk) 02:30, 8 November 2021 (UTC)[reply]