DeezerWidget permite la incrustación de widgets de Deezer en páginas.
Installation
Usage
Cree una plantilla (por ejemplo, Template:DeezerWidget) y agregue el contenido de esta página en ella. Desde allí, puede usarlo con lo siguiente:
{{DeezerWidget
|id = el ID de la música que se incrustará
|width = el tamaño del ancho (sin -px)
|height = el tamaño de la altura (sin -px)
|autoplay = true / false (determina si la música se reproduce o no automáticamente)
|color = el código hexadecimal para el color de los enlaces del widget, menos el #
|emptyPlayer = true / false (determines whether or not the widget displays)
|layout = light / dark
|playlist = true / false (determina si el widget muestra o no las canciones)
|size = small / medium / big
|type = el tipo de formato de la música que se incrustará
}}
Para obtener más información, puede consultar la documentación oficial de Deezer del widget.
Configuration
Es posible restringir completamente el uso de la opción de reproducción automática. Lo que debe hacer es insertar el siguiente código en su MediaWiki:Common.js:
window.DeezerWidgetDisableAutoplay = true;
Using configuration options with Fandom Developers Wiki scripts
The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.
// 1. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 2. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
Ejemplo
{{DeezerWidget
|id = 30595446
|width = 300
|height = 300
|color = 007FEB
|layout = dark
|size = small
|type = playlist
}}
saldrá ...