Difference between revisions of "Template:Image"
From Coastal Wiki
| Line 1: | Line 1: | ||
| + | <noinclude> | ||
| + | This is a template which allows you to easily include images in the wiki in a predetermined following format. | ||
| + | I can be used for both images stored in the wiki as for extenal images | ||
| + | |||
| + | For images inside the wiki use the following format | ||
| + | <pre> | ||
| + | {{Image | ||
| + | |position = right | ||
| + | |width = 250 | ||
| + | |wikiimage = Figure_1.jpg | ||
| + | |captionposition = right | ||
| + | |fontsize = 80 | ||
| + | |caption = Foto: Ignacio Bárbara | ||
| + | }} | ||
| + | </pre> | ||
| + | Parameters: | ||
| + | * "{{Image" calls up the template | ||
| + | * Position: "left" or "right" | ||
| + | * width: insert the width in px | ||
| + | * wikiimage : provide the name of the wikipage storing the image (not the complete url) | ||
| + | * captionposition: left, right or centre | ||
| + | * fontsize: in percentage relative to the normal font-size | ||
| + | * caption: the caption displayed below the image | ||
| + | |||
| + | |||
| + | The code as shown above renders: | ||
| + | {{Image | ||
| + | |position = right | ||
| + | |width = 250 | ||
| + | |wikiimage = Figure_1.jpg | ||
| + | |captionposition = right | ||
| + | |fontsize = 80 | ||
| + | |caption = Foto: Ignacio Bárbara | ||
| + | }} | ||
| + | |||
| + | <br style="clear:both"/> | ||
| + | |||
| + | For images outside the wiki use the following format | ||
| + | <pre> | ||
| + | {{Image | ||
| + | |position = right | ||
| + | |width = 250 | ||
| + | |source= http://www.coastalwiki.org/w/images/1/1e/Figure_1.jpg | ||
| + | |captionposition = right | ||
| + | |fontsize = 80 | ||
| + | |caption = Foto: Ignacio Bárbara | ||
| + | }} | ||
| + | |||
| + | Parameters: | ||
| + | * "{{Image" calls up the template | ||
| + | * Position: "left" or "right" | ||
| + | * width: insert the width in px | ||
| + | * source: provide the url storing the image. | ||
| + | * captionposition: left, right or centre | ||
| + | * fontsize: in percentage relative to the normal font-size | ||
| + | * caption: the caption displayed below the image | ||
| + | |||
| + | This code renders the exact same image as the one above. | ||
| + | |||
| + | </noinclude> | ||
<includeonly> | <includeonly> | ||
Revision as of 09:25, 3 August 2016
This is a template which allows you to easily include images in the wiki in a predetermined following format. I can be used for both images stored in the wiki as for extenal images
For images inside the wiki use the following format
{{Image
|position = right
|width = 250
|wikiimage = Figure_1.jpg
|captionposition = right
|fontsize = 80
|caption = Foto: Ignacio Bárbara
}}
Parameters:
- "{{Image" calls up the template
- Position: "left" or "right"
- width: insert the width in px
- wikiimage : provide the name of the wikipage storing the image (not the complete url)
- captionposition: left, right or centre
- fontsize: in percentage relative to the normal font-size
- caption: the caption displayed below the image
The code as shown above renders:
Foto: Ignacio Bárbara
For images outside the wiki use the following format
Parameters: * "{{Image" calls up the template * Position: "left" or "right" * width: insert the width in px * source: provide the url storing the image. * captionposition: left, right or centre * fontsize: in percentage relative to the normal font-size * caption: the caption displayed below the image This code renders the exact same image as the one above.
Foto: Ignacio Bárbara