getImage: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=getImage
|name=getImage
|version=1.3b48
|description=Returns the [[asset id]] for the image of an [[Token:Image Token]].  
|description=Returns the [[asset id]] for the image of an [[Token:Image Token]].  


|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: asset = getImage(name)]
getImage(name)
</source>
</source>



Revision as of 13:39, 10 March 2009

getImage() Function

Introduced in version 1.3b48
Returns the asset id for the image of an Token:Image Token.

Usage

getImage(name)

Example

To display the image from an image token called "image:Map" you can do the following
<img src="[r: getImage('image:Map')]"></img>