User:Illviljan/cargo: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
>Illviljan mNo edit summary |
||
Line 115: | Line 115: | ||
|groupBy = mods._pageID | |groupBy = mods._pageID | ||
|limit = 10 | |limit = 10 | ||
|offset = 0 | |||
}} | |||
==Incursion== | |||
{{#cargo_query: | |||
tables = mods, spawn_weights, mod_stats | |||
|fields = mods.name, mods.id, mods.stat_text, spawn_weights.weight, spawn_weights.tag, mods.required_level, mods.mod_group, mods.mod_type, mods.generation_type, mod_stats.id=mod_stats.id | |||
|join on = mods._pageID=spawn_weights._pageID, mods._pageID=mod_stats._pageID | |||
|where = mods.id LIKE "%enhanced%" | |||
|orderBy = mods.name, mods.id, mods.mod_group, mods.mod_type, mods.required_level | |||
|groupBy = mods._pageID | |||
|limit = 2000 | |||
|offset = 0 | |offset = 0 | ||
}} | }} |
Revision as of 20:06, 2 June 2018
Intro
- https://www.mediawiki.org/wiki/Extension:Cargo/Querying_data
- Lua: https://www.mediawiki.org/wiki/Extension:Cargo/Other_features
- results[2][version.version]
Lists of strings
HOLDS
Abyss • Hardcore Abyss • SSF Abyss • SSF Abyss HC
Multiple holds
Abyss league
Abyss league
HOLDS NOT
No results
Lua equivalents
No results
tables = 'mods, spawn_weights' fields = 'mods.id, spawn_weights.weight' query = { join = 'mods._pageID=spawn_weights._pageID', where = 'mods.domain=5 AND mods.name="Fecund" AND spawn_weights.weight > 0', limit = 10, offset = 2 } results = mw.ext.cargo.query(tables, fields, query) print( results[1]['mods.id'], results[1]['spawn_weights.weight'] )
Offset
We have the following list:
- No results
Limit to 3 results:
- No results
Add the rest:
- No results
mods that can spawn on items
item_tags = axe, one_hand_weapon, onehand, weapon, default
Error: No field named "mod_group" found for the database table "mods".
Incursion
Error: No field named "mod_group" found for the database table "mods".