Template:RarityDistributionList: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
Line 3: Line 3:
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities
{{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities
|join on=C.ID = CR.BaseCardID,C.SetNum = CS.ID,C.Rarity=Rarities.Abbr,Rarities.Sets HOLDS CS.ID
|join on=C.ID = CR.BaseCardID,C.SetNum = CS.ID,C.Rarity=Rarities.Abbr
|fields=  
|fields=  
IFNULL(C.Subtitle, C.Title)=CardName
IFNULL(C.Subtitle, C.Title)=CardName
Line 11: Line 11:
,CS.Abbr=SetAbbr
,CS.Abbr=SetAbbr
|where=C.ID='{{IDLookup|{{{1}}}}}'
|where=C.ID='{{IDLookup|{{{1}}}}}'
,Rarities.Sets HOLDS CS.ID
|format=template
|format=template
|template=RarityDistribution
|template=RarityDistribution

Revision as of 09:05, 12 October 2021

This is the "RarityDistributionList" template.

It should be called in the following format:

{{RarityDistributionList
|1=
}}

Edit the page to see the template text.