Template:Announcement: Difference between revisions

From paperclip
Jump to navigation Jump to search
Maitken (talk | contribs)
No edit summary
Maitken (talk | contribs)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="text-align: center; border: medium solid #FF0000; float: right; width: 18em; background-color: #FFCCCC;">
<div style="text-align: center; border: medium solid #FF0000; float: {{{float|right}}}; width: {{{width|18em}}}; background-color: #FFCCCC;">
'''ANNOUNCEMENT''' <br />
'''ANNOUNCEMENT''' <br />
{{{message}}}
{{{message}}}
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 one field
The Template contains several fields
* The first field is where you place your message. <!--<nowiki><br /></nowiki>  if the name is someone who has a profile you should link to them by placing two square brackets at each end of there name, Example: <nowiki>[[John Smith]]</nowiki>-->
* 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 21: Line 23:
  <nowiki>
  <nowiki>
  {{Template:Announcement
  {{Template:Announcement
  |message=
  |message=Simple Message
  }}</nowiki>
  }}</nowiki>
 
{{Template:Announcement
Remember you can use <nowiki>[[ and ]]</nowiki> brackets to link to a page.
|message=Simple Message
}}
Remember you can use <nowiki>[[ and ]]</nowiki> brackets to link to a page or force a new line by using <nowiki><br></nowiki>.


==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 very very long and it wont all fit onto one line then it goes onto a second line.
  <nowiki>
|width=50em
{{Template:Announcement
|float=none}}</center>
  |message=This is just a test. You can see if the text is too long it goes onto a second line.
  <nowiki><center>{{Template:Announcement
  }}</nowiki></div>
  |message=This is just a test. You can see if the text is very very long and it wont all fit onto one line then it goes onto a second line.
|width=50em
|float=none
  }}</center></nowiki>
</div>
</noinclude>

Latest revision as of 19:14, 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=Simple Message
 }}

ANNOUNCEMENT
Simple 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 very very long and it wont all fit onto one line then it goes onto a second line.

<center>{{Template:Announcement
 |message=This is just a test. You can see if the text is very very long and it wont all fit onto one line then it goes onto a second line.
 |width=50em
 |float=none
 }}</center>