Template:Navimg

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(change to height and width parameters)
(tweaking formatting options)
Line 15: Line 15:
==Examples==
==Examples==
<nowiki>{{Navimg
<nowiki>{{Navimg
-
|width = 50
+
|width = 50px
-
|height= 50
+
|height= 50px
|image = FleurDeLis.png
|image = FleurDeLis.png
|link = Boy Scouting
|link = Boy Scouting
Line 22: Line 22:
{{Navimg
{{Navimg
-
|width = 50
+
|width = 50px
-
|height= 50
+
|height= 50px
 +
|image = FleurDeLis.png
 +
|link = Boy Scouting
 +
}} ''Notice when you move your mouse (hover) over the BSA logo, the link is to [[Boy Scouting]] not [[:Image:FleurDeLis.png]].''
 +
 
 +
<nowiki>{{Navimg
 +
|width = 75px
 +
|height= 75px
 +
|image = FleurDeLis.png
 +
|link = Boy Scouting
 +
}}</nowiki>
 +
 
 +
{{Navimg
 +
|width = 75px
 +
|height= 75px
|image = FleurDeLis.png
|image = FleurDeLis.png
|link = Boy Scouting
|link = Boy Scouting
}}
}}
 +
<nowiki>{{Navimg
<nowiki>{{Navimg
|width =
|width =
|height=
|height=
-
|image =
+
|image = FleurDeLis.png
|link =
|link =
}}</nowiki>
}}</nowiki>
Line 38: Line 53:
|width =
|width =
|height=
|height=
-
|image =
+
|image = FleurDeLis.png
 +
|link =
 +
}}
 +
 
 +
 
 +
<nowiki>{{Navimg
 +
|width =
 +
|height=
 +
|image = FleurDeLis.png
 +
|link =
 +
}}</nowiki>
 +
 
 +
{{Navimg
 +
|width =
 +
|height=
 +
|image = FleurDeLis.png
|link =
|link =
}}
}}
</noinclude>
</noinclude>

Revision as of 13:14, 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 =         <!-- optional: leaving it blank will set auto-width -->
 |height=         <!-- optional: leaving it blank will set auto-height -->
 |image =         <!-- required: image name such as: FleurDeLis.png -->
 |link  =
 }}

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