- This wiki is out of date, use the continuation of this wiki instead
Template:Image
From FenixWiki
(Difference between revisions)
Revision as of 22:39, 11 September 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Current revision (23:11, 26 December 2007) (edit) (undo) Sandman (Talk | contribs) m |
||
(41 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | {| border="0" cellpadding="0" | ||
- | | [[Image:{{{image}}}]] | ||
- | {{#if:{{{caption|}}} | ||
- | |<tr><td colspan="2" style="text-align: center;">{{{image|}}} | ||
- | <br />{{{caption}}}</td></tr> | ||
- | | | ||
- | }} | ||
- | |} | ||
- | |||
<noinclude> | <noinclude> | ||
+ | == Template == | ||
+ | Image template. | ||
+ | |||
+ | Shows a certain image with a certain caption. | ||
+ | |||
+ | Variables: | ||
<pre> | <pre> | ||
+ | image, | ||
+ | caption, | ||
+ | width, | ||
+ | </pre> | ||
+ | </noinclude>{| border="1" celpadding="0" margin="0" style="border-collapse: collapse; background:#FFFAF0; font-size: 90%;" | ||
+ | | [[Image:{{{image}}}{{#if:{{{width|}}}|{{!}}{{{width}}}}}]] | ||
+ | {{#if:{{{caption|}}}| | ||
+ | :''{{{caption}}}'' | ||
+ | }} | ||
+ | |}<noinclude> | ||
+ | == Example == | ||
+ | {| style="width: 100%" | ||
+ | | <pre> | ||
{{Image | {{Image | ||
- | | | + | | image = New_map.png |
- | | caption = | + | | caption = A newly created map using [[new_map]](). |
+ | | width = 100px | ||
}} | }} | ||
</pre> | </pre> | ||
+ | || | ||
+ | {{Image | ||
+ | | image = New_map.png | ||
+ | | caption = A newly created map using [[new_map]](). | ||
+ | }} | ||
+ | |} | ||
</noinclude> | </noinclude> |
Current revision
[edit] Template
Image template.
Shows a certain image with a certain caption.
Variables:
image, caption, width,
[[Image:{{{image}}}]] |
[edit] Example
{{Image | image = New_map.png | caption = A newly created map using [[new_map]](). | width = 100px }} |
|