Difference between revisions of "Template:Card gallery"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> == Usage == The Card gallery template displays a set of cards as card images in a dynamic layout. Any card in the gallery can be clicked to open a modal popup wit...")
 
 
Line 41: Line 41:
 
|Swarm Intelligence
 
|Swarm Intelligence
 
}}
 
}}
 
+
[[Category:Templates]]
 
</noinclude><includeonly>{{#if:{{{1|}}}|{{#hsimg:{{{id|no_id}}}|{{{width|50}}}|{{{1}}}|{{Card image|{{{1}}}}}}}}}
 
</noinclude><includeonly>{{#if:{{{1|}}}|{{#hsimg:{{{id|no_id}}}|{{{width|50}}}|{{{1}}}|{{Card image|{{{1}}}}}}}}}
 
{{#if:{{{2|}}}|{{#hsimg:{{{id|no_id}}}|{{{width|50}}}|{{{2}}}|{{Card image|{{{2}}}}}}}}}
 
{{#if:{{{2|}}}|{{#hsimg:{{{id|no_id}}}|{{{width|50}}}|{{{2}}}|{{Card image|{{{2}}}}}}}}}

Latest revision as of 03:05, 14 December 2024

Usage

The Card gallery template displays a set of cards as card images in a dynamic layout. Any card in the gallery can be clicked to open a modal popup with a larger view of the cards in the gallery and navigation between cards.

Parameters

  • id: The ID of the card list. This must be unique for each card list on any one page.
  • (optional) width: The width of each card in pixels in the non-modal (embedded) view.
  • (up to 10 unlabeled parameters): The names of cards in the gallery.

Example

The following shorthand:

{{Card gallery
|id = 1.1
|Champion of Wits
|Ominous Sphinx
|The Locust God
|Unesh, Criosphinx Sovereign
|Vizier of the Anointed
|Endless Sands
|Imaginary Threats
|Kefnet's Last Word
|Riddleform
|Swarm Intelligence
}}

Produces: Champion of Wits Ominous Sphinx The Locust God Unesh, Criosphinx Sovereign Vizier of the Anointed Endless Sands Imaginary Threats Kefnet's Last Word Riddleform Swarm Intelligence