Template:AthenaeumItemGallery: Difference between revisions
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...") |
|||
(12 intermediate revisions by 2 users 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> | ||
{{ | {{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 | ||
Line 24: | Line 28: | ||
|limit={{#if:{{{limit|}}}|{{{limit}}}|20000}} | |limit={{#if:{{{limit|}}}|{{{limit}}}|20000}} | ||
}} | }} | ||
|mode=packed | |||
|mode=packed | |mode=packed | ||
|widths={{#if:{{{widths|}}}|{{{widths}}}|120px}} | |widths={{#if:{{{widths|}}}|{{{widths}}}|120px}} | ||
|heights={{#if:{{{heights|}}}|{{{heights}}}|120px}} | |heights={{#if:{{{heights|}}}|{{{heights}}}|120px}} | ||
}} | }} | ||
<includeonly> | <includeonly> |
Latest revision as of 17:12, 19 November 2024
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