Template:ArticleMessageBoxNavimg/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
m (Adding Template Cats and Template Doc Cat)
Current revision (10:22, August 2, 2012) (edit) (undo)
m (Cor template cats)
 
Line 57: Line 57:
<!-- ADD TEMPLATE CATEGORIES BELOW THIS LINE, THANKS. -->
<!-- ADD TEMPLATE CATEGORIES BELOW THIS LINE, THANKS. -->
-
<includeonly>[[Category:Admin templates|{{PAGENAME}}]][[Category:Image templates|{{PAGENAME}}]][[Category:Award templates|{{PAGENAME}}]]</includeonly>
+
<includeonly>[[Category:Admin templates|{{PAGENAME}}]][[Category:Article message box templates|{{PAGENAME}}]][[Category:Navigational templates|{{PAGENAME}}]]</includeonly>
<!-- ADD DOCUMENTAION CATEGORIES BELOW THIS LINE, THANKS. -->
<!-- ADD DOCUMENTAION CATEGORIES BELOW THIS LINE, THANKS. -->
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Current revision


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