User:Jonathanischoice/sandbox

Using convert template
What's this all about then: 100 cal 500 cal 600 cal 800 cal

Graph templates
OMMIGOSH how did I not know all this stuff for doing D3 graphs and fancy maps existed? See: WP:GL, Graph:Chart, Legend, WP:Graphs and charts, Category:Chart, diagram and graph templates...

Stacked graph for vineyard area
(Inline) Legend:.

Or, legend produced from:

A stacked vertical bar graph

Pie chart
This has been moved into its own Pie chart of New Zealand vineyard area by region template so it can be reused in more than one article: New Zealand wine, Marlborough wine region.

Here's the source for a pie chart, using pie chart and data from the New Zealand Winegrowers annual report:

Colour values from BrewerColors using Set3; values obtained using (e.g.)  but using percent directly caused errors in the chart template.

Annual production graph, for Central Otago
As a bar graph:

And as a line graph:

Hopefully this text appears after the graph, and it isn't floated right. Tips:  must use US spelling (no   synonym) otherwise it will default to. The  parameter takes a px value integer, without a px or any other type (e.g. ,  , etc.) Through trial and error it seems the frame needs to be about 100px wider than the width of the Graph:Chart in.

Pie chart for grapes in Hawke's Bay
Should be floated right here →

Replacement line graph for NZ wine
Total New Zealand production, in zillions of litres, data from NZ Winegrower annual reports 2007-2020.

Bar chart for English wine production (mostly fizz):

Citing the Grove Dictionary of Music and Musicians
First edition, use Cite Grove 1900 with a title parameter: Second edition, can use Cite Grove 2001 with a title:

But better to use the unified template, Cite Grove. If only a title is supplied, it assumes the 2nd edition print version: If a DOI or article ID is supplied (doi or id parameters), then it assumes the Oxford Music Online version of Grove. The author(s) are not deduced, and must be supplied as parameters (author1-first, author1-last, etc.) OMO does not currently supply editors in their supplied citation exports either. By article ID: By DOI: By DOI, no author supplied:

Online Grove has an ISBN=9781561592630 which is missing from the template.

Using Wikidata
Any Wikidata item of the right type (for example, Q91330063 which is a journal article) can be used as a citation in a Wikipedia article using the Cite Q template:



Multiple citations to the same book but with different pages can be used with a single named reference, followed by the rp template. e.g.

Useful references on Wikidata
Some references for low brass articles:

Citing a patent

 * (Holton Superbone)
 * (the plastic "pBone" patent)
 * (Conn CL2000 valve)
 * (Olsen axial flow valve)
 * (Thayer valve patent)
 * (Later Thayer valve improvement)

Maps
For a nifty zoomable Open Street Map, we can use mapframe. For a map in an infobox for towns, locations, buildings and the like (any infobox that has a  parameter), use the special infobox mapframe template. At their simplest, they take a  parameter (use the coord template for the value), and a   parameter, which you can tweak to suit. For instance, the infobox in the article for the Harbour View suburb of Lower Hutt contains the following: map =

But these two templates and their various siblings are very powerful - it's worth reading their documentation for more advanced use. For instance, instead of guessing an arbitrary zoom number, you can instead specify the object's size with  or   and it will figure it out for you. Instead of coordinates, you can specify a Wikidata item with, as long as it has geodata properties (coordinates, geoshape, or OSM relation).

Inflation and the New Zealand CPI index
New Zealand CPI data is available from the terrible Statistics New Zealand "infoshare" website (which does anything but) under Economic Indicators → Consumers Price Index.

See Inflation and Inflation/NZ.

Testing:

Apple crumble
A recipe involving a simple streusel topping (flour, shortening, sugar) appeared in Canadian journal Farmer's Magazine in February 1917. Other appearances: The New Zealand Apple Cookery Book (1938), The Modern Family Cookbook (1942), and The Wise Encyclopedia of Cookery (1948).

New Zealand road network
Urban Routes, for example Route 31 (Hibiscus Coast Highway), using Jct: