Difference between revisions of "Template:Ambox"

From CWCki
Jump to navigation Jump to search
(Added usage. Changed images in template to ones actually available on sonichu.com. Recategorized as metatemplate.)
m
Line 53: Line 53:
- Displays:{{Ambox|image=blank|text=This '''example''' message box displays the no image}}
- Displays:{{Ambox|image=blank|text=This '''example''' message box displays the no image}}


Finally, you can enter any other image you choose. It is best to use a width of 40px.   
Finally, you can enter any other image you choose. It is best to use a width of 40px.   


'''<pre>{{Ambox|image=[[Image:SonichuOriginal.jpg|40px]]|text=This '''example''' message box features a picture of [[Sonichu]].}}</pre>'''  
'''<pre>{{Ambox|image=[[Image:SonichuOriginal.jpg|40px]]|text=This '''example''' message box features a picture of [[Sonichu]].}}</pre>'''  

Revision as of 12:22, 1 December 2010

Usage

These usage notes will not be included in articles bearing this template.

This metatemplate is used to create article message boxes.

The format for using this template is as follows:]]

The template is set up to use a default image if none is selected.

{{Ambox|text=This example message box displays the default image.}}

- Displays:

Additionally, if one of the keywords in the template is used, the box will display the image set for that keyword.

{{Ambox|image=serious|text=This '''example''' message box displays the "serious" image.}}

- Displays:

{{Ambox|image=style|text=This '''example''' message box displays the "style" image.}}

- Displays:


If the keyword "blank" is used, no picture is displayed.

{{Ambox|image=blank|text=This '''example''' message box displays the no image.}}

- Displays:

Finally, you can enter any other image you choose. It is best to use a width of 40px.

{{Ambox|image=[[Image:SonichuOriginal.jpg|40px]]|text=This '''example''' message box features a picture of [[Sonichu]].}}

- Displays: