User:Pigsonthewing/2017-10

Wikidata basics edit

 

Babel edit

Put a Babel template on your user page, to control the language of labels and descriptions which Wikidata shows by default.

If you natively read and write Arabic, but also use English the code would be:

{{#babel:ar|en-4}}

(note the hyphen), where "ar" is the ISO 639-1, ISO 639-2 or ISO 639-3 code for the Arabic language, and "5" indicates your level of proficiency on a scale of 1-5 (or "N" for another native language).

You can add more languages, like this:

{{#babel:ar|en-4|es-3|fr-4}}

Tools edit

To do edit

Properties edit

SPARQL edit

Basics edit

Examples edit

  • Example tab on the Query Service page

Visualisations edit

Mangled URLs in Firefox edit

Run the query in the Chrome browser to get the "fixed" version:

Display a query on a wiki page edit

Use {{SPARQL}}. For example,

{{SPARQL|query=SELECT ?item WHERE {
  ?item wdt:P31/wdt:P279* wd:Q33506 .
  ?item wdt:P2003 ?instagram . 
}
}}

renders as:

SELECT ?item WHERE {
  ?item wdt:P31/wdt:P279* wd:Q33506 .
  ?item wdt:P2003 ?instagram . 
}
Try it!

That's a prefix of {{SPARQL|query= and a closing pair of }}.

Embed edit

Add embed.html to give: