Template:Navimg

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(tweaking formatting options)
(auto-size produces no image)
Line 6: Line 6:
==Format==
==Format==
-
<nowiki>{{Navimg
+
<nowiki>{{Navimg
-
|width = <!-- optional: leaving it blank will set auto-width -->
+
|width =
-
|height= <!-- optional: leaving it blank will set auto-height -->
+
|height=
|image = <!-- required: image name such as: FleurDeLis.png -->
|image = <!-- required: image name such as: FleurDeLis.png -->
|link =
|link =
-
}}</nowiki>
+
}}</nowiki>
==Examples==
==Examples==
-
<nowiki>{{Navimg
+
<nowiki>{{Navimg
|width = 50px
|width = 50px
|height= 50px
|height= 50px
|image = FleurDeLis.png
|image = FleurDeLis.png
|link = Boy Scouting
|link = Boy Scouting
-
}}</nowiki>
+
}}</nowiki>
{{Navimg
{{Navimg
Line 28: Line 28:
}} ''Notice when you move your mouse (hover) over the BSA logo, the link is to [[Boy Scouting]] not [[:Image:FleurDeLis.png]].''
}} ''Notice when you move your mouse (hover) over the BSA logo, the link is to [[Boy Scouting]] not [[:Image:FleurDeLis.png]].''
-
<nowiki>{{Navimg
+
<nowiki>{{Navimg
|width = 75px
|width = 75px
|height= 75px
|height= 75px
|image = FleurDeLis.png
|image = FleurDeLis.png
|link = Boy Scouting
|link = Boy Scouting
-
}}</nowiki>
+
}}</nowiki>
{{Navimg
{{Navimg
Line 43: Line 43:
-
<nowiki>{{Navimg
+
<nowiki>{{Navimg
|width =
|width =
|height=
|height=
|image = FleurDeLis.png
|image = FleurDeLis.png
|link =
|link =
-
}}</nowiki>
+
}}</nowiki>
{{Navimg
{{Navimg
Line 58: Line 58:
-
<nowiki>{{Navimg
+
<nowiki>{{Navimg
|width =
|width =
|height=
|height=
|image = FleurDeLis.png
|image = FleurDeLis.png
|link =
|link =
-
}}</nowiki>
+
}}</nowiki>
{{Navimg
{{Navimg

Revision as of 14:38, 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 = |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