Difference between revisions of "Template:Infobox cheese"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(allow display if commons parameter is specified)
imported>Hike395
(turn off commons link tracking)
Line 44: Line 44:
 
| label16    = Named after
 
| label16    = Named after
 
| data16    = {{#invoke:Wikidata|getValue|P138|{{{namedafter|FETCH_WIKIDATA}}}}}
 
| data16    = {{#invoke:Wikidata|getValue|P138|{{{namedafter|FETCH_WIKIDATA}}}}}
| below      = {{#if:{{{commons|}}}{{#invoke:Commons link|hasGalleryOrCategory}}|{{Commons-inline|{{{commons|}}}|Related media on Wikimedia Commons|short=yes}}}}
+
| below      = {{#if:{{{commons|}}}{{#invoke:Commons link|hasGalleryOrCategory}}|{{Commons-inline|{{{commons|}}}|Related media on Wikimedia Commons|short=yes|notrack=1}}}}
 
}}{{Main other|[[Category:Articles with hRecipes]][[Category:Articles with Adr microformats]]}}<noinclude>{{documentation}}<!-- Please add categories and interwiki links to /doc subpage, not here! --></noinclude>
 
}}{{Main other|[[Category:Articles with hRecipes]][[Category:Articles with Adr microformats]]}}<noinclude>{{documentation}}<!-- Please add categories and interwiki links to /doc subpage, not here! --></noinclude>

Revision as of 12:30, 29 September 2020

Script error: No such module "Wikidata".
Country of originScript error: No such module "Wikidata".
Source of milkScript error: No such module "Wikidata".
Named afterScript error: No such module "Wikidata".
16x16px Lua error in Module:Commons_link at line 35: attempt to index field 'wikibase' (a nil value).

[[Category:Infobox templates|Template:Remove first word]]

50px Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Usage

Simple

{{infobox cheese}}

Data will be automatically included from Wikidata.

Full

Template:Parameter names example

{{Infobox cheese
| name          = 
| image         = 
| alt           = 
| caption       = 
| othernames    = 
| country       = 
| region        = 
| town          = 
| source        = 
| pasteurised   = 
| texture       = 
| fat           = 
| protein       = 
| dimensions    = 
| weight        = 
| aging         = 
| certification = 
| commons       = 
}}

Example

Parmigiano Reggiano
Script error: No such module "Wikidata".
Country of originScript error: No such module "Wikidata".
TownParma, Reggio Emilia, Modena, Bologna, Mantua
Source of milkScript error: No such module "Wikidata".
PasteurisedNo
TextureHard
Aging time24 months or more
CertificationPDO 1992
Named afterScript error: No such module "Wikidata".
16x16px Lua error in Module:Commons_link at line 35: attempt to index field 'wikibase' (a nil value).
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox cheese
| name          = Parmigiano Reggiano
| image         = [[Image:Parmigiano reggiano piece.jpg|260px]]
| othernames    = 
| country       = [[Italy]]
| region        = 
| town          = [[Parma]], [[Reggio Emilia]], [[Modena]], [[Bologna]], [[Mantua]]
| source        = Cows
| pasteurised   = No
| texture       = Hard
| fat           = 
| protein       = 
| dimensions    = 
| weight        = 
| aging         = 24 months or more
| certification = [[Protected designation of origin|PDO]] 1992
}}

Microformats

Adr

Template:UF-adr

Recipe

Template:UF-hrecipe