Template:Item/Cargo: Difference between revisions

From Phantasy Star Universe Clementine
(Created page with "<noinclude>{{{{FULLPAGENAME}}/doc}}{{#cargo_declare: _table = Items |id = String (mandatory;unique) |name = String |description = Text |rarity = Integer |buy_price = Integer |sell_price = Integer <!-- Derived Properties --> <!-- The duplicated storage is intentional to save on subquerying. --> |category_id = String (mandatory) |subcategory_id = String (mandatory) |subcategory_item_id = String (mandatory) |extra_id = String (mandatory) }}</noinclude>")
 
(add data validation to rarity and id)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{{{FULLPAGENAME}}/doc}}{{#cargo_declare:
<noinclude>{{{{FULLPAGENAME}}/doc}}
_table = Items
{{#cargo_declare:
|id = String (mandatory;unique)
_table = Items  
|name = String
|id = String (mandatory;unique;regex=[A-F0-9]{8}; size=8)
|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.