BUY A SHIRT!
The ED TShirt Shop is open for business! Use discount code ED2009 for 10% off! Click here to shop.
ED5 Pollfest is going on now! Register a forums accounts and help us find the best article in the five year history of Encyclopedia Dramatica. Check out the three polls running today: [1] [2] [3]



Template:Navimage

From Encyclopedia Dramatica

Jump to: navigation, search

NOTE: This template is an adaptation of this template.

This template lets you use an image as a link to an article. Normally, clicking on an image will take you to its own Image: page.

Usage

If you know that you tend to be stupid, pay attention to the bits in boldface.

{{Navimage|1|2|3|4|5}}
  1. The image you want to use. Bigmudkips.gif, for example. Do not include [[Image: or ]]
  2. The page you want the image to link to. Preview this as a normal link to make sure you've got it right.
  3. Image width. This is a number followed by px. Do not forget the px.
  4. Height. You'll have to do some math if you want to shrink a long image and have it display correctly. Must also end with px.
  5. Float. Specify left or right. If you want a centered image, then leave this variable undeclared and use the <center></center> tags.


Done correctly, you should be able to produce things like:

Code for above example:

<center>{{Navimage|Ditisbemmell.jpg|Bemmel|150px|200px}}</center>

Explanation

This template operate on CSS z-indexing, line-height trickeration, and non-breaking spaces. Unless it really operates on black magic and the original author just put all that CSS shit in to confuse me.

See Also

Link to this