Difference between revisions of "Template:Fake image"

From blackwiki
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:
<div class="center">
+
{| class=wikitable align={{#switch:{{{align|right}}}
  <div class="thumb {{#switch:{{{align}}}|left=tleft|center=tnone|tright}}">
+
  | left=left style="margin: 8px 8px 0 0px; {{{style|}}}"
      <div class="thumbinner" style="width:{{{width|122px}}};"><s>{{{1}}}</s>
+
  | center=center style="{{{style|}}}"
        {{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}
+
  | #default=right style="margin: 8px 0 0 8px; {{{style|}}}"}}
      </div>
+
|<div class="thumbinner" style="width:{{{width|90px}}};"><s>{{{1}}}</s>
  </div>
+
</div>
</div><noinclude>
+
{{#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

{{{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
 | image Movie poster.jpg
 | Image of movie poster (to be released)
 | width = 190px
 | align = right
}}

See also