Template:CardInfobox: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
 
(117 intermediate revisions by the same user not shown)
Line 3: Line 3:
</noinclude><includeonly>
</noinclude><includeonly>
{| class="wikitable card-infobox-container" style="float:right; width:370px; margin:0 0 0 50px"
{| class="wikitable card-infobox-container" style="float:right; width:370px; margin:0 0 0 50px"
|+ <big>Gimli, Son of Gloin</big>
|-
|-
|
|
{{#tag:gallery|{{#cargo_query:tables=Cards=C,CardReleases=CR
{{#tag:gallery|{{#cargo_query:tables=Cards=C,CardReleases=CR,Languages=L,Rarities=R
|join on=C.ID = CR.BaseCardID
|join on=C.ID = CR.BaseCardID,CR.LanguageCode=L.Code,C.Rarity=R.Abbr
|fields= CR.ImageFilename=Filename,CR.LanguageCode,CR.Subset=Style
|fields= IFNULL(CR.ImageFilename
,'Card_Not_Found.jpg')=Filename
,CR.LanguageCode
,CR.Subset=Style
,R.Name=Rarity
,CR.Revision=Revision
|where=C.ID='{{IDLookup|{{{1}}}}}'
|where=C.ID='{{IDLookup|{{{1}}}}}'
|output=template
|order by=L.SortOrder,{{StandardSort}},CR._rowID
|format=template
|template=GalleryQuery
|template=GalleryQuery
|named args= yes
|named args= yes
|delimiter=\n
|delimiter=\n
|no html
|no html
}}|mode="slideshow"|showthumbnails="true"}}
}}|mode="slideshow"}}
|-
|-
|style="padding:0px;"|
|style="padding:0px;"|<!--


{| class="wikitable mw-collapsible" style="width:100%;margin:0"
-->{{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities=R,Languages=L
|-
|join on=C.ID = CR.ID,C.SetNum=CS.ID,R.Abbr=C.Rarity,CR.LanguageCode=L.Code
!colspan="3" class="mw-customtoggle-section1"|Collection Info
|fields= TRIM('Collection Info'),
|-
TRIM('Title'), CR.Title,
|style="width:140px"| '''Title'''  
TRIM('Subtitle'), IFNULL(CR.Subtitle,' '),
|colspan="2" | Gimli
TRIM('Unique'), IF(CR.IsUnique = 1, 'Yes', 'No'),
|-
TRIM('Collectible'),  IF(IFNULL(CR.IsPhysical, C.IsPhysical) = 1, 'Yes', 'No'),
| '''Subtitle'''  
TRIM('Notes'), IFNULL(C.Notes,' '),
|colspan="2"| Son of Gloin
TRIM('[[Set]]'), CONCAT(CS.ID, ' - [[', CS.Name, ']]'),
|-
TRIM('[[Rarity]]'), CONCAT(R.Abbr, ' - [[Rarity{{!}}', R.Name, ']]'),
| '''Set'''  
TRIM('Card Number'), C.CardNum,
|colspan="2"| 1 - [[Fellowship of the Ring]]
TRIM('[[Language]]'), CONCAT(L.Code, ' - [[Languages{{!}}', L.Name, ']]'),
|-
TRIM('Revision'), C.Revision,
| '''Rarity'''
TRIM('Notes'), CONCAT(C.Notes, '<br>', CR.Notes)
|colspan="2"| R - [[Rarity|Rare]]
|where=C.ID='{{IDLookup|{{{1}}}}}' AND R.Sets HOLDS C.SetNum
|-
|format=template
| '''Card Number'''
|template=CardSubInfoTable
|colspan="2"| 13
|named args= no
|-
|delimiter=\n
| '''Revisions'''  
|no html
|colspan="2"| 0 (never been errata'd)
}}<!--
|-
| '''Language'''  
|colspan="2"| EN - English
|-
| '''Collectible'''
|colspan="2"| Yes
|-
| '''Notes'''
|colspan="2"|  
|}


-->
|-
|-
|style="padding:0px;"|
|style="padding:0px;"|<!--


{| class="wikitable mw-collapsible" style="width:100%;margin:0"
-->{{#cargo_query:tables=Cards=C,CardReleases=CR,CardTypes=CT
|-
|join on=C.ID = CR.ID,C.CardType = CT.Name
!colspan="3" class="mw-customtoggle-section1"|Gameplay Info
|fields= TRIM('Gameplay Info')=TableName,
|-
IF(C.IsPlayable = 1, 'Yes', 'No')=Playable,
|style="width:140px"| '''Playable'''  
C.CardType,
|colspan="2" | Yes
CONCAT('[[Image:Culture_', C.Culture, '.svg{{!}}x20px{{!}}text-bottom{{!}}link=', C.Culture, '_Culture{{!}}class=whitebg]] \'\'\'[[', C.Culture, '_Culture{{!}}', C.Culture, ']]\'\'\'')=Culture,
|-
CONCAT('[[', IF(C.Side='Freeps', 'Free Peoples', C.Side), ']]')=Side,
| '''Culture'''
CT.SubtypeClass, CR.Subtypes,
|colspan="2"| {{C|Dwarven}}  
CR.TwilightCost,
|-
IF(CR.Strength=0, NULL, CR.Strength)=Strength,
| '''Side'''  
IF(CR.StrengthMod=0, NULL, CR.StrengthMod)=StrengthMod,
|colspan="2"| [[Free Peoples]]
IF(CR.Vitality=0, NULL, CR.Vitality)=Vitality,
|-
IF(CR.VitalityMod=0, NULL, CR.VitalityMod)=VitalityMod,
| '''Race'''
IF(CR.SiteNum=0, NULL, CR.SiteNum)=SiteNum,
|colspan="2"| [[Dwarf]]
IF(CR.SiteNumMod=0, NULL, CR.SiteNumMod)=SiteNumMod,
|-
IF(CR.Resistance=0, NULL, CR.Resistance)=Resistance,
| '''Twilight Cost'''  
IF(CR.ResistanceMod=0, NULL, CR.ResistanceMod)=ResistanceMod,
|colspan="2"| 2
IF(CR.Signet='None', NULL, CR.Signet)=Signet,
|-
IF(CR.Block='None', NULL, CR.Block)=Block,
| '''Strength'''  
IF(CR.ShadowNum=0, NULL, CR.ShadowNum)=ShadowNum,
|colspan="2"| 6
IF(C.CardType!='Site', NULL, IF(CR.SiteNum IN (3,6), 'Yes', 'No'))=IsSanctuary,
|-
IF(CR.ArrowDir='None', NULL, CR.ArrowDir)=ArrowDir,
| '''Vitality'''
CR.FormattedGameText,
|colspan="2"| 3
IF(CR.Lore IS NOT NULL, CONCAT('\'\'', CR.Lore, '\'\''), NULL)=Lore,
|-
IF(CR.PromoText IS NOT NULL, CONCAT('\'\'\'', CR.PromoText, '\'\'\''), NULL)=PromoText
| '''Signet'''
|where=C.ID='{{IDLookup|{{{1}}}}}'
|colspan="2"| Gandalf
|format=template
|-
|template=CardInfoTable
| '''Game Text'''  
|named args= yes
|colspan="2"| '''Damage +1'''.  
|delimiter=\n
'''Skirmish''': Exert Gimli to make him strength +2.  
|no html
|-
}}<!--
| '''Lore'''  
|colspan="2"| ''“There was a younger dwarf at Glóin's side: his son Gimli.''
|}


-->
|-
|-
|style="padding:0px;"|
|style="padding:0px;"|<!--


{| class="wikitable mw-collapsible mw-collapsed" style="width:100%;margin:0"
-->{{#cargo_query:tables=Cards=C,CardReleases=CR,Languages=L
|-
|join on=C.ID = CR.BaseCardID,CR.LanguageCode=L.Code
!colspan="3" class="mw-customtoggle-section1"|Translations
|fields=CONCAT(L.Code, ' - ', L.Name)=LanguageName,
|-
CR.Title,
!style="width:140px"| '''Language'''  
CR.Subtitle,
!colspan="2"  | FR - French
CR.FormattedGameText,
|-
IF(CR.Lore IS NOT NULL, CONCAT('\'\'', CR.Lore, '\'\''), NULL)=Lore,
| '''Name'''  
IF(CR.PromoText IS NOT NULL, CONCAT('\'\'\'', CR.PromoText, '\'\'\''), NULL)=PromoText
|colspan="2"| Gimli, Fil de Gloin
CR.Notes,
|-
CR._pageName = pn1,
| '''Game Text'''  
C._pageName = pn2
|colspan="2"| '''Dégâts +1'''.
|where=C.ID='{{IDLookup|{{{1}}}}}'  
'''Combat:''' Affaiblissez Gimli pour lui donner +2 en force.
AND L.Code NOT IN ('EN', 'TW')
|-
AND (C.SetNum IN ('9', '14', '16', '19') OR CR.Subset IN ('S'))
| '''Lore'''
|intro=<!--
|colspan="2"| “À côté de Glóin se trouvait un jeune Nain: son fils Gimli.”
-->{{{!}} class="wikitable mw-collapsible mw-collapsed" style="width:100%;margin:0"
{{!}}-
!colspan="2" {{!}}Translations
|format=template
|template=TranslationInfoboxTable
|named args= yes
|outro=<br>
{{!}}}
|default=
|delimiter=
|no html
}}<!--
-->
|-
|-
| '''Notes'''
|style="padding:0px;"|<!--
|colspan="2"|
|}
 
|-
|style="padding:0px;"|
 
{| class="wikitable mw-collapsible mw-collapsed" style="width:100%;margin:0"
|-
!colspan="3" class="mw-customtoggle-section1"|Technical Info
|-
|style="width:140px"| '''Wiki Base Card ID'''
|colspan="2"  | LOTR-EN01S013.0
|-
| '''TLHH ID'''
|colspan="2"| TLHH_ImageNum
|-
| '''Gemp ID'''
|colspan="2"| GEMP_ID
|-
| '''LOTRO Hex ID'''
|colspan="2"| LOTRO_HexNum
|-
| '''LOTRO Image ID'''
|colspan="2"| LOTRO_ImageNum
|}


-->{{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities=R,Languages=L
|join on=C.ID = CR.ID,C.SetNum=CS.ID,R.Abbr=C.Rarity,CR.LanguageCode=L.Code
|fields= TRIM('Technical Info'),
TRIM('Wiki Base Card ID'), C.ID,
TRIM('TLHH ID'), C.TLHH_ImageNum,
TRIM('GEMP ID'), C.GEMP_ID,
TRIM('LOTRO Hex ID'), C.LOTRO_HexNum,
TRIM('LOTRO Image ID'), C.LOTRO_ImageNum,
TRIM('mLOTRO ID'), C.mLOTRO_ID
|where=C.ID='{{IDLookup|{{{1}}}}}' AND R.Sets HOLDS C.SetNum
|format=template
|template=CollapsedCardSubInfoTable
|named args= no
|delimiter=\n
|no html
}}
|}
|}
</includeonly>
</includeonly>

Latest revision as of 15:04, 1 July 2022

This is the "CardInfobox" template.

It should be called in the following format:

{{CardInfobox
|ID=
}}

Edit the page to see the template text.