Using a manual infobox

edit

Pick a movie and insert an {{Infobox film}} below.

Try doing this with a Visual Editor (VE). Then, try doing it with Wikitext. If you'd prefer, you are welcome to skip the VE step.

Using a Wikidata-powered infobox

edit
Georges Duhamel
 
Georges Duhamel, c. 1930
Born30 June 1884  
Paris  
Died13 April 1966   (aged 81)
Valmondois  
OccupationWriter, poet, physician  
Spouse(s)Blanche Albane  
ChildrenAntoine Duhamel  
Awards
Signature
 
Position heldpresident of the Société des gens de lettres (1936–1936)  

Let's try using a WD-powered infobox with {{Infobox person/wikidata}}.

Generally, the template page documents everything you need to know about using that infobox.

Since we're in a sandbox, we will need to manually assign a qid and a name.

For example, the code below returns:

{{Infobox person/Wikidata|qid=Q20733|name=Georges Duhamel|fetchwikidata=ALL}}

You can also organise this more nicely:

{{Infobox person/Wikidata

| qid=Q20733
| name=Georges Duhamel
| fetchwikidata=ALL
}}

Do this exercise for one figure of your choice with a Wikidata item, and for Ludwig van Beethoven. Once you succeed, try different variations using the following parameters:

suppressfields
dateformat
noicon
onlysourced

Fully automatic infobox

edit

{{Infobox gene}} uses its own module customised to pull and display Wikidata without local manipulation.

Since we're in a sandbox and not the article (which contains the interwiki link), we will need to manually provide some input. Reference the template page and reproduce the infobox in Beta-2 microglobulin below.

Archives at (P485) workaround

edit

Use {{Archival records}} as a workaround for the block on archives at (P485) on English Wikipedia infoboxes.

Location (institution where archives are held) parameter pulls from Wikidata if left blank.

It is recommended that you also specify the following parameters:

title
description_URL

Other parameters may also be specified as desired, but these are still manual (not WD-aware) due to current module limitations.

For example, the code below produces:

<!--sorry, fixing qid retrieval on this one! But the template should still work with the same code when placed on an article page. -->

{{Archival records
| title=Ursula Franklin fonds
| location=
| inventory_number=B1996-0004, B2015-0005
| description_URL=https://discoverarchives.library.utoronto.ca/index.php/ursula-martius-franklin-fonds}}

I can also write:

<!--sorry, fixing qid retrieval on this one! But the template should still work with the same code when placed on an article page. -->

{{Archival records
| qid=Q77729
| title=Ursula Franklin fonds
| fetchwikidata=all
| inventory_number=B1996-0004, B2015-0005
| description_URL=https://discoverarchives.library.utoronto.ca/index.php/ursula-martius-franklin-fonds}}

Produce the template for a figure with an archives at (P485) property in their Wikidata entry.

General tips

edit

This is for general application, not for infoboxes specifically.

edit

Use {{Wikidata entity link}} to get a link to a Wikidata item or property. {{Q}} is the shortcut to the same template.

For example:

{{Wikidata entity link|P485}}
{{Q|P485}}

both produce archives at (P485).

Inserting Wikidata values into Wikipedia articles

edit

See: Wikipedia:Wikidata#Inserting_Wikidata_values_into_Wikipedia_articles

But please bear in mind that the New RFC on linking to Wikidata (June 2018) found:

"Wikidata should not be linked to within the body of the article except in the manner of hidden comment(s) as to mentioning the Q-number."