Template:Noframecenter
| {{{1}}} |
| {{{2}}} |
Contents |
[edit] Use Parameters, and Options
[edit] Use
The template is used mainly for center image placement. Whereas an image without a border cannot have a caption, this limitation is overcome by placing the image in a table cell construct which resembles the usual thing. It behaves broadly as if it were simple image syntax.
It is called as follows:
It looks like this. (Text has been added to illustrate the default spacings.): The time has come for all good men to come to the aid of the party. The quick brown fox jumps over the lazy dog 0123456789 times. Of all the fishes in the sea the mermaid is the one for me. Peter Piper picked a pot of pickled pepper. The Leith police inhibiteth us.
| Pink Gerbera : This is the caption |
The time has come for all good men to come to the aid of the party. The quick brown fox jumps over the lazy dog 0123456789 times. Of all the fishes in the sea the mermaid is the one for me. Peter Piper picked a pot of pickled pepper. The Leith police inhibiteth us.
[edit] Parameters
There are two parameters. They are each numbered and named.
- The first parameter contains the wiki image syntax line. The code is equated to unity, (i.e. 1=), or to the name, (i.e. content=). Alternatively, provided that the parameters are written in the natural sequence, ( 1 before 2), their named and numbered left hand sides can be omitted.
- The second parameter contains the text for the image caption. Similarly, it can make use of the numbered format, (2=), or the named format, (caption=), and if the sequence in clear, the left hand side can be omitted.
- Note that the parameter names are in lower case. These (along with image file names) are case sensitive.
- The option values that are listed below must equate to the option names, with the options and parameters all spaced from one another with pipe symbols. An example for use at the right of the page would look like this:
[edit] Options
- align
- position on the page, default center, options left, center, right, none.
- background
- structure background color, default transparent, hex, rgb, named colors ect.
- color
- font color, default black, any color e.g. hex, rgb, or named color.
- ff
- font family, default inherit, any family, or font face name.
- cwidth
- caption width, make this the same as the image width for wrapped captions.
- border
- border perimeter, default none, can look like a frame with border=1px solid #aaaaaa;
- padding
- text padding for the caption only, default 0.2em, em, cm, in, px ect.