Template:IDLookup: Difference between revisions
From LOTR-TCG Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:1|2}} | {{#template_params:1|2}} | ||
</noinclude><includeonly>{{#if: {{#pos:{{{1}}}|-}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|join on= C.ID = CR.BaseCardID|fields=C.ID|where=CR.ID='{{{1}}}'|limit=1|no html}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|fields= | </noinclude><includeonly>{{#if: {{#pos:{{{1}}}|-}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|join on= C.ID = CR.BaseCardID|fields=C.ID|where=CR.ID='{{{1}}}'|limit=1|no html}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|fields=C.ID|join on= C.ID = CR.BaseCardID|where=C.CollInfo='{{{1}}}' AND CR.LanguageCode = '{{{2|EN}}}'|limit=1|no html}}}}</includeonly><noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { |
Revision as of 01:56, 12 October 2021
This is the "IDLookup" template.
It should be called in the following format:
{{IDLookup |1= |2= }}
Edit the page to see the template text.
Performs a lookup into the cargo Cards database. If a card WikiID is passed (such as '''LOTR-TW01S013.0'''), it will be ignored, but otherwise it will be treated as a collector's info to be looked up instead.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Collector's info to look up (ignored if it's a wiki ID instead)
| Unknown | optional |