Template:Change list by name: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#cargo_query: | <includeonly>{{#cargo_query:tables={{{table|???}}}=changes, {{{updates table|btdbm_updates}}}=update | ||
|fields=CONCAT("<h{{{header level|3}}}>[[", _pageName, "|Version ", version, "]] ", IF(version_note != "", CONCAT("(", version_note, ")"), ""), "</h{{{header level|3}}}>\n | |fields=CONCAT("<h{{{header level|3}}}>[[", changes._pageName, "|Version ", changes.version, "]] ", IF(changes.version_note != "", CONCAT("(", changes.version_note, ")"), ""), "</h{{{header level|3}}}>\n", | ||
GROUP_CONCAT(changes.changes ORDER BY changes.priority DESC, changes.changes SEPARATOR "\n")) = a | |||
GROUP_CONCAT(changes ORDER BY priority DESC, changes SEPARATOR "\n") | |||
) = a | |||
|where=(names HOLDS "{{{1|}}}"{{#if:{{{2|}}}| OR names HOLDS "{{{2|}}}"}}){{#if:{{{before|}}}| AND version | |where=(changes.names HOLDS "{{{1|}}}"{{#if:{{{2|}}}| OR changes.names HOLDS "{{{2|}}}"}}){{#if:{{{before|}}}| AND update.version_code < {{#invoke:pad version|main|{{{before}}}}}}}{{#if:{{{since|}}}| AND update.version_code >= {{#invoke:pad version|main|{{{since}}}}}}} | ||
|order by= | |order by=update.version_code | ||
|group by=_pageName, version, version_note | |group by=changes._pageName, changes.version, changes.version_note, update.version_code | ||
|join on=changes._pageName = update._pageName | |||
|format=list | |format=list | ||
Revision as of 06:58, 8 June 2025
Template for creating a table of changes using Cargo. This template should only be used by other templates that call it (e.g. {{BTDBM change list by name}}), not on its own.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Unknown | optional |
| 2 | 2 | no description | Unknown | optional |
| 3 | 3 | no description | Unknown | optional |
| table | table | no description | Unknown | optional |
| updates table | updates table | no description | Unknown | optional |
| header level | header level | no description | Unknown | optional |
| before | before | no description | Unknown | optional |
| since | since | no description | Unknown | optional |