Template:Change list by name: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tag: Reverted |
m problem is solutioned |
||
| (9 intermediate revisions by the same user not shown) | |||
| 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, ")"), ""), " | |fields=CONCAT("{{#ifeq:{{{header level|3}}}|2|==|<h{{{header level|3}}}>}}[[", changes._pageName, "|Version ", changes.version, "]] ", IF(changes.version_note != "", CONCAT("(", changes.version_note, ")"), ""), "{{#ifeq:{{{header level|3}}}|2|==|</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|}}}"}} | |where=(changes.names HOLDS "{{{1|}}}"{{#if:{{{2|}}}| OR changes.names HOLDS "{{{2|}}}"}}{{#if:{{{3|}}}| OR changes.names HOLDS "{{{3|}}}"}})<!-- | ||
| | -->{{#if:{{{before|}}}|AND update.version_code < (0+{{#invoke:pad version|main|{{{before}}}}})}}<!-- | ||
|group by=_pageName, version, version_note | -->{{#if:{{{since|}}}|AND update.version_code >= (0+{{#invoke:pad version|main|{{{since}}}}})}} | ||
|order by=update.version_code, changes.version | |||
|group by=changes._pageName, changes.version, changes.version_note, update.version_code | |||
|join on=changes._pageName = update._pageName | |||
|format=list | |format=list | ||
Latest revision as of 04:02, 26 April 2026
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 |