Template:Item/Cargo: Difference between revisions

From Phantasy Star Universe Clementine
No edit summary
(add data validation to rarity and id)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{#cargo_declare:
{{#cargo_declare:
_table = Items  
_table = Items  
|id = String (mandatory;unique;size=8)
|id = String (mandatory;unique;regex=[A-F0-9]{8}; size=8)
|name = String (size=32)
|name = String (size=32)
<!-- |jpname = String (size=32) -->
|description = Text
|description = Text
|rarity = Float
|rarity = Integer (allowed values=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14)
|buy_price = Float
|buy_price = Integer
|sell_price = Float
|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.