Difference between revisions of "Template:Fake image"
Jump to navigation
Jump to search
imported>MrKIA11 m (Reverted edits by 99.251.213.30 (talk) to last version by RussBot) |
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) |
||
| Line 1: | Line 1: | ||
| − | + | {| class=wikitable align={{#switch:{{{align|right}}} | |
| − | + | | left=left style="margin: 8px 8px 0 0px; {{{style|}}}" | |
| − | + | | center=center style="{{{style|}}}" | |
| − | + | | #default=right style="margin: 8px 0 0 8px; {{{style|}}}"}} | |
| − | + | |<div class="thumbinner" style="width:{{{width|90px}}};"><s>{{{1}}}</s> | |
| − | + | </div> | |
| − | + | {{#if:{{{2|caption}}}|<div class="thumbcaption">{{{2}}} | |
| − | - | + | </div>}} |
| + | |}<noinclude> | ||
| + | |||
| + | 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. | ||
| + | * align=left - or align=center (default: align=right) | ||
| + | The usage format is: | ||
<pre> | <pre> | ||
{{fake image | {{fake image | ||
| Line 16: | Line 22: | ||
</pre> | </pre> | ||
Only the image name is required. This template is useful for delinking images in archives used on commons (where a placeholder is useful). | 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: | ||
| + | {{fake image | ||
| + | | Next Movie poster.jpg | ||
| + | | Image of movie poster (to be released) | ||
| + | | width = 190px | ||
| + | | align = left | ||
| + | }} | ||
| + | <pre> | ||
| + | {{fake image | ||
| + | | image Movie poster.jpg | ||
| + | | Image of movie poster (to be released) | ||
| + | | width = 190px | ||
| + | | align = right | ||
| + | }} | ||
| + | </pre> | ||
| + | ==See also== | ||
| + | * [[Help:Table]] - to customize tables of images | ||
[[Category:Wikipedia formatting and function templates|Fake image]] | [[Category:Wikipedia formatting and function templates|Fake image]] | ||
[[Category:Placeholder templates|Fake image]] | [[Category:Placeholder templates|Fake image]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:23, 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