Template:Navimg

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(change to height and width parameters)
Current revision (13:55, August 3, 2012) (edit) (undo)
m (Protected "Template:Navimg": Highly susceptible to abuse/vandalism [edit=sysop:move=sysop])
 
(10 intermediate revisions not shown.)
Line 1: Line 1:
-
<div style="position: relative; width: {{{width|{{{size|}}}}}}; height: {{{height|{{{size|}}}}}}; overflow: hidden;"><div style="position: absolute; top: 0; left: 0; font-size: 200pt; width: {{{width|{{{size|}}}}}}; height: {{{height|{{{size|}}}}}}; overflow: hidden; line-height: {{{height|{{{size|}}}}}}; z-index: 3;">[[:{{{link|}}}|{{{linktext|&nbsp;}}}]]</div><div style="position: absolute; top: 0; left: 0; z-index: 2;">[[Image:{{{image|}}}|{{{width|{{{size|}}}}}}|image page]]</div></div><noinclude>
+
<div style="position: relative; width: {{{width|{{{size|}}}}}}; height: {{{height|{{{size|}}}}}}; overflow: hidden;"><div style="position: absolute; top: 0; left: 0; font-size: 200pt; width: {{{width|{{{size|}}}}}}; height: {{{height|{{{size|}}}}}}; overflow: hidden; line-height: {{{height|{{{size|}}}}}}; z-index: 3;">[[:{{{link|}}}|{{{linktext|&nbsp;}}}]]</div><div style="position: absolute; top: 0; left: 0; z-index: 2;">[[Image:{{{image|}}}|{{{width|{{{size|}}}}}}|image page]]</div></div><noinclude>{{Documentation}}
-
==Use==
+
<!-- ADD TEMPLATE TAGGING CATEGORIES and TEMPLATE DOCUMENTATION CATEGORIES TO THE "/doc" SUB-PAGE -->
-
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==
+
-
<nowiki>{{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 =
+
-
}}</nowiki>
+
-
 
+
-
==Examples==
+
-
<nowiki>{{Navimg
+
-
|width = 50
+
-
|height= 50
+
-
|image = FleurDeLis.png
+
-
|link = Boy Scouting
+
-
}}</nowiki>
+
-
 
+
-
{{Navimg
+
-
|width = 50
+
-
|height= 50
+
-
|image = FleurDeLis.png
+
-
|link = Boy Scouting
+
-
}}
+
-
 
+
-
<nowiki>{{Navimg
+
-
|width =
+
-
|height=
+
-
|image =
+
-
|link =
+
-
}}</nowiki>
+
-
 
+
-
{{Navimg
+
-
|width =
+
-
|height=
+
-
|image =
+
-
|link =
+
-
}}
+
-
 
+
</noinclude>
</noinclude>

Current revision

[[:| ]]
[[Image:||image page]]
Personal tools
language