Wikidata:Wikiquote/How to help

Wikidata:Wikiquote
Where to find Wikiquote sitelinks on a Wikidata item page
How to add Wikiquote sitelinks to Wikidata
screenshot of sitelinks highlighted on the English Wikiquote page for Douglas Adams
screenshot highlighting link to Wikidata item on Wikiquote

There are a lot of things you can do to help with integrating Wikiquote and Wikidata.

edit

This can be achieved by adding links for Wikiquote pages that correspond to a particular item on Wikidata. For example, Wikidata has one item (and one item only) for Douglas Adams. The Douglas Adams item page then links out to the all the Wikiquote pages in different languages on Douglas Adams (it also links out the Wikipedia pages on Douglas Adams).

Sitelinks can be added in more than 200 languages but you can only add a sitelink for a language if a page for that language version of Wikiquote already exists.

When adding a Wikiquote sitelink for an item, you will need to input both the language of the Wikiquote page and the title of the page as it appears on Wikiquote. Wikimedia sitelinks are added to an item page after the Statements section; for Wikiquote, add sitelinks under the header "Wikiquote pages linked to this item."

Once added to a Wikidata item, sitelinks will appear on the corresponding Wikiquote page in the left sidebar menu under "Languages." A link to the Wikidata item will also appear in the left sidebar menu under "Tools."

Main namespace

edit

Because there can be a one-to-one relationship between a Wikiquote page for a quotable person, a theme, or a creative work, and a Wikipedia page for the same thing, often items will already exist for Wikiquote pages on Wikidata. In these cases, sitelinks for Wikiquote page can be easily added to the existing items on Wikidata.

Examples:

Wikidata item: Douglas Adams (Q42)
Wikiquote page to add as sitelink: http://en.wikiquote.org/wiki/Douglas_Adams
Wikiquote site to add to "Language Code" column: enwikiquote
Page title to add to "Linked page" column: Douglas Adams

Wikidata item: Douglas Adams (Q42)
Wikiquote page to add as sitelink: http://fr.wikiquote.org/wiki/Douglas_Adams
Wikiquote site to add to "Language Code" column: frwikiquote
Page title to add to "Linked page" column: Douglas Adams

You can only add a sitelink for a Wikiquote page to one item only on Wikidata. You will see an error message when attempting to add a new sitelink if that link has already been added to another item page. Wikidata also does not support anchors (links to a specific section of a page) as sitelinks—only full pages can be added. These two constraints mean that Wikiquote pages for creative works are not to be added as sitelinks to the item page for the quotable person responsible for the creative work. Instead, these pages should be linke to the corresponding work item, i.e. the main item about that work on Wikidata.

Examples:

Wikidata item: Douglas Adams (Q42)
Wikiquote page to add as sitelink: http://en.wikiquote.org/wiki/Douglas_adams#The_Hitchhiker.27s_Guide_to_the_Galaxy_.282001.29 wrong

Wikidata item: Douglas Adams (Q42)
Wikiquote page to add as sitelink: http://en.wikiquote.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy wrong

Wikidata item: The Hitchhiker's Guide to the Galaxy pentalogy (Q25169)
Wikiquote page to add as sitelink: http://en.wikiquote.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy right

Note: If you receive an error message but believe the item you are editing is the most appropriate one for a sitelink, you may need to merge two items. Please consult Help:Merge or visit Wikidata:Interwiki_conflicts to report a conflict and ask for others to look at the situation.

Use data

edit

For Wikiquote pages that have been linked to Wikidata, it's possible to access data for the corresponding item directly and use it on the Wikiquote page, for example, by adding it to the standard description for quotable people as well as other templates used to standardize the look of Wikiquote content.

This is possible by using the #property parser function and requires that you know the property of a data statement. As discussed above, statements provide facts and informations about items like the capital or currency of a destination.

 
Diagram of a Wikidata statement

In order to fully express all the knowledge of the projects that are part of Wikimedia family, statements are composed of a series of elements including properties, qualifiers, sources, and so on. For the purpose of using the #property parser function, it is only necessary to know the property of a given statement of an item.

Properties can be accessed by the name of the property or by the property number. For example:

  • {{#property:date of birth}} or {{#property:P569}} will return the "date of birth" value.
  • {{#property:occupation}} or {{#property:P106}} will return the "occupation" value.

The above is added directly to the wikitext of a Wikiquote page.

Wikidata has a list of its properties, to show what can be returned (if the data item contains the property as one of its statements).

Modules

edit

Data can also be accessed with Lua modules, which are much more flexible. For more information on using modules, please see w:Module:Wikidata#Usage.

Improve data

edit

You can help grow the data for Wikiquote main namespace pages on Wikidata by adding new statements to items of interest to the Wikiquote community.

Other pages

edit

Wikiquote pages that are outside of the main namespace can still have items in Wikidata. This includes portal pages, templates, category pages, help pages, and special pages. Follow the rules outlined here and here.

Typically, the only statements added to such pages will be "instance of" and "topic of" statements. For example, portals should use instance of→Wikimedia portal and Wikimedia portal's main topic (P1204), while a category page will use instance of→Wikimedia category page and category's main topic (P301).