Difference between revisions of "User:Snuxoll/sandbox/cargo"
Line 1: | Line 1: | ||
{{#cargo_query: | {{#cargo_query: | ||
− | tables=Infobox_game | + | tables=Infobox_game,Tags |
− | |fields=_pageName,Cover | + | |fields=Infobox_game._pageName,Infobox_game.Cover |
− | | | + | |where=Tags.Article_state_is_stub='true' |
− | | | + | |join on=Infobox_game._pageName=Tags._pageName |
|format=template | |format=template | ||
|template=:Home/ask/t | |template=:Home/ask/t | ||
+ | |limit=3 | ||
+ | |order by=RAND() | ||
+ | |more results text= | ||
}} | }} |
Latest revision as of 21:46, 26 March 2019
Function: CargoSQLQuery::run Query: SELECT `cargo__Tags`.`_pageID` AS `cargo_backlink_page_id_Tags`,`cargo__Infobox_game`.`_pageID` AS `cargo_backlink_page_id_Infobox_game`,`cargo__Infobox_game`.`_pageName` AS `_pageName`,`cargo__Infobox_game`.`Cover` AS `Cover` FROM `cargo__Infobox_game` LEFT OUTER JOIN `cargo__Tags` ON ((`cargo__Infobox_game`.`_pageName`=`cargo__Tags`.`_pageName`)) WHERE `cargo__Tags`.`Article_state_is_stub`='true' ORDER BY RAND() LIMIT 100