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=R.Abbr,Rarities.Sets HOLDS CS.ID
|join on=C.ID = CR.BaseCardID,C.SetNum = CS.ID,C.Rarity=Rarities.Abbr,Rarities.Sets HOLDS CS.ID
|fields=  
|fields=  
IFNULL(C.Subtitle, C.Title)=CardName
IFNULL(C.Subtitle, C.Title)=CardName
,R.Name=Rarity
,Rarities.Name=Rarity
,CS.ID=SetNum
,CS.ID=SetNum
,CS.Name=SetName
,CS.Name=SetName

Revision as of 08:55, 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.