Content added Content deleted
m (forgot something in an example) |
mNo edit summary |
||
Line 37: | Line 37: | ||
}} |
}} |
||
<noinclude> |
<noinclude> |
||
[[Category: |
[[Category:Template documentation]] |
||
</noinclude> |
</noinclude> |
Latest revision as of 05:48, 24 September 2022
{{#vardefine:cargoTable|GAME_MoveData}} {{MoveDataCargo | images = {{MoveDataCargoImage|moveId|1|caption=}} | hitboxes = {{MoveDataCargoImage|moveId|1|caption=|hitbox=yes}} | info = {{AttackDataCargo-SSBU/Query|moveId}} }}
Usage
A basic skeleton to be used with Template:MoveDataCargoImage and a game's AttackDataCargo templates (Example: Template:AttackDataCargo-SSBU and Template:AttackDataCargo-SSBU/Query).
Defining the variable {{#vardefine:cargoTable|GAME_MoveData}}
before a character's move list removes the need for the cargoTable
argument for each usage.
Example
{{MoveDataCargo | images = {{MoveDataCargoImage|DonkeyKongJab1_0|1|caption=}} | hitboxes = {{MoveDataCargoImage|DonkeyKongJab1_0|1|caption=|hitbox=yes}} | info = {{AttackDataCargo-SSBU/Query|DonkeyKongJab1_0}} }}
Lua error: Error 1054: Unknown column 'moveId' in 'where clause'
Function: CargoSQLQuery::run Query: SELECT `images__full` AS `images` FROM `cargo__SSBU_MoveData` WHERE moveId = 'DonkeyKongJab1_0' ORDER BY `cargo__SSBU_MoveData`.`images__full` LIMIT 100
.Lua error: Error 1054: Unknown column 'moveId' in 'where clause'
Function: CargoSQLQuery::run Query: SELECT `hitboxes__full` AS `hitboxes` FROM `cargo__SSBU_MoveData` WHERE moveId = 'DonkeyKongJab1_0' ORDER BY `cargo__SSBU_MoveData`.`hitboxes__full` LIMIT 100
.Hitboxes Off
Hitboxes On
Error: No field named "input" found for any of the specified database tables.