Template:ArticleMessageBoxNavimg/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(Examples: fix an example)
Current revision (10:22, August 2, 2012) (edit) (undo)
m (Cor template cats)
 
(2 intermediate revisions not shown.)
Line 1: Line 1:
-
==Use==
+
__NOTOC__
 +
__NOEDITSECTION__
 +
<!-- PLEASE ADD TEMPLATE & DOCUMENTATION CATEGORIES AT THE BOTTOM OF THIS PAGE. -->
 +
<!-- YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT. -->
 +
==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.
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==
+
==Variables==
-
 
+
<nowiki>{{ArticleMessageBoxNavimg
<nowiki>{{ArticleMessageBoxNavimg
|boxwidth = <!-- Default is: 80% -->
|boxwidth = <!-- Default is: 80% -->
Line 17: Line 20:
==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 41:
{{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 53:
|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>
}}
}}
 +
 +
<!-- ADD TEMPLATE CATEGORIES BELOW THIS LINE, THANKS. -->
 +
<includeonly>[[Category:Admin templates|{{PAGENAME}}]][[Category:Article message box templates|{{PAGENAME}}]][[Category:Navigational templates|{{PAGENAME}}]]</includeonly>
 +
 +
<!-- ADD DOCUMENTAION CATEGORIES BELOW THIS LINE, THANKS. -->
 +
<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