사용자:멀뚱이/미디어위키

위키백과 ― 우리 모두의 백과사전.

이 페이지는 미디어위키에 대한 모든 노하우, 의견, 정보를 모아놓은 공간입니다.

공식적인 주소는 멀뚱이의 구글 블로그에 "미디어위키" 태그로 모든 자료를 모을 것입니다.

새 글 쓰기

목차

[편집] 소개

  • 제 피씨에 설치하고 쓰고 있는 위키백과인 리걸 위키피디아(Legal Wikipedia)입니다: [1] [2]
  • 펜티엄 쓰리 450Mhz,윈도우즈 XP 환경에서 미디어위키를 설치해서 로컬 주소로 사용중입니다.

[편집] 설치방법

[편집] 기타

[편집] 미디어위키 설치하기

이 부분의 본문은 사용자:멀뚱이/미디어위키 설치입니다.

[편집] SVG 파일 업로드 가능하게 하기

현재, 미디어위키를 설치하면 SVG 파일 업로드가 안된다.(기본값) 따라서, 프로그램을 하나 설치하고, 설정을 고쳐주어야 한다. 멀뚱이가 2007년 3월 6일 설치에 성공했다. (출처:리갈 위키피디아)

[편집] 해결책

$wgEnableUploads       = true;
$wgUseImageResize      = true;
$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgImageMagickConvertCommand = "C:/Program Files/ImageMagick-6.3.2-Q16/convert";

[편집] 참고

이 부분의 원문은 mw:Manual:Image_thumbnailing#SVG입니다.

이 문서가 SVG 파일 업로드 하게 하는 거라고 하고, 컨버터 가동법이라는데, 해봐도 안된다. 위에서 언급한 것 처럼, 명령어 문장의 위치가 핵심인 거 같은데, 어디에 위치해야 에러가 안나는지 모르겠다.

MediaWiki supports SVG image rendering: if enabled, SVG images can be used like other image files; they will automatically be rendered as a PNG file on demand. To enable SVG support:

미디어 위키는 SVG 이미지 렌더링을 지원한다. 이 기능이 켜지면, SVG 이미지를 다른 이미지들 처럼 동일하게 사용할 수 있다. SVG 이미지는 PNG 파일로 자동으로 실시간 렌더링 될 것이다. 이 기능을 켜려면 다음과 같이 하라:

First, allow uplod of SVG files in the LocalSettings.php file: $wgFileExtensions[] = 'svg'; Note that MediaWiki will refuse SVG files containing JavaScript, for security reasons. To avoid some false positives, set $wgAllowTitlesInSVG = true;. If you get an error saying the file is corrupt, make sure mime type detection is working properly.

첫째, LocalSettings.php 을 다음과 같이 수정, 추가하라:

$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;

Second, set $wgSVGConverter to the renderer you want to use. Available options are ImageMagick, sodipodi, inkscape, batik, and rsvg. The default is ImageMagick, but it is recommended to use one of the other renderers if possible. If the converter program is not in the system path, you have to specify the directory that contains the program using $wgSVGConverterPath.

둘째, $wgSVGConverter를 설정하라. 기본값은 ImageMagick으로 되어 있다. 그러나, 다른 거 가능하면 다른 걸 추천한다. 이미지매직의 패스가 시스템 패스에 설정되어 있지 않다면, $wgSVGConverterPath 에서 그 Path를 설정해줘야 한다.

$wgSVGConverter = 'ImageMagick';
$wgSVGConverterPath = "C:/Program Files/ImageMagick-6.3.2-Q16";

[편집] 추가사항

http://www.mediawiki.org/wiki/Manual:%24wgSVGConverters 여기에 이런 내용이 있다.

윈도우 XP에서는 하나 더 설정해줘야 할 거다. 즉 " "로 기본 실행명령을 묶어줘야 할 거다:

$wgSVGConverters = array(
    'Inkscape' => '"$path/Inkscape/inkscape" -z -w $width -f $input -e $output',
);

원래 기본값으로는 다음과 같이 되어 있다:

array(
  'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
  'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
  'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
  'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
  'rsvg' => '$path/rsvg -w$width -h$height $input $output',
);

무슨말인지 헷갈릴지 모르겠는데, 정리하면, 윈도우 XP 사용자는 LocalSettings.php에 다음을 추가하라는 소리다:

$wgSVGConverters = array(
    'Inkscape' => '"$path/Inkscape/inkscape" -z -w $width -f $input -e $output',
);

멀뚱이 설치한 환경에서 이해하면, 이것은 LocalSettings.php에 다음을 추가하라는 소리다:

$wgSVGConverters = array(
    'ImageMagick' => '"C:/Program Files/ImageMagick-6.3.2-Q16/convert" -background white -geometry $width $input $output',
  );

주의사항: 미디어위키 셋팅에서는 C:\라고 안 쓴다. C:/로 쓴다. 헷갈리면 에러난다.

[편집] 설치 성공

멀뚱이가 그동안, 위에서 설명한 대로 했는데도, 설치가 되지 않았다. 즉 LocalSettings.php 파일만 수정하면, 대문 페이지가 뜨지 않고 멈추었다. 그런데, 드디어 성공했다. 윈도우 XP에 설치했고, Imagemagick을 설치한 사용자라면, 다음을 복사해서 LocalSettings.php 파일에 추가하면 된다. 여기서 중요한 것은 제일 첫줄의 $wgScriptPath = "/mediawiki"; 이 부분에 맞춰서 삽입, 추가해줘야 한다는 점이다.

http://jimyblogger.blogspot.com/2007/03/success-i-upload-svg-files-to-my.html

여기에 성공한 사진이 있다. 아래는 성공한 소스입력 내용이다.

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath       = "/mediawiki";

$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;

$wgSVGConverters = array(
    'ImageMagick' => '"C:/Program Files/ImageMagick-6.3.2-Q16/convert" -background white -geometry $width $input $output',
  );


$wgSVGConverter = 'ImageMagick';

## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;

위의 성공에 기초해서 살펴보면, 리눅스 등에서 미디어위키를 설치한 경우에는 다음과 같이 하면 작동될 것으로 보인다. 안해봐서 모른다. 물론 Imagemagick을 설치한 경우로 가정한다.

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath       = "/mediawiki";

$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;

$wgSVGConverter = 'ImageMagick';

## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;

[편집] 바깥 고리

[편집] 미디어위키에 인터위키 설정하는 방법

이 부분의 원문은 meta:도움말:미디어위키에 인터위키 설정하기입니다.

예제는 멀뚱이가 직접 실행한 것이다.

[편집] mysql 시작하기

mysql -u <mysql 관리자 계정> -p

그리고 나서 암호를 입력한다.

mysql> USE <미디어위키 데이타베이스 이름>

예제:

[jimy@dhcp-323-95323 ~]$ su -
Password:
[root@dhcp-323-95323 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 45 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
mysql> use wdb
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql>

[편집] 인터위키 테이블 보기

여기서 interwiki는 혹시 테이블 prefix를 설정한 경우에는 yourprefix_interwiki를 쓰라는 의미이다.

interwiki<tab><tab> 탭키를 두번 누른다.

mysql> interwiki (엔터키 치지말고 탭키를 연속 두 번 누르기)
interwiki            interwiki.iw_prefix
interwiki.iw_local   interwiki.iw_url
mysql> interwiki 

예제:

Database changed
mysql> mw_interwiki (엔터키 치지말고 탭키를 연속 두 번 누르기)
mw_interwiki            mw_interwiki.iw_prefix  mw_interwiki.iw_url
mw_interwiki.iw_local   mw_interwiki.iw_trans
mysql> mw_interwiki

주된 테이블은 'interwiki'이다.

이제 이 테이블의 내용들을 보자:

SELECT COUNT(*) FROM interwiki;

무엇이 있나 보자:

SELECT * FROM interwiki;

예제:

mysql> SELECT COUNT(*) FROM mw_interwiki;
+----------+
| COUNT(*) |
+----------+
|      179 |
+----------+
1 row in set (0.09 sec)

mysql> SELECT * FROM mw_interwiki;
+---------------------+-----------------------------------------------------------------------------------+----------+----------+
| iw_prefix           | iw_url                           | iw_local | iw_trans |
+---------------------+-----------------------------------------------------------------------------------+----------+----------+
| abbenormal          | http://www.ourpla.net/cgi-bin/pikie.cgi?$1                           |        0 |        0 |
| acadwiki            | http://xarch.tu-graz.ac.at/autocad/wiki/$1                           |        0 |        0 |
| acronym             | http://www.acronymfinder.com/af-query.asp?String=exact&Acronym=$1                 |        0 |        0 |
| advogato            | http://www.advogato.org/$1                           |        0 |        0 |
| aiwiki              | http://www.ifi.unizh.ch/ailab/aiwiki/aiw.cgi?$1                           |        0 |        0 |
| alife               | http://news.alife.org/wiki/index.php?$1                           |        0 |        0 |
| annotation          | http://bayle.stanford.edu/crit/nph-med.cgi/$1                           |        0 |        0 |
| annotationwiki      | http://www.seedwiki.com/page.cfm?wikiid=368&doc=$1                           |        0 |        0 |
| arxiv               | http://www.arxiv.org/abs/$1                           |        0 |        0 |
| aspienetwiki        | http://aspie.mela.de/Wiki/index.php?title=$1                           |        0 |        0 |
| bemi                | http://bemi.free.fr/vikio/index.php?$1                           |        0 |        0 |
| benefitswiki        | http://www.benefitslink.com/cgi-bin/wiki.cgi?$1                           |        0 |        0 |
| brasilwiki          | http://rio.ifi.unizh.ch/brasilienwiki/index.php/$1                           |        0 |        0 |
| bridgeswiki         | http://c2.com/w2/bridges/$1                           |        0 |        0 |
| c2find              | http://c2.com/cgi/wiki?FindPage&value=$1                           |        0 |        0 |
| cache               | http://www.google.com/search?q=cache:$1                           |        0 |        0 |
| ciscavate           | http://ciscavate.org/index.php/$1                           |        0 |        0 |
| cliki               | http://ww.telent.net/cliki/$1                           |        0 |        0 |
| cmwiki              | http://www.ourpla.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| codersbase          | http://www.codersbase.com/$1                           |        0 |        0 |
| commons             | http://commons.wikimedia.org/wiki/$1                           |        0 |        0 |
| consciousness       | http://teadvus.inspiral.org/                           |        0 |        0 |
| corpknowpedia       | http://corpknowpedia.org/wiki/index.php/$1                           |        0 |        0 |
| creationmatters     | http://www.ourpla.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| dejanews            | http://www.deja.com/=dnc/getdoc.xp?AN=$1                           |        0 |        0 |
| demokraatia         | http://wiki.demokraatia.ee/                           |        0 |        0 |
| dictionary          | http://www.dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1            |        0 |        0 |
| disinfopedia        | http://www.disinfopedia.org/wiki.phtml?title=$1                           |        0 |        0 |
| diveintoosx         | http://diveintoosx.org/$1                           |        0 |        0 |
| docbook             | http://docbook.org/wiki/moin.cgi/$1                           |        0 |        0 |
| dolphinwiki         | http://www.object-arts.com/wiki/html/Dolphin/$1                           |        0 |        0 |
| drumcorpswiki       | http://www.drumcorpswiki.com/index.php/$1                           |        0 |        0 |
| dwjwiki             | http://www.suberic.net/cgi-bin/dwj/wiki.cgi?$1                           |        0 |        0 |
| echei               | http://www.ikso.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| ecxei               | http://www.ikso.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| efnetceewiki        | http://purl.net/wiki/c/$1                           |        0 |        0 |
| efnetcppwiki        | http://purl.net/wiki/cpp/$1                           |        0 |        0 |
| efnetpythonwiki     | http://purl.net/wiki/python/$1                           |        0 |        0 |
| efnetxmlwiki        | http://purl.net/wiki/xml/$1                           |        0 |        0 |
| elibre              | http://enciclopedia.us.es/index.php/$1                           |        0 |        0 |
| eljwiki             | http://elj.sourceforge.net/phpwiki/index.php/$1                           |        0 |        0 |
| emacswiki           | http://www.emacswiki.org/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| eokulturcentro      | http://esperanto.toulouse.free.fr/wakka.php?wiki=$1                           |        0 |        0 |
| evowiki             | http://www.evowiki.org/index.php/$1                           |        0 |        0 |
| eĉei               | http://www.ikso.net/cgi-bin/wiki.pl?$1                          |        0 |        0 |
| finalempire         | http://final-empire.sourceforge.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| firstwiki           | http://firstwiki.org/index.php/$1                           |        0 |        0 |
| foldoc              | http://www.foldoc.org/foldoc/foldoc.cgi?$1                           |        0 |        0 |
| foxwiki             | http://fox.wikis.com/wc.dll?Wiki~$1                           |        0 |        0 |
| fr.be               | http://fr.wikinations.be/$1                           |        0 |        0 |
| fr.ca               | http://fr.ca.wikinations.org/$1                           |        0 |        0 |
| fr.fr               | http://fr.fr.wikinations.org/$1                           |        0 |        0 |
| fr.org              | http://fr.wikinations.org/$1                           |        0 |        0 |
| freebsdman          | http://www.FreeBSD.org/cgi/man.cgi?apropos=1&query=$1                           |        0 |        0 |
| gamewiki            | http://gamewiki.org/wiki/index.php/$1                           |        0 |        0 |
| gej                 | http://www.esperanto.de/cgi-bin/aktivikio/wiki.pl?$1                           |        0 |        0 |
| gentoo-wiki         | http://gentoo-wiki.com/$1                           |        0 |        0 |
| globalvoices        | http://cyber.law.harvard.edu/dyn/globalvoices/wiki/$1                           |        0 |        0 |
| gmailwiki           | http://www.gmailwiki.com/index.php/$1                           |        0 |        0 |
| google              | http://www.google.com/search?q=$1                           |        0 |        0 |
| googlegroups        | http://groups.google.com/groups?q=$1                           |        0 |        0 |
| gotamac             | http://www.got-a-mac.org/$1                           |        0 |        0 |
| greencheese         | http://www.greencheese.org/$1                           |        0 |        0 |
| hammondwiki         | http://www.dairiki.org/HammondWiki/index.php3?$1                           |        0 |        0 |
| haribeau            | http://wiki.haribeau.de/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| herzkinderwiki      | http://www.herzkinderinfo.de/Mediawiki/index.php/$1                           |        0 |        0 |
| hewikisource        | http://he.wikisource.org/wiki/$1                           |        1 |        0 |
| hrwiki              | http://www.hrwiki.org/index.php/$1                           |        0 |        0 |
| iawiki              | http://www.IAwiki.net/$1                           |        0 |        0 |
| imdb                | http://us.imdb.com/Title?$1                           |        0 |        0 |
| infosecpedia        | http://www.infosecpedia.org/pedia/index.php/$1                           |        0 |        0 |
| jargonfile          | http://sunir.org/apps/meta.pl?wiki=JargonFile&redirect=$1                         |        0 |        0 |
| jefo                | http://www.esperanto-jeunes.org/vikio/index.php?$1                           |        0 |        0 |
| jiniwiki            | http://www.cdegroot.com/cgi-bin/jini?$1                           |        0 |        0 |
| jspwiki             | http://www.ecyrd.com/JSPWiki/Wiki.jsp?page=$1                           |        0 |        0 |
| kerimwiki           | http://wiki.oxus.net/$1                           |        0 |        0 |
| kmwiki              | http://www.voght.com/cgi-bin/pywiki?$1                           |        0 |        0 |
| knowhow             | http://www2.iro.umontreal.ca/~paquetse/cgi-bin/wiki.cgi?$1                        |        0 |        0 |
| ko                  | http://ko.wikipedia.org/wiki/$1                           |        1 |        0 |
| lanifexwiki         | http://opt.lanifex.com/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| lasvegaswiki        | http://wiki.gmnow.com/index.php/$1                           |        0 |        0 |
| linuxwiki           | http://www.linuxwiki.de/$1                           |        0 |        0 |
| lojban              | http://www.lojban.org/tiki/tiki-index.php?page=$1                           |        0 |        0 |
| lqwiki              | http://wiki.linuxquestions.org/wiki/$1                           |        0 |        0 |
| lugkr               | http://lug-kr.sourceforge.net/cgi-bin/lugwiki.pl?$1                           |        0 |        0 |
| lutherwiki          | http://www.lutheranarchives.com/mw/index.php/$1                           |        0 |        0 |
| m                   | http://meta.wikipedia.org/wiki/$1                           |        1 |        0 |
| mathsongswiki       | http://SeedWiki.com/page.cfm?wikiid=237&doc=$1                           |        0 |        0 |
| mbtest              | http://www.usemod.com/cgi-bin/mbtest.pl?$1                           |        0 |        0 |
| meatball            | http://www.usemod.com/cgi-bin/mb.pl?$1                           |        0 |        0 |
| mediazilla          | http://bugzilla.wikipedia.org/$1                           |        1 |        0 |
| memoryalpha         | http://www.memory-alpha.org/en/index.php/$1                           |        0 |        0 |
| meta                | http://meta.wikipedia.org/wiki/$1                           |        1 |        0 |
| metaweb             | http://www.metaweb.com/wiki/wiki.phtml?title=$1                           |        0 |        0 |
| metawiki            | http://sunir.org/apps/meta.pl?$1                           |        0 |        0 |
| metawikipedia       | http://meta.wikimedia.org/wiki/$1                           |        0 |        0 |
| moinmoin            | http://purl.net/wiki/moin/$1                           |        0 |        0 |
| mozillawiki         | http://wiki.mozilla.org/index.php/$1                           |        0 |        0 |
| muweb               | http://www.dunstable.com/scripts/MuWebWeb?$1                           |        0 |        0 |
| netvillage          | http://www.netbros.com/?$1                           |        0 |        0 |
| oeis                | http://www.research.att.com/cgi-bin/access.cgi/as/njas/sequences/eisA.cgi?Anum=$1 |        0 |        0 |
| openfacts           | http://openfacts.berlios.de/index.phtml?title=$1                           |        0 |        0 |
| openwiki            | http://openwiki.com/?$1                           |        0 |        0 |
| opera7wiki          | http://nontroppo.org/wiki/$1                           |        0 |        0 |
| orgpatterns         | http://www.bell-labs.com/cgi-user/OrgPatterns/OrgPatterns?$1                      |        0 |        0 |
| osi reference model | http://wiki.tigma.ee/                           |        0 |        0 |
| pangalacticorg      | http://www.pangalactic.org/Wiki/$1                           |        0 |        0 |
| patwiki             | http://gauss.ffii.org/$1                           |        0 |        0 |
| personaltelco       | http://www.personaltelco.net/index.cgi/$1                           |        0 |        0 |
| phpwiki             | http://phpwiki.sourceforge.net/phpwiki/index.php?$1                           |        0 |        0 |
| pikie               | http://pikie.darktech.org/cgi/pikie?$1                           |        0 |        0 |
| pmeg                | http://www.bertilow.com/pmeg/$1.php                           |        0 |        0 |
| ppr                 | http://c2.com/cgi/wiki?$1                           |        0 |        0 |
| purlnet             | http://purl.oclc.org/NET/$1                           |        0 |        0 |
| pythoninfo          | http://www.python.org/cgi-bin/moinmoin/$1                           |        0 |        0 |
| pythonwiki          | http://www.pythonwiki.de/$1                           |        0 |        0 |
| pywiki              | http://www.voght.com/cgi-bin/pywiki?$1                           |        0 |        0 |
| raec                | http://www.raec.clacso.edu.ar:8080/raec/Members/raecpedia/$1                      |        0 |        0 |
| revo                | http://purl.org/NET/voko/revo/art/$1.html                           |        0 |        0 |
| rfc                 | http://www.rfc-editor.org/rfc/rfc$1.txt                           |        0 |        0 |
| s23wiki             | http://is-root.de/wiki/index.php/$1                           |        0 |        0 |
| scoutpedia          | http://www.scoutpedia.info/index.php/$1                           |        0 |        0 |
| seapig              | http://www.seapig.org/$1                           |        0 |        0 |
| seattlewiki         | http://seattlewiki.org/wiki/$1                           |        0 |        0 |
| seattlewireless     | http://seattlewireless.net/?$1                           |        0 |        0 |
| seeds               | http://www.IslandSeeds.org/wiki/$1                           |        0 |        0 |
| senseislibrary      | http://senseis.xmp.net/?$1                           |        0 |        0 |
| shakti              | http://cgi.algonet.se/htbin/cgiwrap/pgd/ShaktiWiki/$1                           |        0 |        0 |
| slashdot            | http://slashdot.org/article.pl?sid=$1                           |        0 |        0 |
| smikipedia          | http://www.smikipedia.org/$1                           |        0 |        0 |
| sockwiki            | http://wiki.socklabs.com/$1                           |        0 |        0 |
| sourceforge         | http://sourceforge.net/$1                           |        0 |        0 |
| squeak              | http://minnow.cc.gatech.edu/squeak/$1                           |        0 |        0 |
| strikiwiki          | http://ch.twi.tudelft.nl/~mostert/striki/teststriki.pl?$1                         |        0 |        0 |
| susning             | http://www.susning.nu/$1                           |        0 |        0 |
| svgwiki             | http://www.protocol7.com/svg-wiki/default.asp?$1                           |        0 |        0 |
| tavi                | http://tavi.sourceforge.net/$1                           |        0 |        0 |
| tejo                | http://www.tejo.org/vikio/$1                           |        0 |        0 |
| terrorwiki          | http://www.liberalsagainstterrorism.com/wiki/index.php/$1                         |        0 |        0 |
| theopedia           | http://www.theopedia.com/$1                           |        0 |        0 |
| tmbw                | http://www.tmbw.net/wiki/index.php/$1                           |        0 |        0 |
| tmnet               | http://www.technomanifestos.net/?$1                           |        0 |        0 |
| tmwiki              | http://www.EasyTopicMaps.com/?page=$1                           |        0 |        0 |
| turismo             | http://www.tejo.org/turismo/$1                           |        0 |        0 |
| twiki               | http://twiki.org/cgi-bin/view/$1                           |        0 |        0 |
| twistedwiki         | http://purl.net/wiki/twisted/$1                           |        0 |        0 |
| uea                 | http://www.tejo.org/uea/$1                           |        0 |        0 |
| unreal              | http://wiki.beyondunreal.com/wiki/$1                           |        0 |        0 |
| ursine              | http://ursine.ca/$1                           |        0 |        0 |
| usej                | http://www.tejo.org/usej/$1                           |        0 |        0 |
| usemod              | http://www.usemod.com/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| visualworks         | http://wiki.cs.uiuc.edu/VisualWorks/$1                           |        0 |        0 |
| w                   | http://www.wikipedia.org/wiki/$1                           |        1 |        0 |
| warpedview          | http://www.warpedview.com/index.php/$1                           |        0 |        0 |
| webdevwikinl        | http://www.promo-it.nl/WebDevWiki/index.php?page=$1                           |        0 |        0 |
| webisodes           | http://www.webisodes.org/$1                           |        0 |        0 |
| webseitzwiki        | http://webseitz.fluxent.com/wiki/$1                           |        0 |        0 |
| why                 | http://clublet.com/c/c/why?$1                           |        0 |        0 |
| wiki                | http://c2.com/cgi/wiki?$1                           |        0 |        0 |
| wikia               | http://www.wikia.com/wiki/index.php/$1                           |        0 |        0 |
| wikibooks           | http://en.wikibooks.org/wiki/$1                           |        1 |        0 |
| wikicities          | http://www.wikicities.com/index.php/$1                           |        0 |        0 |
| wikif1              | http://www.wikif1.org/$1                           |        0 |        0 |
| wikimedia           | http://wikimediafoundation.org/wiki/$1                           |        0 |        0 |
| wikinews            | http://en.wikinews.org/wiki/$1                           |        0 |        0 |
| wikinfo             | http://www.wikinfo.org/wiki.php?title=$1                           |        0 |        0 |
| wikiquote           | http://en.wikiquote.org/wiki/$1                           |        1 |        0 |
| wikisource          | http://sources.wikipedia.org/wiki/$1                           |        1 |        0 |
| wikispecies         | http://species.wikipedia.org/wiki/$1                           |        1 |        0 |
| wikitravel          | http://wikitravel.org/en/$1                           |        0 |        0 |
| wikiworld           | http://WikiWorld.com/wiki/index.php/$1                           |        0 |        0 |
| wikt                | http://en.wiktionary.org/wiki/$1                           |        1 |        0 |
| wiktionary          | http://en.wiktionary.org/wiki/$1                           |        1 |        0 |
| wlug                | http://www.wlug.org.nz/$1                           |        0 |        0 |
| wlwiki              | http://winslowslair.supremepixels.net/wiki/index.php/$1                           |        0 |        0 |
| ypsieyeball         | http://sknkwrks.dyndns.org:1957/writewiki/wiki.pl?$1                           |        0 |        0 |
| zu                  | http://zu.wikipedia.org/wiki/$1                           |        1 |        0 |
| zwiki               | http://www.zwiki.org/$1                           |        0 |        0 |
| zzz wiki            | http://wiki.zzz.ee/                           |        0 |        0 |
+---------------------+-----------------------------------------------------------------------------------+----------+----------+
179 rows in set (0.05 sec)
mysql>


SQL 테이블 내용에 대해 보다 자세한 것은 다음을 참조: http://dev.mysql.com/doc/refman/5.1/en/retrieving-data.html

[편집] 인터위키 테이블 편집하기

[편집] 나만의 인터위키 추가하기

매우 간단하다. 그냥 통째로 복사해다가 붙여넣기 한다.

가령, bugzilla-interwiki.sql 파일에 아래와 같은 내용이 들어있다.

REPLACE INTO interwiki (iw_prefix,iw_url,iw_local) VALUES
('kdebug','http://bugs.kde.org/show_bug.cgi?id=$1',0),
('mozbug','http://bugzilla.mozilla.org/show_bug.cgi?$1',0),
('gentoobug','http://bugs.gentoo.org/show_bug.cgi?$1',0);

그러면 위 내용을 그대로 블럭으로 잡아 복사한다.

그리고 나서

mysql>

이 상태에서 마우스 오른쪽 버튼을 누르고, 붙여넣기 한다. 그럼 원하는 인터위키가 추가된다.

예제: 위의 interwiki를 mw_interwiki 고쳤다는 것만 주의하면 된다.

mysql> REPLACE INTO mw_interwiki (iw_prefix,iw_url,iw_local) VALUES
    -> ('kdebug','http://bugs.kde.org/show_bug.cgi?id=$1',0),
    -> ('mozbug','http://bugzilla.mozilla.org/show_bug.cgi?$1',0),
    -> ('gentoobug','http://bugs.gentoo.org/show_bug.cgi?$1',0);
Query OK, 3 rows affected (0.28 sec)
Records: 3  Duplicates: 0  Warnings: 0

mysql>

아래와 같은 방법도 있다는데, 어렵다. 비추천이다.

mysql -u <username> -p <nameofyourdatabase> < <filename.sql>

mysql -u wikiuser -p wikidb < bugzilla-interwiki.sql

This does not report success when it works. If you want to double check, you have to check the interwiki table.

[편집] 위키백과의 인터위키 목록을 사용하기

미디어위키 디렉토리에 보면, maintanance/wikipedia-interwiki.sql 파일이 있는데, 여기에 위키백과가 현재 사용하고 있는 인터위키 목록이 있다.

대략 일부만을 보면 다음과 같은 내용들이 있다:

REPLACE INTO interwiki (iw_prefix,iw_url,iw_local) VALUES
('w','http://www.wikipedia.org/wiki/$1',1),
('m','http://meta.wikipedia.org/wiki/$1',1),
('meta','http://meta.wikipedia.org/wiki/$1',1),
('zu','http://zu.wikipedia.org/wiki/$1',1);

뭐, 이것도 역시 위에서 말한 방법으로 그냥 복사해서 붙여넣으면 자동으로 다 실행된다.

그러나 더 간단한 방법을 소개한다.

mysql> \. /var/www/localhost/mediawiki-1.3.0/maintenance/wikipedia-interwiki.sql
Query OK, 155 rows affected (0.24 sec)
Records: 155  Duplicates: 0  Warnings: 0

mysql>  

예제:

mysql> \. /var/www/html/homewiki/maintenance/wikipedia-interwiki.sql
Query OK, 155 rows affected (0.24 sec)
Records: 155  Duplicates: 0  Warnings: 0

mysql>  

그러나, 그 파일 내용안에interwiki 앞에 프리픽스를 달아서 고쳐준 다음에 저 명령을 실행해야 한다.

wikipedia-interwiki.sql의 내용은 아래와 같다. 그거 맨 위에 interwiki만 앞에 접두어 제대로 달아주면 된다.

예를들어, ko:user:멀뚱이의 프리픽스는 위에서 본 바와 같이 mw_이다. 따라서

REPLACE INTO /*$wgDBprefix*/interwiki (iw_prefix,iw_url,iw_local) VALUES

이것을

 
REPLACE INTO /*$wgDBprefix*/mw_interwiki (iw_prefix,iw_url,iw_local) VALUES

이것으로 고쳐주면 된다. mw_ 라는 프리픽스만 추가해 주었다.

wikipedia-interwiki.sql의 내용:

-- For convenience, here are the *in-project* interwiki prefixes
-- for Wikipedia.

REPLACE INTO /*$wgDBprefix*/interwiki (iw_prefix,iw_url,iw_local) VALUES
('q','http://en.wikiquote.org/wiki/$1',1),
('b','http://en.wikibooks.org/wiki/$1',1),
('n','http://en.wikinews.org/wiki/$1',1),
('aa','http://aa.wikipedia.org/wiki/$1',1),
('ab','http://ab.wikipedia.org/wiki/$1',1),
('af','http://af.wikipedia.org/wiki/$1',1),
('ak','http://ak.wikipedia.org/wiki/$1',1),
('als','http://als.wikipedia.org/wiki/$1',1),
('am','http://am.wikipedia.org/wiki/$1',1),
('an','http://an.wikipedia.org/wiki/$1',1),
('ang','http://ang.wikipedia.org/wiki/$1',1),
('ar','http://ar.wikipedia.org/wiki/$1',1),
('arc','http://arc.wikipedia.org/wiki/$1',1),
('as','http://as.wikipedia.org/wiki/$1',1),
('ast','http://ast.wikipedia.org/wiki/$1',1),
('av','http://av.wikipedia.org/wiki/$1',1),
('ay','http://ay.wikipedia.org/wiki/$1',1),

뭐, 간단한 편집기로 위의 한 줄에 interwiki 만 mw_interwiki로 고쳐주고서, 그냥 통째로 복사해서

mysql> 여기서 마우스 오른쪽 클릭, 붙여넣기 해버리면 끝난다.

[편집] 인터위키 누르면 새로운 창에서 열리게 하는 방법

무슨 말인지 몰라서 번역 안했다.

  1. Edit the Interwiki-table, the interwiki-link
  2. Add
" TARGET="_blank

with the quotes just like that at the end of the interwiki-link.

It should look like this:

http://de.wikipedia.org/wiki/$1" TARGET="_blank

see also: Opening external links in a new window

[편집] mysql 사용법의 추가 도움말

Mysql Help

[편집] 위에 설명한 방법보다 phpMyAdmin 를 사용하기를 더 권장한다

영어판에는 그렇게 써놨는데, phpMyAdmin을 설치하는 거 의외로 까다롭다. 그러나 일단 phpMyAdmin가 설치되었다면 더 간단하다고 설명하고 있다. 번역 안했다.

http://www.stanton-finley.net/fedora_core_5_installation_notes.html#phpMyAdmin

ko:user:멀뚱이는 페도라 코어 5를 쓰는데, 여기에 phpMyAdmin을 설치하는 법 굉장히 쉽게 써 있다. 그대로 복사해다가 붙여넣기만 하면 된다. 아파치 웹서버네 기타 필요한 것도 매우 쉽게 설명해 놓았다.

If your server uses the software phpMyAdmin, you can simply select the database that uses the wiki (remember that your actual wikidb and wikiuser name were specified by you, and are stored in LocalSettings.php ), then select the table "interwiki" from the sidebar. To use the graphical interface, just select "browse" at the top and then you can opt to "insert new row" (at the bottom of the table) following the pattern established for the other items ("$1" is what will be replaced with whatever follows the interwiki prefix in your code; it will usually be at the end of the URL for the site for which you want to make a shortcut). Then click go or opt to insert another record until you are done.

[편집] 미디어위키 commons 설정 가능?

이 부분의 원문은 위키백과:사랑방/2007년 2월#미디어위키 commons 설정 가능?입니다.

위키백과에 위키미디어 공용(Wikimedia Commons)이 연결되어 있지요. 마찬가지로 제가 설치한 미디어위키를 위키미디어 공용이나 위키백과와 연결시켜서 그림 파일을 사용할 수 있게 하는 방법이 없나요? ― 한빈/Yes0song (談笑 筆跡 다지모) 2007년 2월 3일 (토) 14:47 (KST)

아마 아직 안 될 겁니다. InstantCommons라는 것이 제안되어 있어요. --Puzzlet Chung 2007년 2월 3일 (일) 15:14 (KST)
그럼 언사이클로피디어 쪽은 어떻게 한 걸까요? 자체적으로 Uncyclomedia Commons(UnCommons)를 구축했는데요. ― 한빈/Yes0song (談笑 筆跡 다지모) 2007년 2월 3일 (일) 22:52 (KST)
UnCommons에서 UnCy에 대해서만 문을 열어줬다고 생각한다면 말 되는 비유가 아닐까요. 위키공용은 아마 위키미디어재단 사이트에만 문을 열어줬겠죠. --Kjoonlee 2007년 2월 3일 (일) 23:22 (KST)
그렇다면 위키미디어 공용을 쓰는 건 안 되더라도, 특정 위키끼리 연동시키는 건 가능하다는 말씀? ― 한빈/Yes0song (談笑 筆跡 다지모) 2007년 2월 4일 (일) 09:03 (KST)
특정 위키들을 한 자료 위키와 연동시키는 기능을 pool 기능이라고 부르나봅니다. mw:Manual:Wiki_family#Scenario 3: Multiple wikis sharing common resources --Kjoonlee 2007년 2월 4일 (일) 11:08 (KST)
실제 구현은 제가 생각했던 것과는 많이 다른 것 같네요. InstantCommons에 “현재의 연동 기능은 같은 파일시스템 내에서만 작동한다”라고 적혀있습니다. --Kjoonlee 2007년 2월 4일 (일) 11:20 (KST)

미디어위키에 커먼스 사진 쓰기가 불가능한데, 앞으로는 가능하게 하느니 마느니 하고 있습니다만, 전 그 이유를 이렇게 봅니다. 만약 커먼스를 아무나에게 허용하면, 위키피디아 자료를 몽창 복사해다가 자신의 사이트에서 마음대로 편집하고 뭐할 수 있겠죠. 즉, 기존 위키피디아 서버들을 무력화할 수 있습니다. 적극적 회원이 좀 되는 이념단체나 뭐 기타등등...이런 곳에서 말이죠. 그래서 공개를 못하는게 아닐까요? 그냥 그런 생각도 드는군요...^^ -- 멀뚱이 (토론기여카운터로그e-Mail) 2007년 2월 24일 (일) 16:37 (KST)

그렇지 않습니다. 만약 그런 의도였다면 GFDL을 사용하지도 않았을 것이고요. 이미 위키백과를 그대로 박사해다가 서비스하는 곳이 여러 군데 있습니다만(위키백과:사랑방/2007년 1월#위키백과의 내용을 보여주는 사이트가 있는데요,, 위키백과:사랑방/2007년 1월#goo에서도 위키백과의 내용을 보여주네요.) 그렇다고 위키백과가 무력화되지는 않습니다. 기술적으로 서비스할 준비가 덜 되었거나 트래픽이 많아서 그렇다면 또 몰라도요. --Klutzy 2007년 2월 24일 (일) 16:43 (KST)

[편집] 미디어위키 소프트웨어에 대한 사용법 불만 등 게시판

mw:Project:Support_desk

[편집] 썸네일 사용시 에러발생

미디어위키를 처음에 설치하고서 썸네일 이미지 사용시, 즉 [[그림:acb.jpg|thumb|400px|abc 그림설명]] 처럼 thumb 사용시, 다음과 같은 에러가 날 수 있다:

Incomplete GD library configuration: missing function imagecreatefromjpeg

[편집] 해결책

  • 이미지매직을 설치한다.
  • LocalSettings.php 에서 다음을 찾아서, 수정한다.
$wgEnableUploads       = true;
$wgUseImageResize      = true;
$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgImageMagickConvertCommand = "C:/Program Files/ImageMagick-6.3.2-Q16/convert";

[편집] 참고자료

http://www.linuxquestions.org/questions/showthread.php?t=529292

[편집] ParserFunctions 설치

이 부분의 원문은 meta:ParserFunctions#Installation입니다.
ParserFunctions의 현재 버전은 php5 를 사용한다.

아래의 두 파일을 다운받는다. 미디어위키 디렉토리 아래에 extensions 디렉토리에 ParserFunctions라는 이름으로 새 디렉토리를 만든다.

php5를 사용하지 않는다면, 다음의 구버전을 다운받는다:

그리고 나서 mw:LocalSettings.php 파일 맨 아래에 다음을 추가한다:

require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );

You can also browse the code tree here:


주의사항:

require_once( "includes/DefaultSettings.php" );
require_once( "{$IP}/extensions/Cite/Cite.php" );
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );

이렇게 require_once( "includes/DefaultSettings.php" ); 아래에 바로 붙어서 위치해야 에러가 안난다. 그냥 맨 하단에 한 줄 추가하니까 에러가 난다.

[편집] 효과

뭐, 뭐가 좋은지는 모르겠고, 이 문서 위에 새 글 쓰기...이걸 그대로 복사해서 내 미디어위키에서 작동하게 하려면 ParserFunctions를 설치해야 작동이 된다.

[편집] 주석 기능 설치하기

이 부분의 원문은 meta:Cite/Cite.php입니다.

[편집] 다운로드

아래 영어는 모르겠고, 두 파일을 다운받는다.
Required by Cite.php or else you'll get a pretty blank page!

Warning! Cite.i18n.php contains certain characters that will be converted to ? when you click on the link above. To prevent this, right-click and select save link as....

[편집] 요구사항

Mediawiki 1.6x 버전 이상에서 가능하다.

[편집] 설치하기

  1. extensions/ 디렉토리의 아래에 Cite 디렉토리를 새로 만들어서, 두 파일을 여기다가 복사해라.
  2. LocalSettings.php에 다음 한 줄을 추가하라:
require_once( "{$IP}/extensions/Cite/Cite.php" );

Note: The require_once() line needs to be placed under the call to include DefaultSettings.php. 뭐라는 소리인지 모르겠다.

주의사항:

require_once( "includes/DefaultSettings.php" );
require_once( "{$IP}/extensions/Cite/Cite.php" );
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );

이렇게 require_once( "includes/DefaultSettings.php" ); 아래에 바로 붙어서 위치해야 에러가 안난다. 그냥 맨 하단에 한 줄 추가하니까 에러가 난다.

[편집] 주석 사용법

생략. 이거 되게 쉽다. 멀뚱이가 자주 쓴다.

[편집] 미디어위키 불만 피드백

http://www.mediawiki.org/wiki/Project:Support_desk#Somethig_bad...mediawiki

  • 1. 너무 느리다. module 방식을 쓰는데, fastcgi 가 빠르다고 하는데...설치법 모른다...ㅜㅜ
  • 2. Instant Commons...왜 아직도 무소식일까? 커먼스의 사진을 쓰고 싶다.
  • 3. SVG 업로드가 안된다...how?

[편집] 미디어위키를 왜 개인용으로 쓰는가?

간단하다. 개인용은 저작권법 적용이 없다. 기타 모든 귀찮은 법령이 다 적용없다. 한국법? 미국법? 다 적용없다. 따라서, 막펌질도 되고, 이게 모두 데이타베이스화가 가능하다. 필요한 것은 인터위키로 기존의 주요 위키백과들의 자료가 다 연동된다. 문제는, 커먼스 사진인데, 그거 아직도 무소식이라 좀 그렇지만, 언젠가는 지원될 거고...따라서...막강한 개인용 데이타베이스가 구축된다. 뭐, 그걸 언제 다 구축하겠냐고 하나, 그냥 평소 조금씩 필요한 메모나 펌질을 하면 된다. 그게 다 링크가 되는 거고, 집약이 된다. 정보가 집약되면, 상당히 유용해진다. 즉 퍼블리쉬된 위키백과는 법령이 까다롭지만, 개인용은 모든 법령이 다 적용되지 않는다. 따라서, 기존 위키백과 100만 항목에, 내 개인 정보를 합치고, 막펌질을 합치고, 프라이버시 관련 정보들을 합치고 뭐하고 하면...상당히 강력해진다.

인터위키의 경우에, 현재는 :ko:아무개 라고 해야 한국어 위키백과에 연결되고 :en:abc 라고 해야 영어 위키백과에 연결되는데, 그걸 다 없애고 기본값으로 한국어 위키백과에 연결되고 영어 위키백과에 연결되면 더 강력할 거다. 물론 내 백과사전 항목의 내부링크 문서가 존재하면, 그게 우선 적용되면 될 거고...아니면, 내부링크에 오히려 :my:아무개 라고 해야 링크가 되면 좋겠다.

즉, 영어판+한국어판+커먼스 사진, 동영상+알파...이 알파가 바로 개인용이지...자기 필요에 맞게 자기가 꾸민...그런 특화된 부분이지...기존에 세 서비스는 그냥 "연동 지원"만 되는 거고...

다른 위키엔진이 있는데, 왜 하필 미디어위키인가? 간단하다. 다른 위키엔진에 연동할 100만 항목 백과사전이 있나? 연동할 수십만 파일이 올라와 있는 커먼스가 있나? 없다. 연동할 "대량정보"가 없는데, 그 엔진이 작고 빠른다 한들 쓸 이유가 없지...혼자 놀면 뭐하나? "연동"이 핵심이지...

그런데, 아직 미디어위키를 윈도우 XP에 설치해서 쓰기엔...너무 느린게 흠인 것 같다. 특히 커먼스나 기존 위키백과에 저장된 사진들 사용이 안되는 건 치명적이고, 그리고, 외부 사진링크 a href였나? 뭐, 그 태그사용이 왜 안되는지 모르겠다. 되게 편할텐데...

[편집] 여러 위키백과를 구축해서 미디어 파일 자료를 공동으로 사용하기

이 부분의 원문은 mw:Manual:Wiki family입니다.

여러 언어 버전으로 위키를 만들었을 경우, 미디어 파일 자료들을 상호간에 공동으로 사용할 수 있다.

예제:

  • en.yourwiki.org - english language
  • fr.yourwiki.org - french language
  • de.yourwiki.org - german language
  • pool.yourwiki.org - Commons와 같이 공동으로 쓰는 미디어 파일이 저장된 곳이다.
    • As there is already an Interwikilink named commons for Wikimedia Commons, we name our media-files-wiki "pool".

[편집] 설치

파일 시스템에서 각각의 위키를 설치할 폴더를 새로 만든다. 위에 언급한 영어, 프랑스어, 독일어, Commons의 모든 위키를 설치한다.

[편집] 설정

[편집] 인터위키

Now you have to set Interwikilinks between all wikis, by editing their MySQL-Databases

  • Table Interwiki
    • iw_prefix - enter the language-code of the wikis, "de" for german, "en" for english, "fr" for france and "pool" for the mediapoolwiki
    • iw_url - this is the place for the complete URL to the wikis, e.g. "http://de.yourwiki.org/index.php/$1" for the german wiki (don't forget the "$1" !!!).

Now you can link an article to the same in another languages. Adding [[de:Hauptseite]] on your english Main_Page will create a link "Deutsch" (under the Navigation bar) which leads to the Main_Page of the german wiki (Hauptseite). For further information visit Help:Interwiki linking

[편집] 파일 업로드

공동으로 사용할 pool 위키의 "images" 폴더가 쓰기가능하게 권한설정이 되어 있어야만 한다.

각 언어별 위키의 "Upload file" 링크를 다음과 같이 수정한다. 각 언어별 위키의 "LocalSettings.php" 파일에 다음 명령을 추가한다:

$wgUploadNavigationUrl = 'http://pool.yourwiki.org/index.php/Special:Upload';

[편집] 공용 파일 사용

각 언어별 위키에서 poolwiki의 파일들을 사용하기 위해서, 각 언어별 위키의 "LocalSettings.php" 파일에 다음 명령들을 추가하라:

$wgUseSharedUploads = true;
$wgSharedUploadPath = 'http://pool.yourwiki.org/images';
$wgSharedUploadDirectory = '/(LOCALPATH)/POOL-FOLDER/images/';
$wgHashedSharedUploadDirectory = true;

이제, 각 언어별 위키에서 [[Image:MyLogo.png]] 라고 입력하면, poolwiki의 사진을 자동으로 읽어 올 것이다.

[편집] 그림 설명

In each languagewiki, open (as an admin) the message MediaWiki:Sharedupload.

Change the text to something like:

This file is stored in our data-pool. For information and description, please visit the  

[[:pool:Image:{{PAGENAME}}|description there]]. 

( And note the : at the beginning, if not, it would be parsed as another language (at least in 19alpha) )

If you want to output the media-description, stored in the PoolWiki, too, add to the "LocalSettings.php" of the languagewikis:

$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'pool';  # DB-Name of PoolWiki
$wgSharedUploadDBprefix = 'wiki_'; # Table name prefix for PoolWiki
$wgRepositoryBaseUrl = "http://pool.yourwiki.org/index.php/Image:"; 

[편집] Shared ExtensionSettings.php file

If you have multiple wikis, you may be interested in sharing similar settings across them all. Here is how to do that.

  • Step 1
    Create a file called ExtensionSettings.php with the following contents, and place it anywhere outside of your wikis. (it can be anywhere you want, it's just easier to think of it as a global file if it's not in any single wiki directory.)
<?php
### Add globalized Extension settings below

?>
  • Step 2
    Edit the LocalSettings.php file of each wiki that you want to use the shared settings, and add the following.
require_once( "/absolute/path/to/ExtensionSettings.php" );
  • Step 3
    Now just add all the settings that you would like to be the same across all your wikis. Here are some examples of what to include.
    • References to your various extensions
    • Your database user name and password
    • Even your database table/prefix information can be included with a special technique
    • Really, almost everything that you currently customize in your LocalSettings.php file

[편집] 미디어위키에 Commons 사진 사용하기

이 문서가 도움이 될 것 같습니다. 방금 찾았습니다.

결론은, 지원 안되는 거랍니다. 그래도, 혹시 모르니, 한 번 시도해 보세요. -_-

[편집] 미디어위키에서 로봇 돌리기

이에 대한 정보를 모을 생각입니다.

meta:Pywikipedia bot on non-Wikimedia projects 여기에 설명이 나와 있습니다.

[편집] 미디어위키 FAQ

아래 페이지에 있습니다. 메타의 FAQ은 mediawiki.org로 옮겨질 거라는 태그가 붙어있군요. 한국어 버전 제가 만들던 게 보입니다.

[편집] 질문: 미디어위키에 0 추가하는 법

이 부분의 본문은 위키백과:사랑방/2007년 3월#질문: 미디어위키에 0 추가하는 법입니다.

현재 한국어판 위키백과에서는 편집 버튼 옆에 문서의 첫 부분(섹션0)만을 편집하는 0 버튼이 있지요. 자신이 설치한 미디어위키에서 섹션0 편집 버튼(0)을 추가하려면 어떻게 설정을 하면 됩니까? ― 한빈/Yes0song (談笑 筆跡 다지모) 2007년 3월 11일 (일) 12:43 (KST)

그러게요, 저도 그런 거 안 나오더군요. 아무래도 extentions 에 뭐 또다른 추가 php 파일이 필요한가 봅니다만...확인해보죠. -- 멀뚱이 (토론기여카운터로그e-Mail) 2007년 3월 13일 (화) 07:24 (KST)
구글에서 다음과 같이 검색해 보았습니다.
"section=0" wikipedia site:.org
그리고 다음의 링크를 찾았네요. en:Wikipedia:WikiProject_User_scripts#monobooks.js -- 멀뚱이 (토론기여카운터로그e-Mail) 2007년 3월 13일 (화) 07:44 (KST)

[편집] Featured Article 만들기

{{Featured article}}을 문서 맨 상단에 추가해주시면, 문서가 특집 문서(Featured Article)로 바뀝니다.

영어 위키백과 메인 페이지에 오늘의 특집 문서 해서 나옵니다. 특집 문서란, 위키백과 내에서도 아주 잘 만들어진 문서를 말합니다. 내용과 질이 좋은 정보를 특집 문서라고 합니다.

mw:Extension:ImageMap에 설치방법이 나옵니다.

[편집] 설치 가이드

  1. extensions 디렉토리에 ImageMap 서브디렉토리를 새로 만드다. 새폴더 만들기.
  2. subversion 여기에 있는 파일들 다 다운로드 받는다.
  3. "require_once( "$IP/extensions/ImageMap/ImageMap.php" );" 한 줄을 LocalSettings.php 파일에 추가한다.

테스트:

  1. mw:Image:Foo.jpg 그림을 다운로드하고 미디어위키에 업로드한다.
  2. Make a new Article ImageMap and copy & paste the text of this article (at least section "syntax example") to your article (무슨말인지 모름)

[편집] 주의사항

여기서도 역시 require_once( "$IP/extensions/ImageMap/ImageMap.php" ); 이 명령어의 위치가 중요합니다. 아래처럼, 제가 설치한 위치에 이 문장을 삽입하면 에러가 안 납니다.

require_once( "$IP/extensions/ImageMap/ImageMap.php" );


## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX           = false;

$wgLocalInterwiki   = $wgSitename;

$wgLanguageCode = "ko";