User:Bitofdust/sandbox/workinghourAug17

Going in edit

Welcome to your scratchpad for today's exercises!

We will use the contents of this page and Wikipedia's sandbox (scratchpad) feature to learn about infoboxes and practise editing them.

We will focus on Wikipedia infoboxes today, although variations of the infobox are found on multiple Wikimedia projects (Wikipedia, Wikidata, Commons, etc.). Wikipedia is a well-used general reference source, and allows us to experiment with edits in the sandbox.

Setup edit

To begin, click "Edit source" and copy and paste the contents of this entire page into your own sandbox.

  • ⇧ Shift + click Sandbox in the user toolbar in the top right corner. This opens your sandbox in a new window.
  • If your sandbox already has stuff on it, make a new subpage directly from the sandbox URL. The URL is in the address bar in your browser: https://en.wikipedia.org/wiki/User:____/sandbox. After /sandbox, write /something.
  • Once you are on the new subpage, click Start the... page or Create source (to the left of the search bar)
  • Copy and paste the contents of this page into your new subpage.
  • Finally, publish the page. You now have a copy of this page which you can freely edit.

How to use edit

Under each section, you will see instructions on what infobox to use and how. If you click Edit source on each section, you will see an editing area marked out with comments. These comments look like this: <!-- I am a comment -->. They are hidden text often used to communicate helpful information (e.g. instructions, warnings) to other editors.

On the text (source) editor, press Show preview to display the results without saving.

Press Publish changes to save changes.

Rule of thumb edit

You will find anything and everything you need to know about using a template (infoboxes included) in the documentation page for that template.

To "investigate" a template, view the page in edit mode and identify what template is in use. Then, find the page for that template (in the search box, type Template:(name of template)) to see the documentation. For example: if I want to look up {{Infobox film}}, I would search Template:Infobox film which gives me this page

Remember, templates are wrapped in squigglies ({{foo}}) and transclude some pre-written function.

In other words, our goal today is to:

  • Get comfortable using transclusion via Wiki markup
  • Get comfortable looking up a template and reading its documentation
  • Practise editing various parameters on infobox templates

Use an infobox edit

Think of the most recent movie you watched. Then, insert an {{Infobox film}} below.


Birdman of Alcatraz
 
Theatrical poster for the film Birdman of Alcatraz.
Directed byJohn Frankenheimer, Charles Crichton (uncredited)
Screenplay byGuy Trosper
Story byThomas E. Gaddis
StarringBurt Lancaster
Release date
4 July 1962 (USA)
Running time
2h 27min
Budget$2,650,000 (estimated)


Use 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


Burt Lancaster
 
Burt Lancaster v roce 1947
BornBurton Stephen Lancaster  
2 November 1913  
New York City  
Died20 October 1994   (aged 80)
Los Angeles  
OccupationFilm producer, actor  
Political partyDemocratic Party  
Spouse(s)Norma Anderson  
Awards


Burt Lancaster
 
Burt Lancaster v roce 1947
BornBurton Stephen Lancaster  
2 November 1913  
New York City  
Died20 October 1994   (aged 80)
Los Angeles  
OccupationFilm producer, actor  
Political partyDemocratic Party  
Spouse(s)Norma Anderson  


Ludwig van Beethoven
 
Joseph Karl Stieler, Beethoven with the manuscript of the Missa solemnis, 1820.
Born16 December 1770
Bonn (Holy Roman Empire)
Baptised17 December 1770
Died26 March 1827 (aged 56)
Vienna (Austrian Empire)
OccupationComposer
Awards
Websitehttp://www.beethoven-haus-bonn.de
Signature
 


Dean Rader
Born17 July 1967  
Awards
Websitehttp://deanrader.com  



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.


beta 2-Microglobulin
Identifiers
Aliases
External IDsGeneCards: [1]
Orthologs
SpeciesHumanMouse
Entrez
Ensembl
UniProt
RefSeq (mRNA)

n/a

n/a

RefSeq (protein)

n/a

n/a

Location (UCSC)n/an/a
PubMed searchn/an/a
Wikidata
View/Edit Human


Archives at (P485) workaround edit

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

Location (institution where archives are held), Inventory number, and Description URL parameters pull from Wikidata if left blank.

It is recommended that you also specify the following parameters:

title

For example, the code below produces:

{{Archival records
| qid=Q77729
| title=Ursula Franklin fonds
}}

I can also insert any field manually:

{{Archival records
| qid=Q77729
| title=Ursula Franklin fonds
| inventory_number=12345
}}

Produce the template for a figure with an archives at (P485) property in their Wikidata entry. If you don't have anyone in mind, try Ella Maillart.