Module:Import table/doc

Usage

{{#invoke:Import table|import
|page=
|config=
|common=
}}

This module is designed to import data from tables in Wikipedia articles into Wikidata. The first column of the table must be the name of the item.

  • If this is a link (or a redirect) to an existing article which has a corresponding Wikidata item, then the data will be imported into this item.
  • If the first column contains a valid identifier for a Wikidata item (e.g. Q123456) then the data will be imported into this item.
  • If this is plain text or a redlink, then the data will be imported into a new Wikidata item.

Parameters

  • page - the name of the article/page to parse, e.g. |page=List of dams in South Africa
  • config - details about what type of data is held in each column of the table formatted as type-property-option. Currently recognised types are:
    • label - the name of the article
    • wikilink - a link to an article which should be the value of the property, e.g. wikilink-P131
    • quantity - specify the unit in the third parameter, e.g. quantity-P2048-Q11573
    • year - a 4-digit year, e.g. year-P571
    • text - any text to import into a string datatype, e.g. text-P3562
    • coord - coordinate position, inside the {{coord}} template, e.g. coord-P625
    • donotuse (or any other unrecognised type) - indicates a column that will not be imported
  • common - a set of values that every item in the list should have, formatted in pairs as property-value, e.g. |common=P31-Q12323,P17-Q258

Notes

  • The module will not import any claim if there is already a statement for that property in Wikidata, no matter if the value is the same or different to that being imported, and even if the value is marked as deprecated.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.