Template:AthenaeumItemGallery: Difference between revisions

From wizzypedia
Jump to navigation Jump to search
(Created page with "<noinclude> This is the 'TokenPropertyGallery' template; it should be called in the following format: <pre> {{TokenPropertyGallery|collection=wizards|traitname=head}} </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><incl...")
 
No edit summary
Tag: Manual revert
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
This is the 'TokenPropertyGallery' template; it should be called in the following format:
This is the 'TokenPropertyGallery' template; it should be called in the following format:
<pre>
<pre>
{{TokenPropertyGallery|collection=wizards|traitname=head}}
{{AthenaeumItemGallery}}
</pre>
</pre>


Line 10: Line 10:
* '''hidetitle''' - default 0, set to 1 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
== Example ==
{{AthenaeumItemGallery}}


</noinclude><includeonly>
</noinclude><includeonly>
Line 15: Line 19:
{{#cargo_query:
{{#cargo_query:
tables=Athenaeum
tables=Athenaeum
|fields=_pageName, Athenaeum.id, Athenaeum.displayname, CONCAT({{#ifeq:{{{hidetitle|0}}}|1|1|0}})=hidetitle
|fields=_pageName, Athenaeum.id, Athenaeum.name=displayname, CONCAT(Athenaeum.id, '.png')=filename, CONCAT({{#ifeq:{{{hidetitle|0}}}|1|1|0}})=hidetitle
|order by={{#if:{{{sortById|}}}|_rowID|Athenaeum.name}}
|order by={{#if:{{{sortById|}}}|_rowID|Athenaeum.name}}
|format=template
|format=template

Latest revision as of 19:14, 30 May 2023

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

{{AthenaeumItemGallery}}

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

Example