コンテンツにスキップ

利用者:長門は俺の嫁/Extension

MediaWikiにExtensionsを入れるメモ

[編集]

MediaWiki>MediaWiki:Extensions

Extensions

[編集]

FCKeditor

[編集]

CategoryCloud

[編集]
<category-cloud category="CategoryOfTopics"></category-cloud>
{{#category-cloud:CategoryOfTopics}}
  • minsize: The font size, in percentage, that the small category will have. Defaults to 80.
  • maxsize: The font size, also as a percentage, that the largest category will have. Defaults to 125.
  • order: The order of the categories. Defaults to "name" but may also be "count".
  • class: A CSS class to put into the outer div generated.
  • style: The contents of this optional attribute will be placed in a style attribute of the outermost div tag.
<category-cloud category="CategoryOfTopics" minsize="80" maxsize="125"></category-cloud>
{{#category-cloud:CategoryOfTopics|minsize=80|maxsize=125}}

Wikipediaで使用されてるExtensions

[編集]

自分のMediaWikiWikipediaを再現する。

CategoryTree

[編集]
  • Extension:CategoryTree
  • svnのファイルを全部ダウンロード
  • mediawiki/ExtensionsにCategoryTreeというディレクトリーを作り全部アップロード
mediawiki/Extensions/CategoryTree/*.php
  • LocalSettings.phpの末行に以下の設定を書き加える
$wgUseAjax = true;
require_once( 'extensions/CategoryTree/CategoryTree.php' );

Cite

[編集]
  • Cite/Special:Cite.php
  • svnのファイル全部ダウンロード
  • cite_text*というファイルは拡張子が無い、ダウンロードする時にhtm等ついたら拡張子を削る
  • mediawiki/Extensions/Citeというディレクトリーを作り全部アップロード
  • ExtensionFunctions.phpをダウンロードしてmediawiki/Extensions/ディレクトリーにアップロード
mediawiki/Extensions/ExtensionFunctions.php
mediawiki/Extensions/Cite/*.php *.css

WikiHiero

[編集]
require_once("extensions/wikihiero/wikihiero.php");

CharInsert

[編集]
require_once("$IP/extensions/CharInsert/CharInsert.php");

ParserFunctions

[編集]

Poem

[編集]
[編集]

Filepath

[編集]

Linksearch

[編集]

LuceneSearch

[編集]

MakeBot

[編集]

Makesysop

[編集]

OAIRepository

[編集]

Renameuser

[編集]

SiteMatrix

[編集]

EasyTimeline

[編集]

ImageMap

[編集]

Inputbox

[編集]

ConfirmEdit

[編集]

Newuserlog

[編集]

SpamBlacklist

[編集]