6 - Image Module
nav_first.pngFirst: design:1
1 - Rate Module
Edited: 29 Apr 2012 00:01 by: James Kanjo
Comments: 21
Tags:
nav_prev.pngPrevious: design:5
5 - Page Metadata
Edited: 11 Nov 2009 11:45 by: Steven Heynderickx
Comments: 9
Tags:
Last: design:32
32 - Parenthood Module
Edited: 11 Nov 2009 21:47 by: Steven Heynderickx
Comments: 7
Tags:
nav_last.png
Next: design:7
7 - Wikidot Feeds
Edited: 11 Nov 2009 11:48 by: Steven Heynderickx
Comments: 2
Tags:
nav_next.png

6 - Image Module
Created on 23 Aug 2009 08:25
By pieterh

rating: +1+x
This is the Redirect module that redirects the browser directly to the "http://projects.wikidot.com/thread:112" page.

The Image module gives us control over the display of an image on the page. It replaces and deprecates the [[image]] syntax, which is irregular.

Syntax

[[module Image //options...//]]

Options:

  • source="source-specifier"
  • target="target-specifier"
  • frame="frame-specifier"
  • title="title-specifier"
  • caption="caption-specifier"

Source specifier:

  • "filename" means an image attached to page
  • ":first" means first image attached to page (this is the default)
  • ":random" means random image attached to page
  • "/another-page-name/filename" means an image attached to another page
  • "/another-page-name/:first" means first image attached to another page
  • "/another-page-name/:random" means random image attached to another page
  • A URL (e.g. http://www.example.com/image.jpg) means an image on the web
  • "flickr:photoid" means a Flickr photograph
  • category:pagename:first
  • :site:category:pagename:first - cross-site image include

Target specifier:

  • By default, the target is the source
  • "page-name" means a page on this wiki
  • A URL means some other web page or resource
  • none means that the image is not a link

Frame specifier:

  • By default, image is unframed
  • "border" means drawing a dark-grey border around the image
  • "black" means drawing a thick black border around the image
  • "picture" means framing the image using the picture module style

Title specifier:

  • By default, image title is its name
  • "text" provides a title that are placed above the image

Caption specifier:

  • By default, image has no caption
  • "text" provides a caption that are placed below the image

Comments: 6

Add a New Comment