mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
documented "to_image"
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1467 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -9,6 +9,7 @@ These functions are built into the program, other [[type:function]]s can be defi
|
|||||||
| [[fun:to_number]] Convert any value to a number
|
| [[fun:to_number]] Convert any value to a number
|
||||||
| [[fun:to_boolean]] Convert any value to a [[type:boolean]]
|
| [[fun:to_boolean]] Convert any value to a [[type:boolean]]
|
||||||
| [[fun:to_color]] Convert any value to a [[type:color]]
|
| [[fun:to_color]] Convert any value to a [[type:color]]
|
||||||
|
| [[fun:to_image]] Convert any value to an [[type:image]]
|
||||||
| [[fun:to_date]] Convert any value to a [[type:date]]
|
| [[fun:to_date]] Convert any value to a [[type:date]]
|
||||||
|
|
||||||
! Numbers <<<
|
! Numbers <<<
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
Function: to_image
|
||||||
|
|
||||||
|
DOC_MSE_VERSION: since 0.3.8
|
||||||
|
|
||||||
|
--Usage--
|
||||||
|
> to_image(any value)
|
||||||
|
|
||||||
|
Convert any value to a [[type:image]].
|
||||||
|
|
||||||
|
A string is interpreted as a [[type:filename]].
|
||||||
|
|
||||||
|
--Parameters--
|
||||||
|
! Parameter Type Description
|
||||||
|
| @input@ ''any type'' Value to convert to an image
|
||||||
|
|
||||||
|
--Examples--
|
||||||
|
>>> to_image("image1.png") == <img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
|
||||||
Reference in New Issue
Block a user