Template:Navimg

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(Undo revision 19828 by Scouterdennis (Talk))
(correct statements on requried fields)
Line 7: Line 7:
==Format==
==Format==
<nowiki>{{Navimg
<nowiki>{{Navimg
-
|width =
+
|width = <!-- required: such as "100px" -->
-
|height=
+
|height= <!-- required: such as "100px" -->
-
|image = <!-- required: image name such as: FleurDeLis.png -->
+
|image = <!-- required: such as: FleurDeLis.png -->
-
|link =
+
|link = <!-- required: such as: Boy Scouting - name of the WIki page without [[brackets]]] -->
}}</nowiki>
}}</nowiki>

Revision as of 16:09, October 24, 2008

[[:| ]]
[[Image:||image page]]

Use

The automatic link created by Wikipedia when you insert an image is to that image's page. But many if not most users want to go to the article, not download the image and end up in a dead end.

Navimg allows you to use an image as a link to an article. Click the image and you go to that article not the image pages.

Format

{{Navimg
 |width =         <!-- required: such as "100px" -->
 |height=         <!-- required: such as "100px" -->
 |image =         <!-- required: such as: FleurDeLis.png -->
 |link  =         <!-- required: such as: Boy Scouting - name of the WIki page without [[brackets]]] -->
 }}

Examples

{{Navimg
 |width = 50px
 |height= 50px
 |image = FleurDeLis.png
 |link  = Boy Scouting
 }}
image page
Notice when you move your mouse (hover) over the BSA logo, the link is to Boy Scouting not Image:FleurDeLis.png.
{{Navimg
 |width = 75px
 |height= 75px
 |image = FleurDeLis.png
 |link  = Boy Scouting
 }}
image page


{{Navimg
 |width = 
 |height= 
 |image = FleurDeLis.png
 |link  =
 }}
[[:| ]]
image page


{{Navimg
 |width = 
 |height= 
 |image = FleurDeLis.png
 |link  =
 }}
[[:| ]]
image page


Personal tools
language