Difference between revisions of "Template:Fake image"
Jump to navigation
Jump to search
imported>Wikid77 (rewrote (from April 2007 version) to look like a real image-box, with 8px margins; added full documentation text as typical for templates) |
imported>Wikid77 (removed blank space causing dotted quote-box; set example align=right) |
||
| Line 3: | Line 3: | ||
| center=center style="{{{style|}}}" | | center=center style="{{{style|}}}" | ||
| #default=right style="margin: 8px 0 0 8px; {{{style|}}}"}} | | #default=right style="margin: 8px 0 0 8px; {{{style|}}}"}} | ||
| − | |<div class="thumbinner" style="width:{{{width| | + | |<div class="thumbinner" style="width:{{{width|120px}}};"><s>{{{1}}}</s></div> |
| − | </div> | ||
{{#if:{{{2|caption}}}|<div class="thumbcaption">{{{2}}} | {{#if:{{{2|caption}}}|<div class="thumbcaption">{{{2}}} | ||
</div>}} | </div>}} | ||
| Line 10: | Line 9: | ||
The '''Template:Fake image''' displays a box which looks like an empty image containing the strike-through name, parameter {{{1}}}, of an image file (which formerly existed or might exist later). The box can show a caption, as parameter {{{2}}}, under the empty image. The top and inner margins each default to 8px (similar to actual images), but can be reset by style=xxxx.<br>Parameters: | The '''Template:Fake image''' displays a box which looks like an empty image containing the strike-through name, parameter {{{1}}}, of an image file (which formerly existed or might exist later). The box can show a caption, as parameter {{{2}}}, under the empty image. The top and inner margins each default to 8px (similar to actual images), but can be reset by style=xxxx.<br>Parameters: | ||
| − | * style=margin: 1px 2px 3px 4px - set margins for top/right/bottom/left. | + | :* style=margin: 1px 2px 3px 4px - set margins for top/right/bottom/left. |
| − | * align=left - or align=center (default: align=right) | + | :* align=left - or align=center (default: align=right) |
The usage format is: | The usage format is: | ||
<pre> | <pre> | ||
| Line 29: | Line 28: | ||
| Image of movie poster (to be released) | | Image of movie poster (to be released) | ||
| width = 190px | | width = 190px | ||
| − | | align = | + | | align = right |
}} | }} | ||
<pre> | <pre> | ||
Revision as of 19:27, 7 December 2010
{{{2}}}
|
The Template:Fake image displays a box which looks like an empty image containing the strike-through name, parameter {{{1}}}, of an image file (which formerly existed or might exist later). The box can show a caption, as parameter {{{2}}}, under the empty image. The top and inner margins each default to 8px (similar to actual images), but can be reset by style=xxxx.
Parameters:
- style=margin: 1px 2px 3px 4px - set margins for top/right/bottom/left.
- align=left - or align=center (default: align=right)
The usage format is:
{{fake image
| image name.ext
| caption
| width = 122px
| align = left / center / right
}}
Only the image name is required. This template is useful for delinking images in archives used on commons (where a placeholder is useful).
Examples
The following are examples of usage:
Image of movie poster (to be released)
|
{{fake image
| image Movie poster.jpg
| Image of movie poster (to be released)
| width = 190px
| align = right
}}
See also
- Help:Table - to customize tables of images