Difference between revisions of "Template:RandomEventOld"

From NeoDex
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><table align="center" width="400" height="16">
<includeonly><span style="width: 804px; height: 150px; background: no-repeat; position: relative;">{{{img}}}
<tr>
<span style="width: 250px; height: 150px; background-repeat: no-repeat; position: absolute; top: -65px; left: 0px;">{{REbg}}</span>
{{#switch: {{{type}}}| winter = <td bgcolor="#ccccff" width="400" height="16" align="center" colspan="2" cellpadding="3"><font face="verdana">'''Winter Random Event!!!'''</font>| tyrannian = <td bgcolor="#be793f" width="400" height="16" align="center" colspan="2" cellpadding="3"><font face="verdana">'''Tyrannian Random Event!!!'''</font>| custom = <td bgcolor="{{{color}}}" width="400" height="16" align="center" colspan="2" cellpadding="3"><font face="verdana">'''{{{title}}}'''</font>| normal = <td bgcolor="#FFFFCC" width="400" height="16" align="center" colspan="2" cellpadding="3"><font face="verdana">'''Something has happened!'''</font>| #default = <td bgcolor="#FFFFCC" width="400" height="16" align="center" colspan="2" cellpadding="3"><font face="verdana">'''Something has happened!'''</font>}}</td></tr></table>
<span style="width: 540px; height: 140px; overflow: hidden; display: table-cell; vertical-align: middle; padding-left: 250px; position: absolute; top: -35px;"><span style="padding-top: 35px; display: inline-block;{{text}}</span></span><span style="width: 804px; height: 150px; background: no-repeat; position: relative; position: absolute; top: -65px; left: 0px;">http://images.neopets.com/shh/txt/shh.png</span>
<table align="center" width="400"><tr>
</span></includeonly><noinclude>
{{#switch: {{{imagetype}}}| double = <td width="85"><div style="border: 1px solid #000;">{{{img}}}</div><td width="85"><div style="border: 1px solid #000;">{{{img2}}}</div></td>
<td width="230"> <font face="verdana">{{{text}}}</font></td>| avatar = <td width="50">{{{img}}}</td>
<td width="350"> <font face="verdana">{{{text}}}</font></td>| normal = <td width="80"><div style="border: 1px solid #000;">{{{img}}}</div><td width="3"></td><td width="*"><font face="verdana">{{{text}}}</font><br></td>| #default = <td width="80"><div style="border: 1px solid #000;">{{{img}}}</div><td width="3"></td><td width="*"><font face="verdana">{{{text}}}</font><br></td>}}{{ #if: {{{stack|}}} | <tr>
<td width="80"><div style="border: 1px solid #000;">{{{img2}}}</div><td width="3"></td><td width="*"><font face="verdana">{{{text2}}}</font><br></td> }}
</tr></table></includeonly><noinclude>


== Purpose ==
== Purpose ==


To display easily [[Random Event]]s.
To display easily display "new" [[Random Event]] types.


== Use ==
Use varies on the Random Event type:
=== Standard ===
<code><nowiki>{{RandomEvent</nowiki>|'''img'''=|'''text'''=}}</code>
*'''img''':
**The Random Event's associated image is placed here. This image should <u>always</u> be 80x80, no more and no less. Image can be on wiki, and displayed as '''<nowiki>[[File:Example_Image.png]]</nowiki>''', or linked to from Neopets.com by simply placing a URL such as "<nowiki>http://images.neopets.com/events/easter_bunny.gif</nowiki>" (No quotes).
*'''text''':
**The text for the random events goes here, such as:<br>The Easter Cybunny gives you an Easter Negg!! Cool!
**You'll need to use HTML terms like <nowiki><b></b> for bolding, <i></i> for italics, <u></u> for underlining, and <slash></slash> for slashing through text</nowiki>.
{{RandomEvent|img=http://images.neopets.com/events/slothAvatar.gif|text=Dr. Sloth has deemed you worthy of using his image on the NeoBoards!}}
=== Winter ===
<code><nowiki>{{RandomEvent</nowiki>|'''type'''=|'''img'''=|'''text'''=}}</code>
*'''type''':
**This defines the type of event. If left empty, or if this section is absent, then the event will display as a normal event. In this case, you put '''winter''' in this section.
*'''img''':
**The Random Event's associated image is placed here. This image should <u>always</u> be 80x80, no more and no less. Image can be on wiki, and displayed as '''<nowiki>[[File:Example_Image.png]]</nowiki>''', or linked to from Neopets.com by simply placing a URL such as "<nowiki>http://images.neopets.com/events/easter_bunny.gif</nowiki>" (No quotes).
*'''text''':
**The text for the random events goes here, such as:<br>The Easter Cybunny gives you an Easter Negg!! Cool!
**You'll need to use HTML terms like <nowiki><b></b> for bolding, <i></i> for italics, <u></u> for underlining, and <slash></slash> for slashing through text</nowiki>.
{{RandomEvent|type=winter|img=http://images.neopets.com/events/snow_faerie.gif|text=The Snow Faerie says <b>'I wonder whats at the top of the mountain...'</b>}}
=== Tyrannian ===
<code><nowiki>{{RandomEvent</nowiki>|'''type'''=|'''img'''=|'''text'''=}}</code>
*'''type''':
**This defines the type of event. If left empty, or if this section is absent, then the event will display as a normal event. In this case, you put '''tyrannian''' in this section.
*'''img''':
**The Random Event's associated image is placed here. This image should <u>always</u> be 80x80, no more and no less. Image can be on wiki, and displayed as '''<nowiki>[[File:Example_Image.png]]</nowiki>''', or linked to from Neopets.com by simply placing a URL such as "<nowiki>http://images.neopets.com/events/easter_bunny.gif</nowiki>" (No quotes).
*'''text''':
**The text for the random events goes here, such as:<br>The Easter Cybunny gives you an Easter Negg!! Cool!
**You'll need to use HTML terms like <nowiki><b></b> for bolding, <i></i> for italics, <u></u> for underlining, and <slash></slash> for slashing through text</nowiki>.
=== Custom ===
<code><nowiki>{{RandomEvent</nowiki>|'''type'''=|'''color'''=|'''title'''=|'''img'''=|'''text'''=}}</code>
*'''type''':
**This defines the type of event. If left empty, or if this section is absent, then the event will display as a normal event. In this case, you put '''custom''' in this section.
*'''color''':
**The background color of the "Something has happened!" bar. Should be written in '''hexidecimal''' like: '''#00ffcc'''
*'''title''':
**The title for the "Something had happened!" bar. You can make it say anything you wish, as long as it fits.
*'''img''':
**The Random Event's associated image is placed here. This image should <u>always</u> be 80x80, no more and no less. Image can be on wiki, and displayed as '''<nowiki>[[File:Example_Image.png]]</nowiki>''', or linked to from Neopets.com by simply placing a URL such as "<nowiki>http://images.neopets.com/events/easter_bunny.gif</nowiki>" (No quotes).
*'''text''':
**The text for the random events goes here, such as:<br>The Easter Cybunny gives you an Easter Negg!! Cool!
**You'll need to use HTML terms like <nowiki><b></b> for bolding, <i></i> for italics, <u></u> for underlining, and <slash></slash> for slashing through text</nowiki>.
{{RandomEvent|type=custom|color=#88D397|title=Something else happened!|img=http://images.neopets.com/games/aaa/dailydare/2010/prize/nc-prize-bag.gif|text=Blah Blah Blah}}
=== Image Types ===
The following settings effect the style in which the '''image''' of the random event is displayed, can be used alongside the above types.
==== Stacked ====
Allows two Random Event entries to appear in a Doubler-decker stye, with one right on top of the other. This presently pertains to special events used by the old version of the [[Premium Service]].
<code><nowiki>{{RandomEvent</nowiki>|'''imagetype'''=stack|'''img'''=|'''text'''=|'''img2'''=|'''text2'''=}}</code>
*'''imagetype''':
**Allows you to define the way in which the image(s) are presented. In this case, you fill this section with '''stack'''.
*'''img''':
**The Random Event's first image is placed here. This image should <u>always</u> be 80x80, no more and no less. Image can be on wiki, and displayed as '''<nowiki>[[File:Example_Image.png]]</nowiki>''', or linked to from Neopets.com by simply placing a URL such as "<nowiki>http://images.neopets.com/events/easter_bunny.gif</nowiki>" (No quotes).
*'''text''':
**The text for the random event's first section goes here, such as:<br>The Easter Cybunny gives you an Easter Negg!! Cool!
**You'll need to use HTML terms like <nowiki><b></b> for bolding, <i></i> for italics, <u></u> for underlining, and <slash></slash> for slashing through text</nowiki>.
*'''img2''':
**The image for the Random Event's second entry, same terms as Image1.
*'''text2''':
**The image for the Random Event's second entry, same terms as Text2.
{{RandomEventStack|1=http://images.neopets.com/events/lotteryman.gif|2=You hit the lottery!!! You won <b>500 NPs</b>.|3=http://images.neopets.com/items/food_aisha_cocoa.gif|4=You also won a <b>Aisha Hot Chocolate</b>.}}
==== Double-image ====
For displaying two images in one random event:
<code><nowiki>{{RandomEvent</nowiki>|'''imagetype'''=double|'''img'''=|'''img2'''=|'''text'''=}}</code>
*'''imagetype''':
**Allows you to define the way in which the image(s) are presented. In this case, you fill this section with '''double'''.
*'''img''':
**The Random Event's first image is placed here. This image should <u>always</u> be 80x80, no more and no less. Image can be on wiki, and displayed as '''<nowiki>[[File:Example_Image.png]]</nowiki>''', or linked to from Neopets.com by simply placing a URL such as "<nowiki>http://images.neopets.com/events/easter_bunny.gif</nowiki>" (No quotes).
*'''text''':
**The text for the random event's first section goes here, such as:<br>The Easter Cybunny gives you an Easter Negg!! Cool!
**You'll need to use HTML terms like <nowiki><b></b> for bolding, <i></i> for italics, <u></u> for underlining, and <slash></slash> for slashing through text</nowiki>.
*'''img2''':
**The second image for Random Event, same terms as Image1.
{{RandomEvent|imagetype=double|img=http://images.neopets.com/items/petpet_frowny.gif|img2=http://images.neopets.com/items/pets_smiley.gif|text=Sadness... Happiness... Plenty of mixed feelings. :( :)}}
==== Avatars ====
For displaying Random events in which you win an avatar:
<code><nowiki>{{RandomEvent</nowiki>|'''imagetype'''=avatar|'''img'''=|'''text'''=}}</code>
*'''imagetype''':
**Allows you to define the way in which the image(s) are presented. In this case, you fill this section with '''double'''.
*'''img''':
**The Random Event's first image is placed here. This image should <u>always</u> be 50x50, no more and no less. Image can be on wiki, and displayed as '''<nowiki>[[File:Example_Image.png]]</nowiki>''', or linked to from Neopets.com by simply placing a URL such as "<nowiki>http://images.neopets.com/neoboards/avatars/superpea.gif</nowiki>" (No quotes).
*'''text''':
**The text for the random event's first section goes here, such as:<br>ou are now eligible to use '<b>Super Attack Pea</b>' as an avatar on the '''[[NeoBoards]]'''!
**You'll need to use HTML terms like <nowiki><b></b> for bolding, <i></i> for italics, <u></u> for underlining, and <slash></slash> for slashing through text</nowiki>.
{{RandomEvent|imagetype=avatar|img=http://images.neopets.com/neoboards/avatars/rods_champion.gif|text=You are now eligible to use '<b>TCG - Return of Dr. Sloth Champion</b>' as an avatar on the '''[[NeoBoards]]'''!}}


<center>---</center>
<center>---</center>

Revision as of 16:34, 20 March 2014


Purpose

To display easily display "new" Random Event types.


---
>Pages that use this template<