/ 新規ページを作成 ページ一覧 単語検索 最終更新日時の一覧 / ヘルプ / 最終更新のRSS

[ パソコン用表示 | スマホ用表示 ]


[[Web2.0]] > [[MediaWiki>Web2.0/MediaWiki]]

*[[MediaWiki>http://www.mediawiki.org/wiki/MediaWiki/ja]] インストール成功! [#u618fd45]
インストール先URL  →  http://www.300000.jp/ 

-俺しか編集できないように設定しています。
--LocalSettings.php に以下の3行を追加する。
 $wgGroupPermissions['*']['createaccount'] = false;
 $wgGroupPermissions['*']['edit'] = false;
 $wgShowIPinHeader = false;
--- 参考: http://blog.livedoor.jp/becks1979/archives/50665312.html

-2008年04月17日(木)に,やっと数式を使えるようになりました。
ただし,数式の記述には<math></math>タグではなく<tex></tex>タグを使います。
--http://www.forkosh.dreamhost.com/mimetex.exe/ から適切なファイルをDLし,解凍した中の mimetex.cgi を,パーミッション755でアップロードする。
--http://www.forkosh.dreamhost.com/mimetex.exe/ から適切なファイルをDLし,解凍した中の mimetex.cgi を,''&color(red,yellow){バイナリモード};''でアップロードし,''&color(red,yellow){パーミッションを755に};''する。
--以下の内容を記した mimetex.php というファイルを,extensionsフォルダにアップロードする。
 <?php
 
 $wgExtensionFunctions[] = "MimetexExtension";
 
 function MimetexExtension() {
     global $wgParser;
     # register the extension with the WikiText parser
     # the first parameter is the name of the new tag.
     # In this case it defines the tag <example> ... </example>
     # the second parameter is the callback function for
     # processing the text between the tags
     $wgParser->setHook( "tex", "render_Mimetex" );
 }
 
 /**
 * Renders $text in Mimetex
 */
  
 function render_Mimetex($input, $argv, $parser = null) {
 
   if (!$parser) $parser =& $GLOBALS['wgParser'];
   // $img_url is the url the mimetex will be sent to.
   // IMPORTANT!! The URL below should be the link to YOUR mimetex.cgi if possible
   $img_url = "http://***.******.***/mimetex.cgi?".$input;
         
   // Sets the output of the tex tag using the url from above, and the input as
   // the Alt text.  It's important to note that there is no error output added yet.
   $output = "<img src=\"$img_url\" alt= \"$input\" />";
 
   return $output;
 }
 ?>
--以下の1行を,localsettings.php の最後の行に追加する。
 require("extensions/mimetex.php");
--inludesディレクトリにある editpage.php から
        'open'  =>   "\\<math\\>",
        'close' =>   "<\\/math\\>",
という2行を探し,ここを次のように変更する。
        'open'  =>   "\\<tex\\>",
        'close' =>   "\\</tex\\>",
--- 参考: http://d.hatena.ne.jp/cou929_la/20071122/1195745561

-俺しか編集できないように設定しています。
--LocalSettings.php に以下の3行を追加する。
 $wgGroupPermissions['*']['createaccount'] = false;
 $wgGroupPermissions['*']['edit'] = false;
 $wgShowIPinHeader = false;
--- 参考: http://blog.livedoor.jp/becks1979/archives/50665312.html