Difference between revisions of "Template:RandomEventNew"

From NeoDex
Jump to navigation Jump to search
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<span style="width: 804px; height: 150px; background: no-repeat; position: relative;">http://images.neopets.com/shh/bg/32fh849i.jpg
 
{{#switch: {{{theme}}}| avatar = <span style="width: *; height: *; background-repeat: no-repeat; position: absolute; top: 0px; left: 85px;">{{{img}}}</span>| normal = <span style="width: *; height: *; background-repeat: no-repeat; position: absolute; top: -17px; left: 85px;">{{{img}}}</span><span style="width: *; height: *; background-repeat: no-repeat; position: absolute; top: -18px; left: 84px;">[[File:82x82_contain.png|link=]]</span>| #default = <span style="width: *; height: *; background-repeat: no-repeat; position: absolute; top: -17px; left: 85px;">{{{img}}}</span><span style="width: *; height: *; background-repeat: no-repeat; position: absolute; top: -18px; left: 84px;">[[File:82x82_contain.png|link=]]</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>
{{#switch: {{{type}}}| obelisk = <br><br>
<span style="width: 560x; height: *; overflow: hidden; display: table-cell; vertical-align: middle; padding-left: 200px; position: absolute; top: -20px;"><span align="left" style="padding-top: 35px; display: inline-block;"><span style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt;'>{{{text}}}</span></span></span>
<center>
</span>
<span style="position: absolute; left: 0px; top: 80px;">http://images.neopets.com/shh/bg/tyrannia.jpg</span><span style="position: absolute; left: 0px; top: 45px;">[[File:Shh_obelisk.png|link=]]</span><span style="width: 540px; height: 140px; overflow: hidden; display: table-cell; vertical-align: middle; padding-left: 250px; position: absolute; left: 0px; top: 85px;"><span style="padding-top: 35px; display: inline-block">{{{text}}}</span></span><br><br><br><br>
</center>| static = <center>
<span style="position: absolute; left: 0px; top: 60px;">http://images.neopets.com/shh/bg/32fh849i.jpg</span><span style="position: absolute; left: 0px; top: 45px;">http://images.neopets.com/shh/txt/shh.png</span><span style="width: 540px; height: 140px; overflow: hidden; display: table-cell; vertical-align: middle; padding-left: 250px; position: absolute; left: 0px; top: 85px;"><span style="padding-top: 35px; display: inline-block">{{{text}}}</span></span><br><br><br><br>
</center>}}
 
</includeonly><noinclude>
 
== Purpose ==
 
To easily display "new" [[Random Event]] types.
 
== Use ==
 
<code><nowiki>{{RandomEventNew</nowiki>|'''img'''=|'''REbg'''=|'''text'''=}}</code>
 
*'''img'''
*The random event's image URL. If there happens to be none, fill this section with "'''<nowiki>&nbsp;</nowiki>'''" (No quotes, no bolding)
 
*'''REbg'''
**The image URL for the events background, like [http://images.neopets.com/shh/bg/32fh849i.jpg <nowiki>http://images.neopets.com/shh/bg/32fh849i.jpg></nowiki>], for instance.
 
*'''text'''
**The random event's text.
 
== Example ==
 
 
<br><br><br>
 
{{RandomEventNew|type=obelisk|text=1}}
{{RandomEventNew|type=static|text=2}}
 
<center>---</center>
 
{{WhatLinksHere|prefix=Template:|type=template}}
 
[[Category:Templates/Media]]</noinclude>

Latest revision as of 18:10, 31 March 2014

32fh849i.jpg {{{img}}}82x82 contain.pngshh.png {{{text}}}