Extension:DeezerPlaylist

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
DeezerPlaylist
Release status: beta
Implementation Tag
Description Allows to include a Deezerplylist in your Wiki
Author(s) Bernhard Eisele
Latest version 0.1.2 Beta (2008-01-26)
License No license specified
Download [Code]
Translate the DeezerPlaylist extension if it is available at translatewiki.net
Check usage and version matrix.

DeezerPlaylist extension embeds a DeezerPlaylist in a wiki page.

Install[edit]

Copy the files in the zip file to extensions/ , the zipfile you can download [here]

Then, add the following code to LocalSettings.php:

require_once("$IP/extensions/deezerplaylist.php");

Have fun!

Syntax[edit]

Simple[edit]

<deezerplaylist>path</deezerplaylist>

How I find the path ?
Go by deezer to the playlist, who you will include and click by blog

Now you see this code:

<div style="width:180px;height:236px;"><object width="180" height="220"><param name="movie" value="http://www.deezer.com/embedded/widget.swf?path=3480227&lang=en&autoplay=1&id=1153921"></param><embed src="http://www.deezer.com/embedded/widget.swf?path=3480227&lang=en&autoplay=1&id=1153921" type="application/x-shockwave-flash" width="180" height="220"></embed></object><a href="http://www.deezer.com" style="border:none;margin:0;padding:0;"><img src="http://www.deezer.com/embedded/footer.jpg" alt="free music" title="free music" border="0" style="border:none;margin:0;padding:0;" /></a></div>

The part you are looking for is http://www.deezer.com/embedded/widget.swf?path=3480227&lang=en&autoplay=1&id=1153921, so you would then use <deezerplaylist>3671305</deezerplaylist>

Expert[edit]

You can also define some custom parameters for use in this extension, include them in the opening tag, like <deezerplaylist lang="en" autoplay="1">path</deezerplaylist>

  • lang="?"
    • Here can you config the language en (english) und fr (french)
  • autoplay="?"
    • Here can you sett the autostart 0 and off =no 1 and on =yes
  • id="?"
    • Here can you include your ID.
  • color="?"
    • Optionally put one of these five skins to stylize the playlist: grey-white, green-black, red-white, blue-yellow and oranges-grey
  • If you wish to use your own style, use the following:
    • bgcolor="?"
    • buttonscolor="?"
    • text1color="?"
    • text2color="?"

Colour codes are hexidecimal prefixed by "0x", such as 0x525252 or 0x6A752E and you can tip in the colors name, too


What colornames can I tipp in[edit]

Many, more then 100 colors.

maroon
darkred
firebrick
red
salmon
tomato
coral
orangered
chocolate
sandybrown
darkorange
orange
darkgoldenrod
goldenrod
gold
olive
yellow
yellowgreen
greenyellow
chartreuse
lawngreen
green
lime
limegreen
springgreen
mediumspringgreen
turquoise
lightseagreen
mediumturquoise
teal
darkcyan
aqua
cyan
darkturquoise
deepskyblue
dodgerblue
royalblue
navy
darkblue
mediumblue
blue
blueviolet
darkorchid
darkviolet
purple
darkmagenta
fuchsia
magenta
mediumvioletred
deeppink
hotpink
crimson
brown
indianred
lightcoral
snow
mistyrose
darksalmon
lightsalmon
sienna
seashell
saddlebrown
peachpuff
peru
linen
bisque
burlywood
tan
antiquewhite
navajowhite
blanchedalmond
papayawhip
moccasin
wheat
oldlace
floralwhite
cornsilk
khaki
lemonchiffon
palegoldenrod
darkkhaki
beige
lightgoldenrodyellow
lightyellow
ivory
olivedrab
darkolivegreen
darkseagreen
darkgreen
forestgreen
lightgreen
palegreen
honeydew
seagreen
mediumseagreen
mintcream
mediumaquamarine
aquamarine
darkslategray
paleturquoise
lightcyan
azure
cadetblue
powderblue
lightblue
skyblue
lightskyblue
steelblue
aliceblue
slategray
lightslategray
lightsteelblue
cornflowerblue
lavender
ghostwhite
midnightblue
slateblue
darkslateblue
mediumslateblue
mediumpurple
indigo
mediumorchid
plum
violet
thistle
orchid
lavenderblush
palevioletred
pink
lightpink
black
dimgray
gray
darkgray
silver
lightgrey
gainsboro
whitesmoke
white