미디어위키 확장기능 NewArticleTemplates 설치

미디어위키 확장기능 NewArticleTemplate 설치

1 git으로 설치

[root@zetawiki ~]# cd /var/www/html/w/extensions/
[root@zetawiki extensions]# git clone https://github.com/mathiasertl/NewArticleTemplates.git
Initialized empty Git repository in /var/www/html/w/extensions/NewArticleTemplates/.git/
remote: Counting objects: 35, done.
remote: Total 35 (delta 0), reused 0 (delta 0), pack-reused 35
Unpacking objects: 100% (35/35), done.
[root@zetawiki extensions]# ll NewArticleTemplates/
total 4
-rw-r--r-- 1 root root 2841 Aug 28 18:04 NewArticleTemplate.php

2 LocalSettings.php 수정

require_once "$IP/extensions/NewArticleTemplates/NewArticleTemplate.php";
$wgNewArticleTemplatesEnable = true;
$wgNewArticleTemplatesNamespaces = array( NS_MAIN=>1 );
$wgNewArticleTemplates_PerNamespace = array( NS_MAIN => "MediaWiki:NewArticleTemplate" );

3 같이 보기

4 참고 자료