Difference between revisions of "Template:Infobox pepper/doc"

From blackwiki
Jump to navigation Jump to search
imported>Plantdrew
(→‎Usage: add heat parameter)
imported>Plantdrew
(add template data)
Line 35: Line 35:
 
<li><code>heat = Exceptionally Hot</code> or <code>heat = exceptionally hot</code> in terms of chilli peppers, this would suit a Scoville rating of 250,000+.</li></ul>
 
<li><code>heat = Exceptionally Hot</code> or <code>heat = exceptionally hot</code> in terms of chilli peppers, this would suit a Scoville rating of 250,000+.</li></ul>
 
; <code>scoville</code>: freeform field for giving an approximate [[Scoville scale|Scoville rating]] for the subject's heat.
 
; <code>scoville</code>: freeform field for giving an approximate [[Scoville scale|Scoville rating]] for the subject's heat.
 +
 +
== Template Data ==
 +
{{TemplateDataHeader}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"embed": {},
 +
"name": {},
 +
"image": {},
 +
"image_size": {},
 +
"alt": {},
 +
"caption": {},
 +
"heat": {},
 +
"scoville": {}
 +
}
 +
}
 +
</templatedata>
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 21:00, 17 July 2017

This template can be used to show the heat of chilies, hot sauce, or anything that calls for a rating on the Scoville scale.

Usage

Copy and paste the following:

Template:Parameter names example

{{Infobox pepper
| name     = 
| image    = 
| caption  = 
| alt      =
| heat     = 
| scoville =  
}}

Parameters

All attributes are optional.

name
The name of the subject. If this is omitted then it will be inferred from the page name.
image
An image of the subject. (note that this was previously used to show a "chilli rating" for the heat: this usage is deprecated, as it is covered by the heat parameter.
caption
A caption for the image.
alt
alt text for the image.
heat
How hot the subject is. This can hold any value, but there are some special cases which will automatically present the subject with a "chilli rating" image:
  • heat = Mild or heat = mild: in terms of chilli peppers, this would suit a Scoville rating between 0-999.
  • heat = Low or heat = low: in terms of chilli peppers, this would suit a Scoville rating between 1,000-3,999.
  • heat = Medium or heat = medium: in terms of chilli peppers, this would suit a Scoville rating between 4,000-9,999.
  • heat = Hot or heat = hot: in terms of chilli peppers, this would suit a Scoville rating between 9,999-49,999.
  • heat = Very Hot or heat = very hot: in terms of chilli peppers, this would suit a Scoville rating between 50,000-250,000.
  • heat = Exceptionally Hot or heat = exceptionally hot in terms of chilli peppers, this would suit a Scoville rating of 250,000+.
  • scoville
    freeform field for giving an approximate Scoville rating for the subject's heat.

    Template Data

    This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

    TemplateData for Infobox pepper

    No description.

    Template parameters

    ParameterDescriptionTypeStatus
    Embedembed

    no description

    Unknownoptional
    Namename

    no description

    Unknownoptional
    Imageimage

    no description

    Unknownoptional
    Image_sizeimage_size

    no description

    Unknownoptional
    Altalt

    no description

    Unknownoptional
    Captioncaption

    no description

    Unknownoptional
    Heatheat

    no description

    Unknownoptional
    Scovillescoville

    no description

    Unknownoptional