Jump to content

Skin:Femiwiki

本頁使用了標題或全文手工轉換
From mediawiki.org
This page is a translated version of the page Skin:Femiwiki and the translation is 32% complete.
MediaWiki皮肤手冊 - 分类
Femiwiki
发行状态: 稳定版
作者 Femiwiki Team
兼容性政策 master分支维持向后兼容。
MediaWiki 1.34+
许可协议 GNU Affero通用公共协议3.0或之後
下载
CHANGELOG
示例 femiwiki.com

Wikimedia Skins Lab TestWiki (miraheze.org)

skins-demo.wmflabs.org
参数
  • $wgFemiwikiFirebaseKey
  • $wgFemiwikiFacebookAppId
  • $wgFemiwikiHeadItems
正在使用的公开wiki数 5 (Ranked 139th)
作为默认皮肤使用的公开wiki数 1
翻譯Femiwiki皮肤如果它在translatewiki.net是可用的話

Femiwiki是針對Femiwiki所開發的響應式外觀。 此外觀提供Firebase的動態連結(用作縮網址),以及若是已有設定的話,可透過社群網路服務分享至FacebookTwitter的功能。

安裝

  • 下载文件,并将其放置在您skins/文件夹中的Femiwiki目录内。
  • 将下列代码放置在您的LocalSettings.php 文件的底部:
    wfLoadSkin( 'Femiwiki' );
    $wgDefaultSkin = 'femiwiki';
    
  • Only when installing from git run npm to install Node dependencies, by issuing npm install in the skin directory.
  • Yes 完成 - 在您的wiki上打开Special:Version,以确认皮肤已成功安装。

Configuration

徽標

FemiwikiSkin loads its logos from $wgLogos . You must define both $wgLogos['svg'] and $wgLogos['wordmark'].

$wgLogos = [
	'svg' => "path/to/svg_version.svg",
	'wordmark' => [
		'src' => "path/to/wordmark_version.svg",
		'width' => 135,
		'height' => 20,
	],
];

Sidebar items have its own icons, defined in Mediawiki:Skin-femiwiki-xeicon-map.json your wiki.

{
    "pt-createaccount": "user-plus",
    "pt-login": "log-in",
    "pt-userpage": "profile",
    "pt-notifications-all": "bell",
    "pt-mytalk": "forum",
    "pt-preferences": "cog",
    "pt-watchlist": "star",
    "pt-mycontris": "list",
    "pt-logout": "log-out",
    "t-contributions": "list",
    "t-log": "document"
}

The keys are the ID of the items and the values are XEIcon names, you see the whole supported icons in: https://xpressengine.github.io/XEIcon/library-2.3.3.html

Others

$wgFemiwikiTwitterAccount
Account ID of Twitter to be added as metadata on all pages.
$wgFemiwikiFirebaseKey
See https://firebase.google.com/docs/dynamic-links/rest
wgFemiwikiFacebookAppId
See https://developers.facebook.com/docs/javascript/reference/FB.init
$wgFemiwikiHeadItems
Additional head items used as parameter for OutputPage::addHeadItems(). See the document.

This skin was originally made for Femiwiki.