SourceForge.net Logo
January 26, 2010
© GPL
 
ProWikiCenter
Cdml Image
 
This CmdlElement allows to place images together with a text (e.g. a description of the image) on a highlighted background. Format, placement and alignment of image and text can be chosen, as well as the background color. You can put a colored frame around the image to increase the effect and put a subtitle in this frame. You can also change the NativeImageSize, although it is not recommended.


Example

The text flows around the image. Golden Gate, strait in western California, at the entrance to San Francisco Bay, separating the bay from the Pacific Ocean. The strait is 8 km (5 mi) long and narrows to 1 km (0.6 mi) in width. The famous Golden Gate Bridge crosses the strait to connect San Francisco, on the south, with Marin County, on the north. Although the English explorer Sir Francis Drake visited the region of San Francisco Bay in 1579 and a scout for the Spanish colonial governor Gaspar de Portolá may have explored as far as the Golden Gate in 1769, the first Europeans known with certainty to have seen it were a party of soldiers sent by Portolá in 1772. The American explorer John Charles Frémont gave the strait the name Golden Gate in 1846. (from: Encarta Online)

is generated from the following input:

[[image]http://www.wikiservice.at/image/golden_gate.jpg 
[text='''The text flows around the image.''' Golden Gate, ...]]


Parameters

  • distance: allows horizontal positioning (default: centered); e.g. [distance=50]
  • background: defines the background color (default: white); e.g. [background=lightgray] (c.f. HtmlColorCodes, CdmlColorNames)
  • width: defines the total width for text and image; e.g. [width=600]
  • padding: creates additional empty space around image and text, res. between image and text; e.g. [padding=10]
  • align: aligns the image either to the left or to the right (default=left); e.g. [align=right]
  • type: can be chosen either "column" or "surround" (default=surround); e.g. [type=column]
Additional parameters with the 2.0.042 release:

  • imagesize: change the width and height of the image display different from its native size (default=none, native size), e. g. [imagesize=300x200]
  • framecolor: create a colored frame around the image (default=none), e.g. [framecolor=lightblue] or [framecolor=#cccccc]. If a framecolor is given it is also the background color for the image subtitle.
  • framewidth: set the width of the frame around the image (default=3);
  • linecolor: draw a lnie around the whole element (default=black), e.g. [linecolor=red]
  • linewidth: set the line width of the border around the whole CdmlImage element (default=1);
  • imagetitle: display a subtitle below the image
  • imagefont: set the font properties of the image subtitle
  • url: optional alternative to defining the image url in the CdmlImage body. If used, then the body of the CdmlElement is to contain the text.

More Examples

The text flows around the image. Golden Gate, strait in western California, at the entrance to San Francisco Bay, separating the bay from the Pacific Ocean. The strait is 8 km (5 mi) long and narrows to 1 km (0.6 mi) in width. The famous Golden Gate Bridge crosses the strait to connect San Francisco, on the south, with Marin County, on the north. Although the English explorer Sir Francis Drake visited the region of San Francisco Bay in 1579 and a scout for the Spanish colonial governor Gaspar de Portolá may have explored as far as the Golden Gate in 1769, the first Europeans known with certainty to have seen it were a party of soldiers sent by Portolá in 1772. The American explorer John Charles Frémont gave the strait the name Golden Gate in 1846. (from: Encarta Online)

The text flows around the image. Golden Gate, strait in western California, at the entrance to San Francisco Bay, separating the bay from the Pacific Ocean. The strait is 8 km (5 mi) long and narrows to 1 km (0.6 mi) in width. The famous Golden Gate Bridge crosses the strait to connect San Francisco, on the south, with Marin County, on the north. Although the English explorer Sir Francis Drake visited the region of San Francisco Bay in 1579 and a scout for the Spanish colonial governor Gaspar de Portolá may have explored as far as the Golden Gate in 1769, the first Europeans known with certainty to have seen it were a party of soldiers sent by Portolá in 1772. The American explorer John Charles Frémont gave the strait the name Golden Gate in 1846. (from: Encarta Online)

Golden Gate Bridge
The text is displayed in a column to the right of the image. Golden Gate, strait in western California, at the entrance to San Francisco Bay, separating the bay from the Pacific Ocean. The strait is 8 km (5 mi) long and narrows to 1 km (0.6 mi) in width. The famous Golden Gate Bridge crosses the strait to connect San Francisco, on the south, with Marin County, on the north. Although the English explorer Sir Francis Drake visited the region of San Francisco Bay in 1579 and a scout for the Spanish colonial governor Gaspar de Portolá may have explored as far as the Golden Gate in 1769, the first Europeans known with certainty to have seen it were a party of soldiers sent by Portolá in 1772. The American explorer John Charles Frémont gave the strait the name Golden Gate in 1846. (from: Encarta Online)

The text is displayed in a column to the left of the image. The image is enlarged and changed in aspect ratio. Golden Gate, strait in western California, at the entrance to San Francisco Bay, separating the bay from the Pacific Ocean. The strait is 8 km (5 mi) long and narrows to 1 km (0.6 mi) in width. The famous Golden Gate Bridge crosses the strait to connect San Francisco, on the south, with Marin County, on the north. Although the English explorer Sir Francis Drake visited the region of San Francisco Bay in 1579 and a scout for the Spanish colonial governor Gaspar de Portolá may have explored as far as the Golden Gate in 1769, the first Europeans known with certainty to have seen it were a party of soldiers sent by Portolá in 1772. The American explorer John Charles Frémont gave the strait the name Golden Gate in 1846. (from: Encarta Online)

The image is reduced size. Golden Gate, strait in western California, at the entrance to San Francisco Bay, separating the bay from the Pacific Ocean. The strait is 8 km (5 mi) long and narrows to 1 km (0.6 mi) in width. The famous Golden Gate Bridge crosses the strait to connect San Francisco, on the south, with Marin County, on the north. Although the English explorer Sir Francis Drake visited the region of San Francisco Bay in 1579 and a scout for the Spanish colonial governor Gaspar de Portolá may have explored as far as the Golden Gate in 1769, the first Europeans known with certainty to have seen it were a party of soldiers sent by Portolá in 1772. The American explorer John Charles Frémont gave the strait the name Golden Gate in 1846. (from: Encarta Online)


FolderWikiFeatures FolderCdml