getImage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Returns the [[asset id]] for the image of an [[Token:Image Token]]. | |name=getImage | ||
|description=Returns the [[asset id]] for the image of an [[Token:Image Token]]. | |||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: asset = getImage(name)] | [h: asset = getImage(name)] | ||
</source> | </source> | ||
|example= | |||
To display the image from an [[Token:image token | To display the image from an [[Token:image token{{!}}image token]] called "image:Map" you can do the following | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
<img src="[r: getImage('image:Map')]"></img> | <img src="[r: getImage('image:Map')]"></img> | ||
</source> | </source> | ||
}} | |||
[[Category:Miscellaneous Function]] |
Revision as of 03:25, 7 March 2009
getImage() Function
Returns the asset id for the image of an Token:Image Token.
Usage
[h: asset = 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>