More actions
(Created page with "<noinclude> {{#cargo_declare:_table=Resources | Codename=String | Sprite=String | Weight=Integer | Slots=String | BlockWidth=Integer | BlockHeight=Integer | Value=Integer | MaxStack=Integer }} </noinclude> <includeonly> {{#cargo_store:_table=Resources}} </includeonly>") |
No edit summary |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{#cargo_declare:_table=Resources | ||
{{#cargo_declare:_table=Resources | |||
| Codename=String | | Codename=String | ||
| Sprite=String | | Sprite=String | ||
Line 9: | Line 8: | ||
| Value=Integer | | Value=Integer | ||
| MaxStack=Integer | | MaxStack=Integer | ||
}}</noinclude><includeonly>{{#cargo_store:_table=Resources}}{{InfoBox | |||
| name = {{{Name|}}} | |||
| bodystyle = width:25em | |||
| title = Resource Information | |||
| image = {{{Sprite|}}} | |||
| label1 = Codename | |||
| data1 = {{{Codename|}}} | |||
| label2 = Sprite | |||
| data2 = {{{Sprite|}}} | |||
| label3 = Weight | |||
| data3 = {{{Weight|}}} | |||
| label4 = Slots | |||
| data4 = {{{Slots|}}} | |||
| label5 = Block Width | |||
| data5 = {{{BlockWidth|}}} | |||
| label6 = Block Height | |||
| data6 = {{{BlockHeight|}}} | |||
| label7 = Value | |||
| data7 = {{{Value|}}} | |||
| label8 = Max Stack | |||
| data8 = {{{MaxStack|}}} | |||
}} | |||
== Information == | |||
{{{Desc}}} | |||
== Recipes requiring this item == | |||
{{#cargo_compound_query: | |||
tables=ItemRecipes, Swords;fields=CONCAT('[[File:', Swords.Sprite, '.png]]')=Image,Swords._pageName=Name;where=ItemRecipes.ResourceLongname ='{{{Codename}}}';join on=Swords.Codename=ItemRecipes.ItemCodename | |||
|tables=ItemRecipes, Ranged;fields=CONCAT('[[File:', Ranged.Sprite, '.png]]')=Image,Ranged._pageName=Name;where=ItemRecipes.ResourceLongname ='{{{Codename}}}';join on=Ranged.Codename=ItemRecipes.ItemCodename | |||
|format=table | |||
|headers=yes | |||
}} | |||
== Unique Characters with this item == | |||
{{#cargo_query: | |||
table=Spawners, InventorySlot | |||
|fields=Spawners._pageName = Name | |||
|where=InventorySlot.ItemCodename = '{{{Codename}}}' AND Spawners.IsUnique = true | |||
|join on = Spawners.Codename = InventorySlot.OwnerCodename | |||
|format=table | |||
|headers=yes | |||
}} | |||
== Characters with this item == | |||
{{#cargo_query: | |||
table=Spawners, InventorySlot | |||
|fields=Spawners._pageName = Name | |||
|where=InventorySlot.ItemCodename = '{{{Codename}}}' AND Spawners.IsUnique = false | |||
|join on = Spawners.Codename = InventorySlot.OwnerCodename | |||
|format=table | |||
|headers=yes | |||
}} | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 06:19, 9 November 2024
This template defines the table "Resources". View table.