Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Swords: Difference between revisions

Template page
No edit summary
Tag: Manual revert
No edit summary
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{#cargo_declare:_table=Swords
This is the Swords template
| Codename=String
| Sprite=String
| Weight=String
| Slots=String
| BlockWidth=String
| BlockHeight=String
| Stance=String
| Value=String
| Projectile_Type=String
| Projectile_Sprite=String
| Projectile_BaseDmg=Float
| Projectile_Speed=Float
| Projectile_Lifetime=Float
| Projectile_RoundsPerShot=Integer
| Projectile_ArcAngle=Integer
| Projectile_ShotsBeforeReload=Integer
| Projectile_BurstPerShot=Integer
| Projectile_TimeBetweenShots=Integer
}}</noinclude><includeonly>{{#cargo_store:_table=Swords}}{{InfoBox
| name            = {{{Name|}}}
| bodystyle        = width:25em
| title            = Weapon Information
| image            = {{{Sprite|}}}
| label1          = Codename
| data1            = {{{Codename|}}}
| label2          = Weight
| data2            = {{{Weight|}}}
| label3          = Slots
| data3            = {{{Slots|}}}
| label4          = Block Width
| data4            = {{{BlockWidth|}}}
| label5          = Block Height
| data5            = {{{BlockHeight|}}}
| label6          = Stance
| data6            = {{{Stance|}}}
| label7          = Value
| data7            = {{{Value|}}}
| header8          = Projectile Information
| label9          = Type
| data9            = {{{Projectile_Type|}}}
| label10          = Sprite
| data10          = {{{Projectile_Sprite|}}}
| label11          = Base Damage
| data11          = {{{Projectile_BaseDmg|}}}
| label12          = Speed
| data12          = {{{Projectile_Speed|}}}
| label13          = Lifetime
| data13          = {{{Projectile_Lifetime|}}}
| label14          = Rounds Per Shot
| data14          = {{{Projectile_RoundsPerShot|}}}
| label15          = Arc Angle
| data15          = {{{Projectile_ArcAngle|}}}
| label16          = Shots Before Reload
| data16          = {{{Projectile_ShotsBeforeReload|}}}
| label17          = Burst Per Shot
| data17          = {{{Projectile_BurstPerShot|}}}
| label18          = Time Between Shots
| data18          = {{{Projectile_TimeBetweenShots|}}}
}}
== Information ==
{{{Desc}}}
 
== Crafting Recipe ==
{{#cargo_query:
table=ItemRecipes, Resources
|fields=CONCAT('[[File:', Resources.Sprite, '.png]]')=Image, Resources._pageName=Resouce, ItemRecipes.Quantity
|where=ItemRecipes.ItemCodename = '{{{Codename}}}'
|join on = Resources.Codename = ItemRecipes.ResourceLongname
|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
}}


{{#cargo_declare:_table=Swords
== Characters with this item ==  
|Actions = File
{{#cargo_query:
|Sprite = String; sprite name
table=Spawners, InventorySlot
|Meta = Page
|fields=Spawners._pageName = Name
|Data = Page
|where=InventorySlot.ItemCodename = '{{{Codename}}}' AND Spawners.IsUnique = false
|Events = Page
|join on = Spawners.Codename = InventorySlot.OwnerCodename
|Exts = Unknown; extensions
|format=table
| meta = Page
|headers=yes
|Description = Text; In game description for the object
|Weight = Integer; 1 = super light, 10 =mid 50 = heavy
|ContextOptions = String; csv of options equipt,place,drop
|Slots = String; csv of slots it fits in, e.g. hand,head,decon,craft_food
|BlockWidth = Integer; how many inventory slots width
|BlockHeight = Integer; how many inventory slots height
|Stance = String
|Value = Integer
| events = Page
|OnEquipt = Text
|OnUnEquipt = Text
|OnTick = Text
|OnCreate = Text
|OnAddToInventory = Text
}}
}}
</noinclude>
</includeonly>

Latest revision as of 06:15, 9 November 2024

This template defines the table "Swords". View table.