皮肤:示例

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Skin:Example and the translation is 22% complete.
MediaWiki外觀手冊 - 分類
OOjs UI icon layout-ltr.svg
Example
發行狀態: 穩定版
20200907 Screenshot Example-skin.png
描述 An example skin showcasing the best practices, a companion to the MediaWiki skinning guide.
最新版本 Continuous updates (2020-09-07)
MediaWiki 1.35+
許可協議 Creative Commons Zero v1.0 Universal
下載
例子 Example on Skins wiki
翻譯Example佈景主題(如果在translatewiki.net可用)
檢查使用和版本矩陣
問題 : 進行中的工作 · (skin) 回報錯誤

This is the Example skin showcasing as an example the best practices, a companion to 手册:如何制作MediaWiki皮肤 and before 1.36, the MediaWiki skinning guide.

The code is released into public domain, which means you can freely copy it, modify and release as your own skin without providing attribution and with absolutely no restrictions. Remember to change the license information if you do not intend to provide your changes on the same terms.

You can browse the source code at phab:diffusion/SEXA/browse/.

See Manual:Skinning for information on creating skins.

安装

  • 下载文件,并将其放置在您skins/文件夹中的Example目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
wfLoadSkin( 'Example' );
  • Yes 完成 - 在您的wiki上打开Special:Version,以确认皮肤已成功安装。