Template:TitleLookup: Difference between revisions

From LOTR-TCG Wiki
(Created page with "<noinclude> {{#template_params:1|2}} </noinclude><includeonly>{{#if: {{#pos:{{{1}}}|-}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|join on= C.ID = CR.BaseCardID|fields=C.Ti...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
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.Title|where=CR.ID='{{{1}}}'|limit=1|no html|more results text=}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|fields=C.Title|join on= C.ID = CR.BaseCardID|where=C.CollInfo='{{{1}}}' AND CR.LanguageCode = '{{{2|EN}}}'|group by=C.ID|limit=1|no html|more results text=}}}}</includeonly><noinclude>
</noinclude><includeonly>{{#replace:{{#if: {{#pos:{{{1}}}|-}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|join on= C.ID = CR.BaseCardID|fields=C.Title|where=CR.ID='{{{1}}}'|limit=1|no html|more results text=}}|{{#cargo_query:tables=Cards=C,CardReleases=CR|fields=C.Title|join on= C.ID = CR.BaseCardID|where=C.CollInfo='{{{1}}}' AND CR.LanguageCode = '{{{2|EN}}}'|group by=C.ID|limit=1|no html|more results text=}}}}|'|''}}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"1": {
"description": "Collector's info to look up",
"description": "Collector's info or Wiki ID to look up",
"example": "1R13"
"example": "1R13 or LOTR-EN01S013.0"
}
}
},
},
"description": "Performs a lookup into the cargo Cards database. "
"description": "Performs a lookup into the cargo Cards database.  The BaseCard title is returned."
}
}
</templatedata>
</templatedata>


</noinclude>
</noinclude>

Latest revision as of 02:05, 21 August 2022

This is the "TitleLookup" template.

It should be called in the following format:

{{TitleLookup
|1=
|2=
}}

Edit the page to see the template text.

Performs a lookup into the cargo Cards database. The BaseCard title is returned.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Collector's info or Wiki ID to look up

Example
1R13 or LOTR-EN01S013.0
Unknownoptional