Template:Announcement/Infront: Difference between revisions

From paperclip
Jump to navigation Jump to search
Maitken (talk | contribs)
New page: <includeonly> <div align="center" valign="center" style="text-align: center; border: medium solid #FF0000; width: {{{width|18em}}}; background-color: #FFCCCC; z-index: 2"> '''ANNOUNCEMENT'...
 
Maitken (talk | contribs)
Removing all content from page
 
Line 1: Line 1:
<includeonly>
<div align="center" valign="center" style="text-align: center; border: medium solid #FF0000; width: {{{width|18em}}}; background-color: #FFCCCC; z-index: 2">
'''ANNOUNCEMENT''' <br />
{{{message}}}
</div>
</includeonly>
<noinclude>
<div style="    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa;
    background-color: #ecfcf4;
    padding: 5px;">
==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.
<nowiki>
{{Template:Announcement/Infront
|message=Simple Message
}}</nowiki>
{{Template:Announcement/Infront
|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==
<center>{{Template:Announcement/Infront
|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><center>{{Template:Announcement/Infront
|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 17:00, 15 February 2009