Binding of Isaac: Rebirth Wiki
Binding of Isaac: Rebirth Wiki
m
m
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<onlyinclude><includeonly>{{#invoke: cargo | query
 
<onlyinclude><includeonly>{{#invoke: cargo | query
 
| tables = collectible
 
| tables = collectible
  +
| fields = _pageName = page, {{#if: {{{force|{{{2|}}}}}} | '{{#invoke: dlc | parse | {{{force|{{{2}}}}}} }}' = }} dlc, alias, name, image, id, quote, is_activated, description, recharge, quality
| fields = name, "{{{force|}}}" = force
 
| where = {{#if: {{{where|}}} | {{{where}}}{{#lstmap: {{{1|}}} | , | @@@@ | \_OR name = "@@@@" }} | {{#lstmap: {{{1|}}} | , | @@@@ | name = "@@@@" | \_OR\_ }} }}
+
| where = {{#if: {{{where|}}} | {{{where}}}{{#lstmap: {{{1|}}} | , | @@@@ | \_OR alias = "@@@@" }} | {{#lstmap: {{{1|}}} | , | @@@@ | alias = "@@@@" | \_OR\_ }} }}
| order by = dlc DESC, name
+
| order by = {{#or: {{{order by|}}} | dlc DESC, alias }}
| limit = {{{limit|800}}}
+
| limit = {{#or: {{{limit|}}} | 800 }}
| template = collectible table/query
+
| template = collectible row/query
 
}}</includeonly></onlyinclude>
 
}}</includeonly></onlyinclude>
 
{{doc}}
 
{{doc}}
  +
<noinclude>
  +
[[category:templates]]
  +
[[category:Helper templates]]
  +
</noinclude>

Latest revision as of 20:18, 17 August 2021

Template-info.png Documentation

Usage

{{collectible rows | 1 | 2 | where = | order by = | limit = }} or {{collectible rows | 1 | where = | order by = | limit = | force = }}

Description

Returns multiple table rows of collectibles.

Template parameters

ParameterDescriptionTypeStatus
Names1

The names of the collectibles in the database, separated with commas.

Example
The Sad Onion, The Inner Eye
Stringsuggested
Wherewhere

Corresponds to the WHERE clause.

Example
is_activated = 1
Stringsuggested
Order byorder by

Corresponds to the ORDER BY clause.

Default
dlc DESC, alias
Example
id
Stringoptional
Limitlimit

Corresponds to the LIMIT clause

Example
10
Numberoptional
DLC constraintforce 2

Replaces the DLC of the collectibles with a more restricted DLC.

Example
a
Stringoptional