Template:TokenPropertyGallery: Difference between revisions

From wizzypedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


* '''widths''' and '''heights''' - You can also limit the size by using the optional <tt>widths</tt> and <tt>heights</tt> parameters (you must use both)
* '''widths''' and '''heights''' - You can also limit the size by using the optional <tt>widths</tt> and <tt>heights</tt> parameters (you must use both)
* '''hidetitle''' - default 1, set to 0 if you want to turn them off
* '''hidetitle''' - default 0, set to 1 if you want to turn them off
* '''limit''' - limit number, default 20000
* '''limit''' - limit number, default 20000


Line 15: Line 15:
{{#cargo_query:
{{#cargo_query:
tables=TokenProperties
tables=TokenProperties
|fields=_pageName, TokenProperties.filename, TokenProperties.displayname, CONCAT({{{hidetitle|0}}})=hidetitle
|fields=_pageName, TokenProperties.filename, TokenProperties.displayname, CONCAT({{#ifeq:{{{hidetitle}}}|1||0}})=hidetitle
|where=TokenProperties.collection='{{{collection}}}' AND TokenProperties.traitname='{{{traitname}}}'
|where=TokenProperties.collection='{{{collection}}}' AND TokenProperties.traitname='{{{traitname}}}'
|order by={{#if:{{{sortById|}}}|_rowID|TokenProperties.displayname}}
|order by={{#if:{{{sortById|}}}|_rowID|TokenProperties.displayname}}

Revision as of 14:32, 7 July 2022

This is the 'TokenPropertyGallery' template; it should be called in the following format:

{{TokenPropertyGallery|collection=wizards|traitname=head}}

Options

  • widths and heights - You can also limit the size by using the optional widths and heights parameters (you must use both)
  • hidetitle - default 0, set to 1 if you want to turn them off
  • limit - limit number, default 20000