Template:ArticleMessageBoxNavimg/doc

From MeritBadgeDotOrg

Revision as of 08:22, August 2, 2012 by RWSmith (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


Usage

This is a special message box that allows you to assign an internal link to an image. Click the image and you go to that article not the image pages.

Variables

{{ArticleMessageBoxNavimg
 |boxwidth =     <!-- Default is: 80% -->
 |left-indent =  <!-- Default is: |10% -->
 |background =   <!-- Default is: #DDEEEE -->
 |barcolor =     <!-- Default is: #1e90ff -->
 |imagewidth =   <!-- Default is: 52px -->
 |imageheight =  <!-- Default is: 52px -->
 |image =        <!-- Default is: FleurDeLis.png -->
 |imagelink =    <!-- Default is: Main Page -->
 |text =         <!-- Default is: Sample text -->
 }}

Examples

Example 1

If you use no variables (other than "text", of course), such as:

{{ArticleMessageBoxNavimg|text=Your text goes here.}}

which is the same as:

{{ArticleMessageBoxNavimg
 |boxwidth =    
 |left-indent = 
 |background =  
 |barcolor =    
 |imagewidth =  
 |imageheight = 
 |image =       
 |imagelink =   
 |text = Your text goes here.       
 }}

Displays as:

Your text goes here.

Notice that when you move your mouse over the graphic, the link (above) is to the Main Page, and not to the iamge file, as MediaWiki normally does.

Example 2

{{ArticleMessageBoxNavimg
 |image = iphone.png     
 |imagelink = M.Main_Page 
 |text = <div align="center">'''''<span class="plainlinks"><big>←</big> Check out the new''''' '''<span class="plainlinks">[{{fullurl:m.Main Page|useskin=myskin}} Mobile interface]</span>''' '''''link in the navigation sidebar!</span>'''<br>You can always have the requirements with you wherever you go!<br><small>Help us by testing it on your phone and [[Special:Emailuser/RWSmith|please report any issues]].</small></div>
 }}
Check out the new Mobile interface link in the navigation sidebar!
You can always have the requirements with you wherever you go!
Help us by testing it on your phone and please report any issues.
Personal tools
language