Template:RarityDistributionList: Difference between revisions

From LOTR-TCG Wiki
No edit summary
Tag: Reverted
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:1}}
{{#template_params:1}}
</noinclude><includeonly>
</noinclude><includeonly>{{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities
{{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities=R
|join on=C.ID = CR.BaseCardID,C.SetNum = CS.ID,C.Rarity=Rarities.Abbr
|join on=C.ID = CR.BaseCardID,C.SetNum = CS.ID,C.Rarity=R.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
,CS.Abbr=SetAbbr
,CS.Abbr=SetAbbr
|where=C.ID='{{IDLookup|{{{1}}}}}'
|where=C.ID='{{IDLookup|{{{1}}}}}'
AND Rarities.Sets HOLDS CS.ID
|limit=1
|format=template
|format=template
|template=RarityDistribution
|template=RarityDistribution
Line 17: Line 18:
|no html
|no html
|default=
|default=
|more results text=
}}</includeonly>
}}</includeonly>

Latest revision as of 01:23, 19 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.