Template:Announcement: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
This is a simple template used to place an announcement on any page. When added to a Wikipedia page, the box will float to the right and any text will wrap around it. | This is a simple template used to place an announcement on any page. When added to a Wikipedia page, the box will float to the right and any text will wrap around it. | ||
The Template contains | The Template contains several fields | ||
* The first field is where you place your message. | * The first field is where you place your message. | ||
* The second field allows you to change the width. The default is 18em. | |||
* The third field allows you to change where the box floats. The default value is right. | |||
==Use== | ==Use== | ||
Line 27: | Line 29: | ||
==Example== | ==Example== | ||
{{Template:Announcement | <center>{{Template:Announcement | ||
|message=This is just a test. You can see if the text is too long it goes onto a second line.}} | |message=This is just a test. You can see if the text is too long it goes onto a second line. | ||
<nowiki>{{Template:Announcement | |width=50em | ||
|float=none}}</center> | |||
<nowiki><center>{{Template:Announcement | |||
|message=This is just a test. You can see if the text is too long it goes onto a second line. | |message=This is just a test. You can see if the text is too long it goes onto a second line. | ||
}}</nowiki> | |width=50em | ||
|float=none | |||
}}</center></nowiki> | |||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 19:12, 2 February 2009
Documentation
This is a simple template used to place an announcement on any page. When added to a Wikipedia page, the box will float to the right and any text will wrap around it.
The Template contains several fields
- The first field is where you place your message.
- The second field allows you to change the width. The default is 18em.
- The third field allows you to change where the box floats. The default value is right.
Use
Copy and paste the following code into the desired place within the paperclip edit page.
{{Template:Announcement |message= }}
Remember you can use [[ and ]] brackets to link to a page or force a new line by using <br>.
Example
ANNOUNCEMENT
This is just a test. You can see if the text is too long it goes onto a second line.
<center>{{Template:Announcement |message=This is just a test. You can see if the text is too long it goes onto a second line. |width=50em |float=none }}</center>