7,166
edits
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
外部リンク画像ファイルの表示 | 外部リンク画像ファイルの表示 | ||
<syntaxhighlight lang="php"> | |||
$wgAllowExternalImages = true; | |||
</syntaxhighlight> | |||
varnish の設定 | varnish の設定 | ||
<syntaxhighlight lang="php"> | |||
$wgUseSquid = true; | |||
$wgSquidServers = array( 'xxx.xxx.xxx.xxx' , 'xxx.xxx.xxx.xxx' ); | |||
$wgSquidServersNoPurge = array('127.0.0.1'); | |||
</syntaxhighlight> | |||
不要な情報を隠す | 不要な情報を隠す | ||
<syntaxhighlight lang="php"> | |||
$wgDisableCounters = true; | |||
$wgShowIPinHeader = false; | |||
</syntaxhighlight> | |||
*Skin (Vector) の設定 | *Skin (Vector) の設定 | ||
余計なタブやフッターを隠す (MediaWiki:Vector.css の設定) | 余計なタブやフッターを隠す (MediaWiki:Vector.css の設定) | ||
< | <syntaxhighlight lang="css"> | ||
#ca-talk { display: none !important; } | #ca-talk { display: none !important; } | ||
#ca-history { display: none !important; } | #ca-history { display: none !important; } | ||
Line 59: | Line 65: | ||
#footer-places-disclaimer { display: none; } | #footer-places-disclaimer { display: none; } | ||
#footer-poweredbyico { display: none; } | #footer-poweredbyico { display: none; } | ||
</ | </syntaxhighlight> | ||
余計なフッターを隠す (MediaWiki:Privacy | MediaWiki:Privacypage | MediaWiki:Aboutsite | MediaWiki:Aboutpage | MediaWiki:Disclaimers | MediaWiki:Disclaimerpage にハイフン '-' を設定) | 余計なフッターを隠す (MediaWiki:Privacy | MediaWiki:Privacypage | MediaWiki:Aboutsite | MediaWiki:Aboutpage | MediaWiki:Disclaimers | MediaWiki:Disclaimerpage にハイフン '-' を設定) | ||
Line 65: | Line 71: | ||
余計なフッターを隠す (MediaWiki:Common.css の設定) | 余計なフッターを隠す (MediaWiki:Common.css の設定) | ||
< | <syntaxhighlight lang="css"> | ||
#f-poweredbyico { display: none; } | #f-poweredbyico { display: none; } | ||
#footer-icon-poweredby { display: none; } | #footer-icon-poweredby { display: none; } | ||
#footer-icon-poweredbyico { display: none; } | #footer-icon-poweredbyico { display: none; } | ||
#footer-poweredbyico { display: none; } | #footer-poweredbyico { display: none; } | ||
</ | </syntaxhighlight> | ||
ログインユーザにのみツールボックスを見せる (skins/Vector.php の変更) | ログインユーザにのみツールボックスを見せる (skins/Vector.php の変更) | ||
< | <syntaxhighlight lang="diff"> | ||
@@ -267,7 +267,11 @@ | @@ -267,7 +267,11 @@ | ||
$portals['SEARCH'] = true; | $portals['SEARCH'] = true; | ||
Line 87: | Line 93: | ||
if ( !isset( $portals['LANGUAGES'] ) ) { | if ( !isset( $portals['LANGUAGES'] ) ) { | ||
$portals['LANGUAGES'] = true; | $portals['LANGUAGES'] = true; | ||
</ | </syntaxhighlight> | ||
*SyntaxHighlight GeSHi の下位互換性 | *SyntaxHighlight GeSHi の下位互換性 | ||
インデントさせる為に MediaWiki:Geshi.css に設定 | インデントさせる為に MediaWiki:Geshi.css に設定 | ||
< | <syntaxhighlight lang="css"> | ||
div.mw-geshi { | div.mw-geshi { | ||
padding: 1em; | padding: 1em; | ||
Line 98: | Line 104: | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
} | } | ||
</ | </syntaxhighlight> | ||
*HTMLets のメモ | *HTMLets のメモ | ||
今はつかってないので忘れてしまいそう。すべてのページに挿入するには MediaWiki:Sitenotice に仕込む | 今はつかってないので忘れてしまいそう。すべてのページに挿入するには MediaWiki:Sitenotice に仕込む |