MediaWiki/skins: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
* {{l/mw|Mustache (template system)}} handles HTML output | * {{l/mw|Mustache (template system)}} handles HTML output | ||
* {{l/mw|Less (stylesheet language)}} handles CSS output | * {{l/mw|Less (stylesheet language)}} handles CSS output | ||
===HTML: Mustache=== | |||
Tentatively, everything starts with the <code>templates/skin.mustache</code> file. This file then invokes other Mustache code to handle various sections as needed. | |||
===CSS: Less=== | |||
==Related== | ==Related== | ||
* {{l/same|skin.json}} | * {{l/same|skin.json}} | ||
| Line 10: | Line 13: | ||
** {{l/mw|Manual:How to make a MediaWiki skin}} | ** {{l/mw|Manual:How to make a MediaWiki skin}} | ||
* [https://skins.wmflabs.org/ Wikimedia Skins Lab]: browse existing skins or build your own, with live rendering | * [https://skins.wmflabs.org/ Wikimedia Skins Lab]: browse existing skins or build your own, with live rendering | ||
** Unfortunately, it doesn't seem possible to choose a starting skin up on which to base your customizations. | |||
==Footnote== | ==Footnote== | ||
<references /> | <references /> | ||
Latest revision as of 13:53, 30 March 2022
About
The MediaWiki skinning system has been significantly revised as of version 1.37.1<ref>I haven't yet determined exactly when these changes took place.</ref>. It now makes extensive use of Mustache and Less:
- Mustache (template system) handles HTML output
- Less (stylesheet language) handles CSS output
HTML: Mustache
Tentatively, everything starts with the templates/skin.mustache file. This file then invokes other Mustache code to handle various sections as needed.
CSS: Less
Related
Links
- Reference:
- Wikimedia Skins Lab: browse existing skins or build your own, with live rendering
- Unfortunately, it doesn't seem possible to choose a starting skin up on which to base your customizations.
Footnote
<references />
