Difference between revisions of "Template:Card gallery/doc"
Dinoguy1000 (talk | contribs) ({{Lua}} instead of a see also link) |
m (modifier -> release) |
||
Line 21: | Line 21: | ||
=== Building a row === | === Building a row === | ||
Each entry goes in one row.<br /> | Each entry goes in one row.<br /> | ||
− | Rows are composed of <code>''card number''; ''set name''; ''rarity''; ''edition''; ''alt''; :: | + | Rows are composed of <code>''card number''; ''set name''; ''rarity''; ''edition''; ''alt''; :: release // options</code>. For cards that don't have a card number, it should have the set code for the respective file<!--TODO: we should have a list of these somewhere...-->.<br /> |
The options part is optional and is separated by inserting <code>//</code> and then the options keys. These are: | The options part is optional and is separated by inserting <code>//</code> and then the options keys. These are: | ||
;<code>extension::''<value>''</code> | ;<code>extension::''<value>''</code> |
Latest revision as of 22:46, 26 July 2019
This is a documentation subpage for Template:Card gallery. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template is meant to be used to generate card galleries.
Usage[edit]
One per region:
{{Card gallery|region=|type=| }}
Parameters[edit]
region
- Required parameter. Used to pass a region.
type
- Optional parameter. Used to define the type of gallery, which will impact the way the other parameters are passed. Takes
Anime
,Manga
,Video games
, andOther
.
Building a row[edit]
Each entry goes in one row.
Rows are composed of card number; set name; rarity; edition; alt; :: release // options
. For cards that don't have a card number, it should have the set code for the respective file.
The options part is optional and is separated by inserting //
and then the options keys. These are:
extension::<value>
- Uses the value entered here as the extension for the image. Default is PNG (
.png
). description::<value>
- Adds a file description after the standard caption. Usually used on alternate versions.
caption::<value>
- Used only for the
Other
type. Sets the caption under the image, overriding any other automatically generated text. twitter::<value>
- Used only for the
Other
type. Adds a link to the tweet with the passed ID posted by the official Yu-Gi-Oh! OCG Twitter. youtube::<value>
- Used only for the
Other
type. Adds a link to the video with the passed ID posted by the official Yu-Gi-Oh! OCG YouTube Channel.
Examples[edit]
- coming soon...
Tracking categories[edit]
See also[edit]
- {{Set gallery}}
- {{Strategy gallery}}
- {{Set list}}