Template:Latest version: Difference between revisions
Created page with "<includeonly>{{#cargo_query:table={{{1}}}|fields=CONCAT("Version ", version, "") = text|order by=build_number DESC|limit=1|more results text=}}</includeonly><noinclude>{{/doc}}</noinclude>" |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#cargo_query:table={{{1}}}|fields=CONCAT("[[", _pageName, "|Version ", version, "]]") = text|order by=build_number DESC|limit=1|more results text=}}</includeonly><noinclude>{{/doc}}</noinclude> | <includeonly>{{#cargo_query:table={{{1}}}|fields=CONCAT("[[", _pageName, "|Version ", version, "]]") = text|order by=build_number DESC|where={{{where|}}}|limit=1|more results text=}}</includeonly><noinclude>{{/doc}}</noinclude> | ||
Revision as of 23:03, 29 October 2025
Uses cargo to display the latest update of a game. This requires the latest update to have the correct build number assigned in the infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Table | 1 | The name of the cargo table.
| String | required |
| Where | where | An optional where clause for filtering.
| Unknown | optional |
Example usage
{{latest version|btd6_updates}}
Function: CargoSQLQuery::run Query: SELECT `btd6_updates`.`_pageID` AS `cargo_backlink_page_id_btd6_updates`,CONCAT("Version ", version, "") AS `text` FROM `cargo__btd6_updates` `btd6_updates` ORDER BY `build_number` DESC LIMIT 100
{{latest version|btd6_updates|where=netflix_google_play_date IS NOT NULL}}
Function: CargoSQLQuery::run Query: SELECT `btd6_updates`.`_pageID` AS `cargo_backlink_page_id_btd6_updates`,CONCAT("Version ", version, "") AS `text` FROM `cargo__btd6_updates` `btd6_updates` WHERE netflix_google_play_date IS NOT NULL ORDER BY `build_number` DESC LIMIT 100