Template:ArticleMessageBoxNavimg/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(Examples: fix an example)
m (Clean-up; minor edits.)
Line 17: Line 17:
==Examples==
==Examples==
-
If you use no variablessuch as this:
+
===Example 1===
 +
If you use no variables (other than "text", of course), such as:
<nowiki>{{ArticleMessageBoxNavimg|text=Your text goes here.}}</nowiki>
<nowiki>{{ArticleMessageBoxNavimg|text=Your text goes here.}}</nowiki>
Line 37: Line 38:
{{ArticleMessageBoxNavimg|text=Your text goes here.}}
{{ArticleMessageBoxNavimg|text=Your text goes here.}}
-
Notice that when you move your mouse over the graphic, the link is to the Main Page not to the graphic as Wiki normally does.
+
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===
<nowiki>{{ArticleMessageBoxNavimg
<nowiki>{{ArticleMessageBoxNavimg
|image = iphone.png
|image = iphone.png
|imagelink = M.Main_Page
|imagelink = M.Main_Page
-
|text = <div align="center">'''''<span class="plainlinks">◄— Check out the new''''' '''<span class="plainlinks">[{{fullurl:m.Main Page|useskin=myskin}} Mobile/PDA 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/Milominderbinder2|please report any issues]].</small></div>
+
|text = <div align="center">'''''<span class="plainlinks"><big>&larr;</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>
}}</nowiki>
}}</nowiki>
Line 48: Line 50:
|image = iphone.png
|image = iphone.png
|imagelink = M.Main_Page
|imagelink = M.Main_Page
-
|text = <div align="center">'''''<span class="plainlinks">◄— Check out the new''''' '''<span class="plainlinks">[{{fullurl:m.Main Page|useskin=myskin}} Mobile/PDA 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/Milominderbinder2|please report any issues]].</small></div>
+
|text = <div align="center">'''''<span class="plainlinks"><big>&larr;</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>
}}
}}

Revision as of 08:13, August 2, 2012

Contents

Use

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.

Format

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