Template:Item/Cargo: Difference between revisions

From Phantasy Star Universe Clementine
mNo edit summary
(add data validation to rarity and id)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{{{FULLPAGENAME}}/doc}}
<noinclude>{{{{FULLPAGENAME}}/doc}}
{{#cargo_declare:
{{#cargo_declare:
_table = Items
_table = Items  
|id = String (mandatory;unique)
|id = String (mandatory;unique;regex=[A-F0-9]{8}; size=8)
|name = String
|name = String (size=32)
<!-- |jpname = String (size=32) -->
|description = Text
|description = Text
|rarity = Integer
|rarity = Integer (allowed values=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14)
|buy_price = Integer
|buy_price = Integer
|sell_price = Integer
|sell_price = Integer
<!-- Derived Properties --> <!-- The duplicated storage is intentional to save on subquerying. -->
<!-- Derived Properties --> <!-- The duplicated storage is intentional to save on subquerying. -->
|category_id = String (mandatory)
|category_id = String (mandatory;size=2)
|subcategory_id = String (mandatory)
|subcategory_id = String (mandatory;size=2)
|subcategory_item_id = String (mandatory)
|subcategory_item_id = String (mandatory;size=2)
|extra_id = String (mandatory)
|extra_id = String (mandatory;size=2)
}}</noinclude>
}}</noinclude>

Latest revision as of 22:11, 24 December 2024

Template used for declaring item properties in Cargo. This template defines the table "Items". View table.