Extension:ForcePreview

This page is a translated version of the page Extension:ForcePreview and the translation is 78% complete.
MediaWiki 拡張機能マニュアル
ForcePreview
リリースの状態: 安定
実装 利用者権限
説明 権限がない利用者に保存前のプレビューを強制する
作者 Ryan Schmidt (Skizzerzトーク)
最新バージョン 2.0.0 (2017-09-20)
MediaWiki 1.29+
データベースの変更 いいえ
ライセンス MIT ライセンス
ダウンロード
README
strategywiki.org
forcepreviewexempt
Quarterly downloads 11 (Ranked 133rd)
translatewiki.net で翻訳を利用できる場合は、ForcePreview 拡張機能の翻訳にご協力ください

ForcePreview は、権限がない利用者に保存前のプレビューを強制します。

使用法

Users without the forcepreviewexempt right will be forced to use the "プレビューを表示" (or "Live Preview", if enabled) button before being allowed to save the page.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のForcePreviewという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ForcePreview
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'ForcePreview' );
    // 登録済み利用者にはプレビューを強制しない
    $wgGroupPermissions['user']['forcepreviewexempt'] = true;
    
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

関連項目

  • Manual:プレビューの強制 - JavaScript that performs the same function, albeit easier to work around (users can simply disable JavaScript on their browser to get around the restriction).