Using convert template edit

What's this all about then: 100 calories (420 J) 500 calories (2,100 J) 600 calories (2,500 J) 800 calories (3,300 J)

Graph templates edit

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 edit

New Zealand vineyard area by grape variety over time (1996–2020), in hectares.
   Sauvignon Blanc
   Pinot Gris
   Pinot Noir
   Chardonnay
   Riesling
   Syrah
   Cabernet Sauvignon
   Merlot
The more than ten-fold growth of Sauvignon Blanc plantings since the turn of the 21st century is evident, along with the similar rapid growth of Pinot Gris. While Riesling, Merlot and Chardonnay remained more or less unchanged or declined slightly, a five-fold increase of Pinot Noir occurred, and a big increase of the much smaller area of Syrah is countered by a corresponding decline in Cabernet Sauvignon.
Data from New Zealand Winegrowers annual reports.[1]

(Inline) Legend:   Sauvignon Blanc   Pinot Noir   Chardonnay   Pinot Gris   Riesling   Syrah   Cabernet Sauvignon   Merlot.

Or, legend produced from:

{{BrewerColorLegends|Set3|8|10em|Sauvignon Blanc|Pinot Noir|Chardonnay|Pinot Gris|Riesling|Syrah|Cabernet Sauvignon|Merlot}}

  • Sauvignon Blanc
  • Pinot Noir
  • Chardonnay
  • Pinot Gris
  • Riesling
  • Syrah
  • Cabernet Sauvignon
  • Merlot
  • {{div col |colwidth=10em}}
     {{legend|#8dd3c7|Sauvignon Blanc}}
     {{legend|#ffffb3|Pinot Noir}}
     {{legend|#bebada|Chardonnay}}
     {{legend|#fb8072|Pinot Gris}}
     {{legend|#80b1d3|Riesling}}
     {{legend|#fdb462|Syrah}}
     {{legend|#b3de69|Cabernet Sauvignon}}
     {{legend|#fccde5|Merlot}}
    {{div col end}}
    


    A stacked vertical bar graph

    25
    50
    75
    100
    125
    150
    Before
    During
    After
    Post mortem
    •   Apple
    •   Banana
    •   Orange

    Pie chart edit

    New Zealand vineyard area by region, 2020. Marlborough accounts for about two thirds of the total vineyard area in New Zealand.

      Marlborough (69.6%)
      Hawke's Bay (12.6%)
      Central Otago (4.8%)
      North Canterbury (3.4%)
      Gisborne (3.0%)
      Nelson (2.8%)
      Wairarapa (2.6%)
      Other (1.1%)

    Data from New Zealand Winegrowers annual report.[2]

    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:[2]

    {{Pie chart
      | thumb
      | caption = '''New Zealand vineyard area by region, 2020.''' [[Marlborough wine region|Marlborough]] accounts for about two thirds of the total vineyard area in New Zealand.
      | footer = Data from [[New Zealand Winegrowers]] annual report.<ref name="nzw-annual-report">{{cite web
        | title = New Zealand Winegrowers Annual Report
        | publisher = [[New Zealand Winegrowers]] | year = 2020
        | url = https://www.nzwine.com/en/media/statistics/annual-report/
        | access-date = 22 April 2021
    }}</ref>
      | label1 = [[Marlborough wine region|Marlborough]]     | value1 = 69.6
      | label2 = [[Hawke's Bay wine region|Hawke's Bay]]     | value2 = 12.6
      | label3 = [[Central Otago wine region|Central Otago]] | value3 = 4.8
      | label4 = North Canterbury                            | value4 = 3.4
      | label5 = Gisborne                                    | value5 = 3.0
      | label6 = Nelson                                      | value6 = 2.8
      | label7 = Wairarapa                                   | value7 = 2.6
      | label8 = Other                                       | value8 = 1.1
      | color1 = #8dd3c7 | color2 = #ffffb3 | color3 = #bebada | color4 = #fb8072
      | color5 = #80b1d3 | color6 = #fdb462 | color7 = #b3de69 | color8 = white
    }}

    Colour values from {{BrewerColors}} using Set3; values obtained using (e.g.) value1={{percent|27808|39935|1|%=}} but using {{percent}} directly caused errors in the chart template.

    Annual production graph, for Central Otago edit

    As a bar graph:

    Central Otago annual harvest (1994–2020), in thousand tonnes of grapes crushed.
    Sources: Otago Daily Times, New Zealand Winegrowers annual reports.[3][1]


    And as a line graph:

    Central Otago annual harvest (1994–2020), in thousand tonnes of grapes crushed.
    Sources: Otago Daily Times, New Zealand Winegrowers annual reports.[3][1]

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

    Pie chart for grapes in Hawke's Bay edit

    Grape varieties planted in Hawke's Bay by area, 2020.

      Chardonnay (22.8%)
      Merlot (21.6%)
      Sauvignon Blanc (19.8%)
      Pinot Gris (12.4%)
      Syrah (7.4%)
      Pinot Noir (4.9%)
      Cabernet Sauvignon (4.2%)
      Other (6.9%)

    Data from New Zealand Winegrowers vineyard report.[4]

    Should be floated right here →

    Replacement line graph for NZ wine edit

    Total New Zealand production, in zillions of litres, data from NZ Winegrower annual reports 2007-2020.

    New Zealand annual wine production (1995–2020), in millions of litres.
    Sources: New Zealand Winegrowers annual reports.[1]

    Bar chart for English wine production (mostly fizz):

    UK annual wine production (1989–2020), in millions of litres.
    Sources: Wine GB statistics.[5]

    Citations edit

    Citing the Grove Dictionary of Music and Musicians edit

    First edition, use {{Cite Grove 1900}} with a title parameter:

    • Grove, George, ed. (1900). "Beethoven, Ludwig van". A Dictionary of Music and Musicians. London: Macmillan.

    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 edit

    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. <ref name="bevan2000"/>{{rp|416–430}}

    Useful references on Wikidata edit

    Some {{Cite Q}} references for low brass articles:

    Citing a patent edit

    • US patent 3937116, Lawrence, Ramirez, "Tenor trombone construction", issued 8 June 1976, assigned to G. Leblanc Corporation, class G10D7/10  (Holton Superbone)
    • EP patent 2422340, Rashleigh, Hugh & Rashleigh Ltd, "Musical instruments", issued 29 February 2012, class G10D7/10  (the plastic "pBone" patent)
    • US patent 5965833, Lindburg, Christian, "Rotary valve for a musical instrument", issued 12 October 1999, assigned to Conn-Selmer Inc., class G10D9/04  (Conn CL2000 valve)
    • US patent 7910815, Olsen, Michael L., "Precision axial flow valve", issued 22 March 2011, class G10D9/04  (Olsen axial flow valve)
    • US patent 4112806, Thayer, Orla E., "Axial flow valve", issued 12 September 1978, class G10D9/04  (Thayer valve patent)
    • US patent 4905564, Thayer, Orla E., "Rotary sound path selector valve with biased rotor", issued 6 March 1990, class G10D9/04  (Later Thayer valve improvement)


    Maps edit

    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 map parameter), use the special {{infobox mapframe}} template. At their simplest, they take a coord parameter (use the {{coord}} template for the value), and a zoom 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 = {{infobox mapframe | coord = {{coord|41|12|07|S|174|53|56|E}} | zoom = 14}}
    

    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 length_km or area_km2 and it will figure it out for you. Instead of coordinates, you can specify a Wikidata item with id, as long as it has geodata properties (coordinates, geoshape, or OSM relation).

    Inflation and the New Zealand CPI index edit

    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:

    • 21.232843493865

    6369853

    equivalent to $6,370,000 in 2021

    Apple crumble edit

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

    References edit