Template:Navimg

From MeritBadgeDotOrg

Revision as of 22:09, October 24, 2008 by Milominderbinder2 (Talk | contribs)
Jump to: navigation, search
[[:| ]]
[[Image:||image page]]

Contents

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

Simple 50px x 50px

{{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.

75px x 75px

{{Navimg
 |width = 75px
 |height= 75px
 |image = FleurDeLis.png
 |link  = Boy Scouting
 }}
image page

Veritcal Alignment

Use div align to set the location to left, right or center.

<div align="center">{{Navimg 
 |width = 95px   
 |height= 100px 
 |image = Venturing GrY.png  
 |link = Venturing   
 }}</div> 


Single line example

{{Navimg|width = 52px|height= 52px|image = iphone.png|link  = M.Main_Page}}
image page


As a part of a message box

{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #DDEEEE; border: 1px solid #aaa; border-left: 10px solid #1e90ff;"
 |- 
 | style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | 
 {{Navimg|width = 52px|height= 52px|image = iphone.png|link  = M.Main_Page}}
 | style="padding: 0.25em 0.5em;" | <center>◄— Check out the new 
 <span class="plainlinks">[{{fullurl:m.Main Page|useskin=myskin}} Mobile/PDA interface]</span> link.  
 You can always have the requirements with you! Test it on your phone!</center>
 |}


◄— Check out the new Mobile/PDA interface link. You can always have the requirements with you! Test it on your phone!


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


Personal tools
language
http://meritbadge.org/wiki/index.php?title=Template:Navimg&oldid=19908
meritbadge.org
crawl=CC-MAIN-2015-48
19923
application/http; msgtype=response
sha1:JWIEOPPUYJOQQJY4X2MK5VACQZYH76RC
<urn:uuid:d38b8047-4a15-4bd1-93f4-637bca2a49d5>
2015-11-26T01:30:03Z
104.28.25.35
sha1:BSM2ZQCUPW7U5H6NDWOZB4THULSEHPYY
<urn:uuid:4b931a4b-bce3-48bf-893a-1527cb694637>
http://meritbadge.org/wiki/index.php?title=Template:Navimg&oldid=19908
length
response
<urn:uuid:80817189-5f17-42bc-b8bd-dbdb7379a1e5>
robots: classic
hostname: ip-10-71-132-137.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-48
operator: CommonCrawl Admin
description: Wide crawl of the web for Nov 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf