Jump to content

Template:Infobox drink: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Add field for "Region of origin"
top: Add ''caption1'' for ''logo_caption''
 
(18 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{ infobox
{{infobox
| bodyclass = hrecipe hproduct
| bodyclass = hrecipe hproduct
| title = {{{title|<includeonly>{{{name|{{PAGENAME}}}}}</includeonly>}}}
| title = {{{title|<includeonly>{{{name|{{PAGENAMEBASE}}}}}</includeonly>}}}
| titleclass= fn ingredient
| titleclass= fn ingredient
| image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|sizedefault=frameless}}
| image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|alt={{{logo_alt|}}}|sizedefault=frameless}}
| caption1= {{{logo_caption|}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}|sizedefault=frameless}}
| caption2= {{{caption|}}}
| caption2= {{{caption|}}}

| label1 = Type
| label1 = Type
| data1 = {{{type|}}}
| data1 = {{{type|}}}
Line 15: Line 15:
| label3 = Distributor
| label3 = Distributor
| data3 = {{{distributor|}}}
| data3 = {{{distributor|}}}
| label4 = Country of origin
| label4 = {{nowrap|{{{origin_label|Country of origin}}}&nbsp;}}
| data4 = {{{origin|}}}
| data4 = {{{origin|}}}
| label5 = Introduced
| label5 = Region of origin
| data5 = {{{introduced|{{{year|}}} }}}
| data5 = {{{region|}}}
| label6 = Discontinued
| label6 = Introduced
| data6 = {{{discontinued|{{{last_year|}}} }}}
| data6 = {{{introduced|{{{year|}}} }}}
| label7 = [[Alcohol by volume]]
| label7 = Discontinued
| data7 = {{{abv|}}}
| data7 = {{{discontinued|{{{last_year|}}} }}}
| label8 = [[Alcohol proof|Proof (US)]]
| label8 = {{nowrap|[[Alcohol by volume]]&nbsp;}}
| data8 = {{{proof|}}}
| data8 = {{{abv|}}}
| label9 = {{#if:{{{color|}}}|Color|Colour}}
| label9 = [[Alcohol proof|Proof (US)]]
| data9 = {{{colour|{{{color|}}}}}} <!-- use only one of "colour" or "color" depending on US/UK article, not both! -->
| data9 = {{{proof|}}}
| label10 = {{#if:{{{color|}}}|Color|Colour}}
| data10 = {{{colour|{{{color|}}}}}} <!-- use only one of "colour" or "color" depending on US/UK article, not both! -->
| label10 = {{#if:{{{flavor|}}}|Flavor|Flavour}}
| label11 = {{#if:{{{flavor|}}}|Flavor|Flavour}}
| data10 = {{{flavour|{{{flavor|}}}}}} <!-- use only one of "flavour" or "flavor" depending on US/UK article, not both! -->
| data11 = {{{flavour|{{{flavor|}}}}}} <!-- use only one of "flavour" or "flavor" depending on US/UK article, not both! -->
| label11 = Style
| label12 = Style
| data11 = {{{style|}}}
| data12 = {{{style|}}}
| label12 = [[Gravity (alcoholic beverage)|Original gravity]]
| label13 = [[Gravity (alcoholic beverage)|Original gravity]]
| data12 = {{{og|}}}
| data13 = {{{og|}}}
| label13 = [[Gravity (alcoholic beverage)|Final gravity]]
| label14 = [[Gravity (alcoholic beverage)|Final gravity]]
| data13 = {{{fg|}}}
| data14 = {{{fg|}}}
| label14 = [[International Bitterness Units scale|IBU scale]]
| label15 = [[International Bitterness Units scale|IBU scale]]
| data14 = {{{ibu|}}}
| data15 = {{{ibu|}}}
| label15 = Ingredients
| label16 = Ingredients
| data15 = {{{ingredients|}}}
| data16 = {{{ingredients|}}}
| label16 = Variants
| label17 = Variants
| data16 = {{{variants|}}}
| data17 = {{{variants|}}}
| label17 = Related products
| label18 = Related products
| data17 = {{{related|}}}
| data18 = {{{related|}}}
| label18 = Website
| label19 = Website
| data18 = {{{website|}}}
| data19 = {{#if:{{{homepage|{{{website|}}}}}}
| {{#ifeq:{{{homepage|{{{website|}}}}}} | hide | | {{{homepage|{{{website|}}}}}} }}
| label19 = Region of origin
| {{#if:{{wikidata|property|raw|P856}}
| data19 = {{{region|}}}
| {{#invoke:WikidataIB |url2 |url={{if empty
|{{#invoke:WikidataIB|getValueByLang|P856|fwd=ALL|osd=no|maxvals=1}}
|{{Wdib|P856|fwd=ALL|osd=no|maxvals=1}}
}} }}
}}
}}


}}{{#invoke:Check for unknown parameters|check|unknown={{user other|}}|preview = Page using [[Infobox drink]] with unknown parameter "_VALUE_"|ignoreblank=y
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Articles with hRecipes]][[Category:Articles with hProducts]]}}</includeonly><noinclude>{{documentation}}</noinclude>
| name | logo | logo_size | logo_alt | logo_caption | image | image_size | image_alt | caption | type | abv | proof | manufacturer | brewery | distributor | region | origin | origin_label | introduced | year | discontinued | last_year | colour | color | flavor | flavour | style | og | fg | ibu | ingredients | variants | related | homepage | website }}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Articles with hRecipes]][[Category:Articles with hProducts]]}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 08:57, 10 June 2024