Manual:SkinMustache.php/es

La clase SkinMustache permite a los desarrolladores de apariencias la flexibilidad de mostrar los datos subyacentes como deseen. Una plantilla Mustache se asocia con la apariencia que se va a renderizar y recibe los datos de la plantilla tal y como se describe a continuación.

Para más información, consulta Manual:Cómo crear una apariencia para MediaWiki.



Información de plantilla
Todos los datos aquí referenciados pueden explorarse utilizando la apariencia SkinJSON.

La apariencia Mustache asociada a una apariencia recibe los siguientes datos:

Menus (aka portlets/portals)
For backward compatibility there are several types of Menus to be aware of when rendering in SkinMustache. It is hoped in future a standardized menu format will be used for all.

PortletData
Menus (aka portlets/portals) in SkinMustache have a consistent data structure that looks like follows:

DataPortletsObject
The data-portlets object allows access to all the different menus that are available to render. Menus are organized into different buckets. A skin developer can choose to render each of these separately, to modify these buckets via the SkinTemplateNavigation::Universal hook, or omit them. Each menu contains data consistent with data-portlets-sidebar.

DataHtmlObject
When dealing with this type, you are expected to create a container with id and class as attributes and html as its inner HTML. The container may contain other elements if you wish. The primary reason for the existence of this type, is you may want to render certain items as lists (`li` element) or blocks (`div` elements).

DataLogos
Note this data structure can be extended by extensions, and site configuration in LocalSettings.php

LogoObject
Note this data structure can be extended by extensions, and site configuration in LocalSettings.php