getImage: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function getImage== {{ProposedChange}} Returns the asset id for the image of an Token:image token. ===Usage=== <source lang="mtmacro" line> [h: asset = getImage(name)] </sourc...)
 
No edit summary
Line 1: Line 1:
==Function getImage==
==Function getImage==
{{ProposedChange}}
eturns the [[asset id]] for the image of the [[Token:Current Token|Current Token]].  
Returns the [[asset id]] for the image of an [[Token:image token|image token]].  


===Usage===
===Usage===

Revision as of 12:56, 13 December 2008

Function getImage

eturns the asset id for the image of the Current Token.

Usage

[h: asset = getImage(name)]

Examples

To display the image from an image token called "image:Map" you can do the following

<img src="[r: getImage('image:Map')]></img>