위키피디아 XML 덤프를 다운로드하여 로컬 미디어 위키 설치로 가져 왔습니다. 이를 위해 mwdumper
을 사용하여 SQL 스크립트를 생성했습니다. 내가 실행 정확한 명령했다 :위키 피 디아를 로컬 미디어 위키로 가져 오기 템플릿 참조로 가득 찬 페이지를 만듭니다
java -jar mwdumper.jar --format=mysql:1.5 --filter=notalk --filter=namespace:\!NS_USER --filter=latest enwiki-20160601-pages-articles-multistream.xml > enwiki-20160601-pages-articles-multistream.sql
내 지역 미디어 위키 데이터베이스 작업을 위해, 나는 먼저 page
테이블에 page_counter
열을 추가했다. 그런 다음 스크립트를 실행했습니다 (완료하는 데 수 시간 걸렸습니다).
이제 끝났지 만 생성 된 항목에 액세스하면 템플릿에 대한 많은 참조가 있습니다. 예를 들어 Foobar 기사의 첫 번째 단락은 다음과 같습니다.
{{#invoke:Distinguish|distinguish}} {{#invoke:redirect hatnote|redirect|1}} The terms foobar (Template:IPAc-en), or foo and others are used as placeholder names (also referred to as metasyntactic variables) in computer programming or computer-related documentation.<ref name="rfc3092">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> They have been used to name entities such as variables, functions, and commands whose exact identity is unimportant and serve only to demonstrate a concept.
어떻게 해결할 수 있습니까? Media Wiki 또는 어떤 종류의 확장 프로그램을 설치해야합니까? Wikipedia의 로컬 인스턴스를 얻는 더 좋은 방법이 있습니까?
[MediaWiki 용 템플릿은 어디서 구할 수 있습니까?] (http://stackoverflow.com/questions/678626/where-templates-for-mediawiki) – MaxSem