Help talk:Wikidata

Hash parameter
There's a section that says:

{| class="wikitable"

Simple





 * }

What does it mean? What is ? Is it a parser function, a magic word? What does it do? It's not explained, at least not in a way I understand.

Or is it just a mistake? --Amir E. Aharoni (talk) 10:41, 20 June 2020 (UTC)
 * It's just a mistake, but I can't find where you spotted that. --RexxS (talk) 16:48, 20 June 2020 (UTC)
 * It's just a mistake, but I can't find where you spotted that. --RexxS (talk) 16:48, 20 June 2020 (UTC)


 * Oh, it's on Help:Wikidata. I didn't notice that its talk page redirects here! --Amir E. Aharoni (talk) 18:54, 20 June 2020 (UTC)
 * RexxS, I moved the talk section here. --Amir E. Aharoni (talk) 19:03, 20 June 2020 (UTC)
 * I fixed the error and expanded the guidance a little. Please feel free to ping me if you need help with the topic. --RexxS (talk) 19:30, 20 June 2020 (UTC)
 * Thanks RexxS! --Amir E. Aharoni (talk) 19:35, 20 June 2020 (UTC)

Extracting the qualifier
To get data into an article, the Help page is helpful. I can extract a property from a linked Wikidata record, or from another record. What I am trying to get is the qualifier to a property in a record.

If for example you want to fill a table of Canadian provincial premiers, then instead of filling the name of each Premier in and trying to remember to change it when it changes, you can use Wikidata, for example, where 'p6' is the 'Head of Government' property and Q1951 is Alberta. This example gives:.

You might want to go another level, to give the date the Premier took office: in that case you want the 'start time' ('P580') qualifier to that property. How is that done?

Hogweard (talk) 21:46, 21 December 2021 (UTC)
 * I can help with this. Sorry I just saw your question today. Can you tell me which article you are working on? &mdash; Martin (MSGJ · talk) 12:14, 17 January 2022 (UTC)
 * I was going to do a random article, on Provinces of Belgium ('Belga Underricu'). All the details can be added using just normal Wikidata properties for each province, including listing the current governor of each. If I wanted to add the year each governor was appointed, that would be another step; the year being a property of the governor, not the province. It is really unimportant though. There may be other circumstances that a secondary property could be useful. Hogweard (talk) 22:11, 26 April 2022 (UTC)

Infobox from Wikidata?
Can someone provide an example of how to populate an infobox from Wikidata?

For example, the Wikipedia article on American Civil Liberties Union includes a segment of code that begins " {{Infobox organization ". My fantasy is that " {{Infobox Q21637}} " would be enough (because Q21637 is the Q ID for the American Civil Liberties Union). Then if a user wanted to include some information but not others, there would be fairly simple ways to specify information that a person wanted (a) in the article but not in Wikidata and (b) in Wikidata but not in the article.

Does documentation of how to do this exist somewhere? If yes, how can I find it? If no, can someone provide the needed documentation? Thanks, DavidMCEddy (talk) 19:39, 1 June 2023 (UTC)


 * It is easily done - lots of infoboxes on various Wikipediae use the technique. Two broad possibilities present themselves:
 * The article uses {{tl|Infobox organization}}. That template does not tie in with Wikidata as far as I can see. It really should do - or you can create a new template which does.
 * In relevant fields, enter the Wikidata property, so for the name of the Chairman / President / Chief Bottlewasher / Whatever add {{ #property:p488 }}
 * This only works when the article is linked to Wikidata. Hogweard (talk) 11:26, 18 June 2023 (UTC)


 * {{re|Hogweard}} Thanks for the reply. I've managed to do some of this in the Wikipedia articles on Cross-Lines Community Outreach and Pregnancy Justice using things like the following:
 * {{infobox organization/Wikidata

| qid = Q119294047 | fetchwikidata=ALL | suppressfields=flag official_language | onlysourced=on | noicon=on | dateformat=mdy }} :
 * My partial success doing this with the description of another minor problem appears in Talk:Cross-Lines Community Outreach: The MediaWiki software takes the title for the title of the article, NOT from the Wikidata item.  That problem appears fairly obvious with the different sample infoboxes drawing data from two different QIDs in the same article, in this case on a Talk page:  The two infoboxes both use the title from the article, not from the QID.  That further means that if someone gets the wrong QID, the infobox will display incorrect data without warning.
 * Another problem I found was that each entry in the Wikidata item for "Cross-Lines Community Outreach" for "Total Revenue" has options to add both a "qualifier" and a "reference". I had trouble getting the year for said "Total Revenue" to display.  Eventually I discovered I had to enter a date for "Point in time" as a "qualifier", NOT as something as a "reference".  DavidMCEddy (talk) 12:30, 18 June 2023 (UTC)
 * I have replied to you at Template talk:Infobox organization/Wikidata &mdash; Martin (MSGJ · talk) 07:15, 19 June 2023 (UTC)