Image



When editing a page you can attach images. The images are stored with and managed on the page for which they are attached. Displaying these images is straightforward with some flexibility for the way they are displayed.
While the files and images are attached to a single page, they can also be referenced on one page from another.


##Image(string [name], integer {scale}, string {altText}, string {class})


  • Name: name [Required]
    • Type: string
    • Description: The name of the page attached image.
  • Name: scale {Optional}
    • Type: integer
    • Description: The optional scale of image. The engine will automatically resize the image for display while maintaining aspect ratio.
  • Name: altText {Optional}
    • Type: string
    • Description: The optional "alt tag" for the image. This can be useful for search engines, context and accessibility.
  • Name: class {Optional}
    • Type: string
    • Description: The optional CSS class name for the image.
    • Default: img-fluid
  • Name: maxWidth {Optional}
    • Type: integer
    • Description: The optional maximum width for an image. The engine will automatically resize the image for display while maintaining aspect ratio.



Displaying an image that is attached to the page:
##Image(TightWiki Logo.png)

Displaying an image that is attached to the page scaled to 25%:
##Image(TightWiki Logo.png, 25)

Displaying an image that is attached to the page scaled to 25% with an alternate caption
##Image(TightWiki Logo.png, 25, The image caption)


Displaying an image that is attached to another page:
##Image(Some other Page/TightWiki Logo.png)


You can directly reference a page attached image:
##Image(https://tightwiki.com/File/Image/builtin::media/TightWiki_Logo.png)



Function Calling Convention
Scope Function
Instruction Function
Standard Function