Template:Timeline of items: Difference between revisions

From Path of Exile 2 Wiki
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
        versions.version IS NOT NULL  
  |
    AND items.release_version IS NOT NULL
  |AND _pageData._pageNamespace IN ({{{namespaces|{{NAMESPACENUMBER}}}}})
    {{#if: {{{where|}}}
}} {{#if: {{{where|}}}
        |AND ({{{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 = versions._pageID, items._pageID
|q_groupBy = items._pageID
|q_limit = 5000
|q_limit = 5000
}}</includeonly><noinclude>{{documentation}}</noinclude>
}}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Revision as of 23:03, 4 April 2024

Template documentation[view] [edit] [history] [purge]


Lua logo

This template uses the following modules:

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 No
namespaces A comma-separated list of namespace IDs to query items from, or set to "any" to remove this restriction. No

Example

This example will produce a timeline of unique items.

{{Timeline of items|where = items.rarity_id="unique"}}

See also