User:AdamSeattle/sandbox

= User:Utl jung/sandbox/LD40817 =

Going in
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.

Slides from May 2020 presentation providing an overview of Wikipedia infoboxes and how they work.

Setup
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.
 * For example: https://en.wikipedia.org/wiki/User:Utl_jung/sandbox/workinghour1 takes me to a page which does not yet exist but can be started.
 * 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.
 * Tip: press ⌃ Ctrl + a to select all.
 * Finally, publish the page. You now have a copy of this page which you can freely edit.

How to use
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 would search Template:Infobox film which gives me this page

Remember, templates are wrapped in squigglies 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
Think of the most recent movie you watched. Then, insert an below.

Use a Wikidata-powered infobox
Let's try using a WD-powered infobox with.

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:

You can also organise this more nicely:

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
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
Use 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: I can also insert any field manually: 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.

↵

Navigation menu

 * UWashPrincipalCataloger
 * Alerts (0)
 * Notices (0)
 * Talk
 * Sandbox
 * Preferences
 * Beta
 * Watchlist
 * Contributions
 * Log out


 * User page
 * Talk


 * Read
 * Edit
 * View history
 * Watch
 * WikiLove

More



 * Main page
 * Contents
 * Current events
 * Random article
 * About Wikipedia
 * Contact us
 * Donate

Contribute

 * Help
 * Community portal
 * Recent changes
 * Upload file

Tools

 * What links here
 * Related changes
 * User contributions
 * User logs
 * Email this user
 * Mute this user
 * View user groups
 * Special pages
 * Page information

Languages

 * This page was last edited on 17 August 2020, at 15:00.
 * Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.


 * Privacy policy
 * About Wikipedia
 * Disclaimers
 * Contact Wikipedia
 * Mobile view
 * Developers
 * Statistics
 * Cookie statement