User:Illviljan/cargo: Difference between revisions
Jump to navigation
Jump to search
>Illviljan No edit summary |
>Illviljan mNo edit summary |
||
Line 14: | Line 14: | ||
|fields = events.id | |fields = events.id | ||
|where = events.id HOLDS "abyss" | |where = events.id HOLDS "abyss" | ||
}} | |||
====Multiple holds==== | |||
{{#cargo_query: | |||
tables = events | |||
|fields = events.name | |||
|where = events.id HOLDS "SSF Abyss" AND events.id HOLDS "Hardcore Abyss" | |||
}} | |||
{{#cargo_query: | |||
tables = events | |||
|fields = events.name | |||
|where = events.id__FULL LIKE "%SSF Abyss%" AND events.id__FULL LIKE "%Hardcore Abyss%" | |||
}} | }} | ||
Revision as of 05:34, 22 March 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".