Template:Card type returns
Jump to navigation
Jump to search
Usage[edit source]
- Shortcut
{{Card type returns|<renderName, name, or id of card type to return>|<returns renderName, name, or id of that card type (default is name)>|<template format to display return (default is Count layout)>}}
- Full usage
{{Card type returns |id/name/renderName/where= |fields=id/name/renderName |layout=Count layout/Link layout }}
Notes[edit source]
- If the card type does not have a custom definition yet, it will always return id and use {{Count layout}}.
Examples[edit source]
{{Card type returns|where=CardsCardType.name="GAME"|fields=id}}
returns: 1{{Card type returns|3|renderName}}
returns: Hero{{Card type returns|HERO|name}}
returns: HERO{{Card type returns|Hero|id}}
returns: 3{{Card type returns|HERO|renderName|Link layout}}
returns: Hero