Template:ERACardPage Dino: Difference between revisions

From Goober Games
No edit summary
No edit summary
 
(64 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_query:tables=ERA_Card
<includeonly>{{#cargo_query:tables=ERA_Card,ERA_Printing
|join on=ERA_Card._pageName=ERA_Printing.Card
|where=ERA_Card._pageName="{{PAGENAME}}"
|where=ERA_Card._pageName="{{PAGENAME}}"
|fields=ERA_Card.UID,Type,Element,Image,Power,Stamina,Hitpoints,Edition,Product,Rules
|fields=ERA_Card.UID,Type,Element,Power,Stamina,Hitpoints,Rules,ERA_Printing._pageName=Image
|limit=1
|more results text=
|format=template
|format=template
|template=Infobox ERACard
|template=Infobox ERACard
|order by=ERA_Printing.PrintingUID DESC
|named args=yes
|named args=yes
}}'''{{PAGENAME}}''' is a [[Dino]] card in {{Title|ERA}}.[[Category:ERA Card]][[Category:ERA Dino]]
}}{{BubbleNav|ERACardListDinos|}}
'''{{PAGENAME}}''' is a [[Dino]] card in {{Title|ERA}}.
{{#cargo_query:tables=ERA_Card
|where=ERA_Card._pageName="{{PAGENAME}}"
|fields=ERA_Card.Element,Power=P,Stamina=S,Hitpoints=HP,Rules=Rules Text
|format=table
|column widths=55px,20px,20px,20px
}}
===Rulings===
{{#cargo_query:tables=ERA_Ruling
|where=ERA_Ruling.Card="{{PAGENAME}}"
|fields=ERA_Ruling.Text=Ruling,ERA_Ruling.PostDate=Date
|format=template
|template=ERARulingListItem
|named args=yes
}}
==Printings==
{{#cargo_query:tables=ERA_Printing
|where=ERA_Printing.Card="{{PAGENAME}}"
|fields=ERA_Printing._pageName
|format=gallery
|order by=ERA_Printing.PrintingUID ASC
|mode=traditional
|image width=180
|image height=252
|show bytes=0
|show dimensions=0
|show filename=0
}}


==Decks==
==Decks==
'''{{PAGENAME}}''' is included in the following decks:
'''{{PAGENAME}}''' is included in the following decks:
{{#cargo_query:tables=ERA_Product
 
|where=ERA_Product.Code="{{PAGENAME}}"
{{#cargo_query:tables=ERA_Deck
|where=ERA_Deck.Dinos HOLDS "{{PAGENAME}}"
|fields=ERA_Deck._pageName=Name,Author,PostDate,Elements
|fields=ERA_Deck._pageName=Name,Author,PostDate,Elements
|format=table
|format=table
Line 17: Line 50:


==Products==
==Products==
'''{{PAGENAME}}''' is available in the following products:
A printing of '''{{PAGENAME}}''' is available in the following products:
{{#cargo_query:
 
    tables=ERA_Card=card, ERA_Product=product
{{#cargo_query:tables=ERA_Product,ERA_Printing
    |join on=card.Product HOLDS product.Code
|join on=ERA_Product.Printings HOLDS ERA_Printing.PrintingUID
    |fields=product._pageName=Product Page, product.Code=Product Code, product.UPC=UPC, product.Type=Type, product.AvailableDate=Available Date
|where=ERA_Printing.Card="{{PAGENAME}}"
    |where=card._pageName="{{PAGENAME}}"
|fields=ERA_Product._pageName=Product Name,Code=Product Code,Type,AvailableDate=Available Date
    |format=table
|format=table
|merge similar cells=1
|order by=AvailableDate ASC
}}
}}
</includeonly><noinclude>[[Category:Core Templates]]</noinclude>
 
{{#if: {{#cargo_query:tables=ERA_Errata|where=ERA_Errata.Card="{{PAGENAME}}"|fields=ERA_Errata.PostDate|more results text=|default=}}|==Errata==|}}
{{#cargo_query:tables=ERA_Errata
|where=ERA_Errata.Card="{{PAGENAME}}"
|fields=ERA_Errata.PostDate=Date,ERA_Errata.Justification=Justification,ERA_Errata.BeforeText=Before,ERA_Errata.AfterText=After,ERA_Errata.Card=Card
|format=template
|template=ERAErrataListItem
|named args=yes
|default=
}}[[Category:ERA Card]][[Category:ERA Dino]]</includeonly><noinclude>[[Category:Core Templates]]</noinclude>

Latest revision as of 17:44, 22 May 2024