Was this page helpful?

Web.Image

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    web.Image(uri : str, width : num?, height : num?, text : str?) : xml
    

    Insert an image.

    Usage Restrictions

    1.8.3 or later.

    Parameters

    Name Type Description
    uri
    uri
    The image URI.
    width
    num
    (optional, default: original width) The image width.
    height
    num
    (optional, default: original height) The image height.
    text
    str
    (optional, default: none) The image alternative text.

    Result

    The <img> element.

    Samples


    Output

    To insert an image:

    {{ web.Image("http://wiki.opengarden.org/@api/deki/site/logo.png") }} 

    To insert an image with a specified size and alternative text:

    {{ web.Image("http://wiki.opengarden.org/@api/deki/site/logo.png", 100, 100, "OpenGarden Logo") }} 

    OpenGarden Logo

     

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by