Template:Food: Difference between revisions

7 bytes removed ,  01:36, 5 February 2021
add chance for ButcheredFrom, and include var:id as global variable
(check for "butchered from" and "harvested from")
(add chance for ButcheredFrom, and include var:id as global variable)
Line 46: Line 46:


  Variable Definitions
  Variable Definitions
-->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!--             
-->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}{{#vardefine:id|{{{id|}}}}}<!--             


   Infobox UI Begin
   Infobox UI Begin
Line 74: Line 74:
|{{#invoke:CargoQuery| main  
|{{#invoke:CargoQuery| main  
| table=CorpseTables  
| table=CorpseTables  
| fields=_pageName=Page
| fields=MainObjectID=id, Weight=weight
| where=Object= "{{BASEPAGENAME}}"  
| where=ObjectID="Raw Goat Meat"
| template=single query result
| template=Drop rate query
| default=None
| default=None
| delimiter=,}}}}| None || {{infobox row|Butchered from|{{Consecutive templates|{{#var:Infobox_ButcheredFrom}}|,|, |||favilink page}} }} }}
| delimiter=</br>}}}}| None || {{infobox row|Butchered from|{{#var:Infobox_ButcheredFrom}} }} }}
{{#ifeq: {{#vardefineecho:Infobox_HarvestedFrom
{{#ifeq: {{#vardefineecho:Infobox_HarvestedFrom
|{{#invoke:CargoQuery| compound
|{{#invoke:CargoQuery| compound