Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Import table/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Module rating|alpha}} == Usage == <pre>{{#invoke:Import table|''import'' |page= |config= |common= }}</pre> 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. {{para|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. <code>wikilink-P131</code> ** ''quantity'' - specify the unit in the third parameter, e.g. <code>quantity-P2048-Q11573</code> ** '' year'' - a 4-digit year, e.g. <code>year-P571</code> ** '' text'' - any text to import into a string datatype, e.g. <code>text-P3562</code> ** '' coord'' - coordinate position, inside the {{tl|coord}} template, e.g. <code>coord-P625</code> ** ''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. {{para|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. <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Wikidata modules]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Module rating
(
edit
)
Template:Para
(
edit
)
Template:Tl
(
edit
)