Template:Timeline of items: Difference between revisions
Jump to navigation
Jump to search
>Illviljan (Added better ordering fields.) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:Version|timeline | <includeonly>{{#invoke:Version|timeline | ||
|tables = versions, items | |tables = versions, items, _pageData | ||
|fields = versions.version, versions.release_date, versions._pageName, items.class, items._pageName, items.name, items.release_version, items.inventory_icon, items.html | |fields = versions.version, versions.release_date, versions._pageName, items.class, items._pageName, items.name, items.release_version, items.inventory_icon, items.html | ||
|q_join = versions.version=items.release_version | |q_join = versions.version=items.release_version, items._pageID=_pageData._pageID | ||
|q_where = | |q_where = items.release_version IS NOT NULL {{#ifeq:{{{namespaces}}}|any | ||
| | |||
|AND _pageData._pageNamespace IN ({{{namespaces|{{NAMESPACENUMBER}}}}}) | |||
}} {{#if: {{{where|}}} | |||
|AND ({{{where}}}) | |||
}} | |||
|q_orderBy = versions.release_date DESC, versions.major_part DESC, versions.minor_part DESC, versions.patch_part DESC, versions.revision_part DESC, items.name ASC | |q_orderBy = versions.release_date DESC, versions.major_part DESC, versions.minor_part DESC, versions.patch_part DESC, versions.revision_part DESC, items.name ASC | ||
|q_groupBy = | |q_groupBy = items._pageID | ||
|q_limit = 5000 | |q_limit = 5000 | ||
}}</includeonly><noinclude>{{ | }}</includeonly><noinclude> | ||
{{Documentation}} | |||
</noinclude> |
Revision as of 23:03, 4 April 2024
This template creates a timeline that shows when items were added to the game.
Usage
Place this template on the page below a ==level 2 heading==
to create a timeline of items.
In order for an item to appear in the list, the item template must specify a release_version
.
Parameters
Parameter | Description | Required |
---|---|---|
where | Additional where conditions given to the Cargo query | |
namespaces | A comma-separated list of namespace IDs to query items from, or set to "any" to remove this restriction. |
Example
This example will produce a timeline of unique items.
{{Timeline of items|where = items.rarity_id="unique"}}
See also
The above documentation is transcluded from Template:Timeline of items/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.