8,290
edits
No edit summary |
(Enhance the cargo table) |
||
Line 14: | Line 14: | ||
== List of Harvestables == | == List of Harvestables == | ||
{{#cargo_compound_query: | {{#cargo_compound_query: | ||
tables=ItemsTable;fields= | |||
|tables=Characters;fields= | |tables=ItemsTable=IT,Food=F,GeneralData=GD1,GeneralData=GD2; | ||
|format= | join on=IT.HarvestedInto=F.ObjectID,F.JoinKey=GD1.JoinKey,F.PreservedInto=GD2.ObjectID; | ||
fields= | |||
CONCAT('{{(}}favilink id{{!}}',IT.ObjectID,'{{)}}')=Harvestable, | |||
CONCAT('{{(}}favilink id{{!}}',IT.HarvestedInto,'{{)}} <span class="cargoFieldName">(Value: {{(}}qud text{{!}}&B$&C',GD1.Commerce,'{{)}} - Weight: {{(}}qud text{{!}}',GD1.Weight,'&K#{{)}})</span>')=HarvestedInto, | |||
CONCAT(CASE WHEN F.PreservedInto IS NULL THEN '-' ELSE CONCAT('{{(}}favilink id{{!}}',F.PreservedInto,'{{!}}prefix:',F.PreservedQuantity,'x{{)}} <span class="cargoFieldName">(Value: {{(}}qud text{{!}}&B$&C',GD2.Commerce,'{{)}} - Weight: {{(}}qud text{{!}}',GD2.Weight,'&K#{{)}})</span>') END)=PreservedInto; | |||
where=IT.HarvestedInto IS NOT NULL | |||
|tables=Characters=IT,Food=F,GeneralData=GD1,GeneralData=GD2; | |||
join on=IT.HarvestedInto=F.ObjectID,F.JoinKey=GD1.JoinKey,F.PreservedInto=GD2.ObjectID; | |||
fields= | |||
CONCAT('{{(}}favilink id{{!}}',IT.ObjectID,'{{)}}')=Harvestable, | |||
CONCAT('{{(}}favilink id{{!}}',IT.HarvestedInto,'{{)}} <span class="cargoFieldName">(Value: {{(}}qud text{{!}}&B$&C',GD1.Commerce,'{{)}} - Weight: {{(}}qud text{{!}}',GD1.Weight,'&K#{{)}})</span>')=HarvestedInto, | |||
CONCAT(CASE WHEN F.PreservedInto IS NULL THEN '-' ELSE CONCAT('{{(}}favilink id{{!}}',F.PreservedInto,'{{!}}prefix:',F.PreservedQuantity,'x{{)}} <span class="cargoFieldName">(Value: {{(}}qud text{{!}}&B$&C',GD2.Commerce,'{{)}} - Weight: {{(}}qud text{{!}}',GD2.Weight,'&K#{{)}})</span>') END)=PreservedInto; | |||
where=IT.HarvestedInto IS NOT NULL | |||
|format=table | |||
}} | }} | ||
{{Skills and Powers Navbox}} | {{Skills and Powers Navbox}} |