Difference between revisions of "Template:Fake image"

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(removed blank space causing dotted quote-box; set example align=right)
imported>Wikid77
(changed margins to 7px to match a real image-box; example "Next Movie")
Line 1: Line 1:
 
{| class=wikitable align={{#switch:{{{align|right}}}
 
{| class=wikitable align={{#switch:{{{align|right}}}
   | left=left style="margin: 8px 8px 0 0px; {{{style|}}}"
+
   | left=left style="margin: 7px 7px 0 0px; {{{style|}}}"
 
   | center=center style="{{{style|}}}"
 
   | center=center style="{{{style|}}}"
   | #default=right style="margin: 8px 0 0 8px; {{{style|}}}"}}
+
   | #default=right style="margin: 7px 0 0 7px; {{{style|}}}"}}
 
|<div class="thumbinner" style="width:{{{width|120px}}};"><s>{{{1}}}</s></div>
 
|<div class="thumbinner" style="width:{{{width|120px}}};"><s>{{{1}}}</s></div>
 
{{#if:{{{2|caption}}}|<div class="thumbcaption">{{{2}}}
 
{{#if:{{{2|caption}}}|<div class="thumbcaption">{{{2}}}
Line 32: Line 32:
 
<pre>
 
<pre>
 
{{fake image
 
{{fake image
  | image Movie poster.jpg
+
  | Next Movie poster.jpg
 
  | Image of movie poster (to be released)
 
  | Image of movie poster (to be released)
 
  | width = 190px
 
  | width = 190px

Revision as of 19:33, 7 December 2010

{{{1}}}
{{{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:

Next Movie poster.jpg
Image of movie poster (to be released)
{{fake image
 | Next Movie poster.jpg
 | Image of movie poster (to be released)
 | width = 190px
 | align = right
}}

See also