Template:CardReadoutRow: Difference between revisions

From LOTR-TCG Wiki
(Created page with "<noinclude> {{#template_params:1}} </noinclude><includeonly> |- | style="min-width:200px; max-width:275px" | [[File:{{{PortraitFile}}}|center|link={{{PageTitle}}}]] | style="m...")
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:1}}
{{#template_params:1}}
This is used as output by cargo queries that want to display a card portrait, hover-over card title link, culture, card type, and game text.
</noinclude><includeonly>
</noinclude><includeonly>
|-
|-
| style="min-width:200px; max-width:275px" | [[File:{{{PortraitFile}}}|center|link={{{PageTitle}}}]]
| style="min-width:200px; max-width:300px" | {{#widget:LazyImage|ImageFile={{{PortraitFile}}}|PageTitle={{{PageTitle}}}|Width=200}}
| style="min-width:200px" | <span class="tooltip">[[{{{PageTitle}}}|{{{Title}}}{{#if:{{{Subtitle|}}}|, {{{Subtitle}}}}}{{#if:{{{CollInfo|}}}|<nowiki /> ({{{CollInfo}}})}}]]<span>[[File:{{#ifexist:File:{{{ImageFile|}}}|{{{ImageFile}}}|Card_Not_Found.jpg}}|link={{{PageTitle}}}]]</span></span><!--{{Card|{{{CardID}}}}}-->
| style="min-width:200px" | <span class="tooltip">[[{{{PageTitle}}}|{{{Title}}}{{#if:{{{Subtitle|}}}|, {{{Subtitle}}}}}{{#if:{{{CollInfo|}}}|<nowiki /> ({{{CollInfo}}})}}]]{{#widget:TooltipImage|ImageFile={{#ifexist:File:{{{ImageFile|}}}|{{{ImageFile}}}|Card_Not_Found.jpg}}|PageTitle={{{PageTitle}}}}}</span><!--{{Card|{{{CardID}}}}}-->
| [[Image:{{{Culture}}}.svg|x20px|text-bottom|link={{{Culture}}}_Culture|class=whitebg]] '''[[{{{Culture}}}_Culture|{{{Culture}}}]]'''
| style="min-width:130px" | [[Image:Culture_{{{Culture}}}.svg|x20px|text-bottom|link={{{Culture}}}_Culture|class=whitebg]] '''[[{{{Culture}}}_Culture|{{{Culture}}}]]'''
|{{{CardType}}}{{#switch: {{{CardType}}}
|{{{CardType}}}{{#switch: {{{CardType}}}
   | Ally= {{{CardType}}}{{#if:{{{SiteNum|}}}|<nowiki> </nowiki>• {{{SiteNum}}}}}{{#if:{{{CardSubtype|}}}|<nowiki> </nowiki>• {{{CardSubtype}}}}}
   | Ally= {{#if:{{{SiteNum|}}}|<nowiki> </nowiki>• Home {{{SiteNum}}}}}{{#if:{{{CardSubtype|}}}|<nowiki> </nowiki>• {{{CardSubtype}}}}}
   | Companion
   | Companion
   | Minion
   | Minion
Line 13: Line 15:
   | Artifact
   | Artifact
   | Possession
   | Possession
   | Event = {{{CardType}}}{{#if:{{{CardSubtype|}}}|<nowiki> </nowiki>• {{{CardSubtype}}}}}
   | Event = {{#if:{{{CardSubtype|}}}|<nowiki> </nowiki>• {{{CardSubtype}}}}}
   | Follower
   | Follower
   | Site
   | Site
   | The One Ring= {{{CardType}}}
   | The One Ring=  
  |
   }}
   }}
|{{{GameText}}}</includeonly>
|{{{GameText}}}</includeonly>

Latest revision as of 22:15, 21 January 2023

This is the "CardReadoutRow" template.

It should be called in the following format:

{{CardReadoutRow
|1=
}}

Edit the page to see the template text.

This is used as output by cargo queries that want to display a card portrait, hover-over card title link, culture, card type, and game text.