Template:ImageAttachment

<%/* Embeds an image element for attachments to serve from the proper attachment host.

    Parameters:
        $0 - <id>/<filename> of the attachment
        $1 - The width of the image (optional)
        $2 - The height of the image (optional)

*/%><img src="https://mdn.mozillademos.org/files/<%= $0 %>" width="<%= $1 %>" height="<%= $2 %>" />
Search for pages that use Template:ImageAttachment to see example use cases and how many pages use this macro.

Document Tags and Contributors

Contributors to this page: groovecoder, ethertank
Last updated by: ethertank,