Template:TokenPropertyGallery: Difference between revisions

From wizzypedia
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(38 intermediate revisions by the same user not shown)
Line 4: Line 4:
{{TokenPropertyGallery|collection=wizards|traitname=head}}
{{TokenPropertyGallery|collection=wizards|traitname=head}}
</pre>
</pre>
== Options ==
* '''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 0, set to 1 if you want to turn them off
* '''limit''' - limit number, default 20000
</noinclude><includeonly>
</noinclude><includeonly>
{{#tag:gallery|
{{#cargo_query:
{{#cargo_query:
tables=TokenProperties
tables=TokenProperties
|fields=TokenProperties.filename, TokenProperties.displayname
|fields=_pageName, TokenProperties.filename, TokenProperties.displayname, CONCAT({{#ifeq:{{{hidetitle|0}}}|1|1|0}})=hidetitle
|where=TokenProperties.collection='{{{collection}}}' AND TokenProperties.traitname='{{{traitname}}}'
|where=TokenProperties.collection='{{{collection}}}' AND TokenProperties.traitname='{{{traitname}}}'
|format=gallery
|order by={{#if:{{{sortById|}}}|_rowID|TokenProperties.displayname}}
|mode=packed-hover
|format=template
|caption field=displayname
|template=TokenPropertyGalleryItem
|alt field=displayname
|named args=yes
|link field=displayname
|delimiter=\n
|show filename=0
|more results text=
|show bytes=0
|limit={{#if:{{{limit|}}}|{{{limit}}}|20000}}
|default=
}}
}}<includeonly>
|mode=packed
|widths={{#if:{{{widths|}}}|{{{widths}}}|120px}}
|heights={{#if:{{{heights|}}}|{{{heights}}}|120px}}
|
}}
<includeonly>

Latest revision as of 14:36, 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