Difference between revisions of "Template:Box"

From MegaDrumWiki
Jump to: navigation, search
m
 
Line 2: Line 2:
 
<table summary="" cellpadding="0" cellspacing="0" style="border: 1px dotted #B0B0B0; background: {{{bgcolor|#FFFFFF}}}; width: 70%; margin: 0.5em auto 0.5em auto;">
 
<table summary="" cellpadding="0" cellspacing="0" style="border: 1px dotted #B0B0B0; background: {{{bgcolor|#FFFFFF}}}; width: 70%; margin: 0.5em auto 0.5em auto;">
 
<tr>
 
<tr>
<td style="width: 60px; height: 60px; text-align: center; vertical-align: center; border: 0;">[[Image:{{{icon|Noicon.png}}}|50px]]</td>
+
<td style="width: 60px; height: 60px; text-align: center; vertical-align: center; border: 0;">[[Image:{{{icon|Noicon.png}}}|50px|link=]]</td>
 
<td style="height: 60px; text-align: center; vertical-align: center; border: 0;"><p style="color: {{{color|black}}};">{{{text|Text content}}}</p></td>
 
<td style="height: 60px; text-align: center; vertical-align: center; border: 0;"><p style="color: {{{color|black}}};">{{{text|Text content}}}</p></td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 
</div><noinclude>{{documentation}}</noinclude>
 
</div><noinclude>{{documentation}}</noinclude>

Latest revision as of 20:44, 28 June 2010

Noicon.png

Text content

Documentation

Inserting the box template is a good way to focus the attention of the reader on some important information by displaying an image and some text. Such a message is usually added to the top (bottom) of the page. In some cases it may also be added to the body of the page (i.e. somewhere in the text).

Usage:

{{box|
bgcolor= box_background_color|
color= box_text_content_color|
icon= name_of_uploaded_image|
text= Displayed text
}}

Please use 50x50 px images for icons.

For example, consider the video box template code:

{{box|
bgcolor=#ECEEFD|
color=black|
icon=Camera_icon.png|
text='''''Watch the video:''' [{{{url|http://www.youtube.com/watch?v=1s9sNnWizdc}}} {{{desc|Another MegaDrum Video}}}]''
}}

Which renders:

Camera icon.png

Watch the video: Another MegaDrum Video