Template:ERADeckListLookup: Difference between revisions

From Goober Games
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 43: Line 43:
}}
}}
!
!
====Actions/Equipment====
====Actions====
{{#cargo_query:tables=ERA_Deck,ERA_Card
{{#cargo_query:tables=ERA_Deck,ERA_Card
|join on=ERA_Deck.Cards3 HOLDS ERA_Card._pageName
|join on=ERA_Deck.Cards3 HOLDS ERA_Card._pageName
|where=ERA_Deck._pageName="{{PAGENAME}}"
|where=ERA_Deck._pageName="{{PAGENAME}}" AND ERA_Card.Type HOLDS "Action"
|fields=ERA_Card._pageName=Card
|fields=ERA_Card._pageName=Card
|format=template
|format=template
Line 57: Line 57:
}}{{#cargo_query:tables=ERA_Deck,ERA_Card
}}{{#cargo_query:tables=ERA_Deck,ERA_Card
|join on=ERA_Deck.Cards2 HOLDS ERA_Card._pageName
|join on=ERA_Deck.Cards2 HOLDS ERA_Card._pageName
|where=ERA_Deck._pageName="{{PAGENAME}}"
|where=ERA_Deck._pageName="{{PAGENAME}}" AND ERA_Card.Type HOLDS "Action"
|fields=ERA_Card._pageName=Card
|fields=ERA_Card._pageName=Card
|format=template
|format=template
Line 68: Line 68:
}}{{#cargo_query:tables=ERA_Deck,ERA_Card
}}{{#cargo_query:tables=ERA_Deck,ERA_Card
|join on=ERA_Deck.Cards1 HOLDS ERA_Card._pageName
|join on=ERA_Deck.Cards1 HOLDS ERA_Card._pageName
|where=ERA_Deck._pageName="{{PAGENAME}}"
|where=ERA_Deck._pageName="{{PAGENAME}}" AND ERA_Card.Type HOLDS "Action"
|fields=ERA_Card._pageName=Card
|fields=ERA_Card._pageName=Card
|format=template
|format=template
Line 78: Line 78:
|more results text=
|more results text=
}}
}}
|}
====Equipment====
</includeonly><noinclude>[[Category:Core Templates]]</noinclude>
{{#cargo_query:tables=ERA_Deck,ERA_Card
|join on=ERA_Deck.Cards3 HOLDS ERA_Card._pageName
|where=ERA_Deck._pageName="{{PAGENAME}}" AND ERA_Card.Type HOLDS "Equipment"
|fields=ERA_Card._pageName=Card
|format=template
|template=Template:ERADecklist_3x
|limit=100
|default=
|order by=ERA_Card.UID ASC
|named args=yes
|more results text=
}}{{#cargo_query:tables=ERA_Deck,ERA_Card
|join on=ERA_Deck.Cards2 HOLDS ERA_Card._pageName
|where=ERA_Deck._pageName="{{PAGENAME}}" AND ERA_Card.Type HOLDS "Equipment"
|fields=ERA_Card._pageName=Card
|format=template
|template=Template:ERADecklist_2x
|limit=100
|default=
|order by=ERA_Card.UID ASC
|named args=yes
|more results text=
}}{{#cargo_query:tables=ERA_Deck,ERA_Card
|join on=ERA_Deck.Cards1 HOLDS ERA_Card._pageName
|where=ERA_Deck._pageName="{{PAGENAME}}" AND ERA_Card.Type HOLDS "Equipment"
|fields=ERA_Card._pageName=Card
|format=template
|template=Template:ERADecklist_1x
|limit=100
|default=
|order by=ERA_Card.UID ASC
|named args=yes
|more results text=
}}
|}</includeonly><noinclude>[[Category:Core Templates]]</noinclude>

Latest revision as of 13:47, 23 May 2024