Template:Noframe/doc
This is a documentation subpage for Template:Noframe It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit source]The template is used mainly for image placement. The default is for a left alignment. 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:
{{Noframe|[[File:Gerbera pink.jpg|250px]]|Pink Gerbera : ''This is the caption''}}
It looks like this. (Text has been added to illustrate the default spacings.):
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.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.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.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.
Parameters
[edit source]There are two parameters. They are each numbered and named.
- The first parameter contains the wiki image syntax line. This can be specified with
|content=
or simply as a nameless parameter if placed in the first position. - The second parameter contains the text for the image caption. This can be specified with
|caption=
or as a nameless parameter. Use the former if the caption contains an equals (=) sign. - Note that the parameter names are in lower case. These (along with image file names) are case sensitive.
- The optional 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:
{{Noframe|content=[[File:Gerbera pink.jpg|250px]]|caption=Caption|align=right|margin=0 0 0 1em}}
Options
[edit source]- align
- override the default position on the page, left, center, right, none.
- margin
- overall margins; in em, px, etc.
- background
- structure background color, default transparent; hex, rgb, named colors etc.
- 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.
- border
- border color, default none; can look like a frame with border=1px solid #aaaaaa;
- padding
- text padding for the caption only, default 2px 2px 2px 4px; in em, px, etc.
See also
[edit source]Several templates are available that specify the default alignment without a parameter, allowing the specification of only the image and caption:
- {{noframeleft}}
- {{noframecenter}}
- {{noframeright}}
- {{noframenone}}