Template:TokenPropertyImage: Difference between revisions

From wizzypedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
This is the 'TokenPropertyImage' template; it should be called in the following format:
<pre>
{{TokenPropertyImage|collection=wizards|traitname=head|displayname=Bippadotta}}
</pre>
And it will render like this:
{{TokenPropertyImage|collection=wizards|traitname=head|displayname=Bippadotta}}
Edit the page to see the source code.
</noinclude><includeonly>
{{#cargo_query:
{{#cargo_query:
tables=TokenProperties
tables=TokenProperties
|fields=TokenProperties.filename, TokenProperties.displayname
|fields=TokenProperties.filename, TokenProperties.displayname
|where=TokenProperties.displayname='{{{displayname}}}'
|where=TokenProperties.displayname='{{{displayname}}}' AND TokenProperties.collection='{{{collection}}}' AND TokenProperties.traitname='{{{traitname}}}'
|limit=1
|format=template
|format=template
|template=TokenPropertyImageFile
|template=TokenPropertyImageFile
Line 9: Line 19:
|delimiter=\n
|delimiter=\n
|more results text=
|more results text=
}}
}}<includeonly>

Latest revision as of 02:55, 6 July 2022

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

{{TokenPropertyImage|collection=wizards|traitname=head|displayname=Bippadotta}}

And it will render like this:


Edit the page to see the source code.