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