Extension:StructuredDiscussions
この |
StructuredDiscussions
この
StructuredDiscussions
インストール
| StructuredDiscussionsはSQLiteと |
必要 な依存 関係 のセットアップと構成 がすべて完了 していることを確認 してください。- あなたのウィキのrest.php を
指 すように$wgVirtualRestConfig['modules']['parsoid']['url']
を設定 してください。 - If you have problems in MediaWiki 1.40, you should make some changes to remove virtualrestconfig of restbase in Flow. See task T337223.
- ダウンロードして、ファイルを
extensions/
フォルダー内 のFlow
という名前 のディレクトリ内 に配置 します。開発 者 とコード寄稿 者 は、上記 の代 わりに以下 を使用 してGitからインストールします:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Flow - Gitでのインストールの
場合 のみ、PHPの依存 関係 をインストールするためComposerを実行 します。 (合併症 の可能 性 についてはタスク T173141を参照 。) 以下 のコードを LocalSettings.php ファイルの末尾 に追加 します:wfLoadExtension( 'Flow' );
更新 スクリプトを実行 します。このスクリプトは、この拡張 機能 が必要 とするデータベーステーブルを自動的 に作成 します。-
完了 – ウィキの「Special:Version」に移動 して、拡張 機能 が正 しくインストールされたことを確認 します。
Vagrantでのインストール:
- Vagrant を
使用 している場合 は、vagrant roles enable flow --provision
でインストールしてください。
インストール後
/tmp/mw-UIDGeneratorUUID-UID-xx
依存 関係
必須
- Extension:Echo -
通知 用 (例 :投稿 への返事 ) 対象 のキャッシュが必要 です。その実行 には memcach (汎用 の分散 型 メモリキャッシュシステム) の使用 が推奨 されます。現在 、Redis を使 うと問題 が発生 するかもしれません。- Extension:ParserFunctions -
自動的 にインストールされるテンプレートに対応 (例 =#time)
強 く推奨
- Parsoidは
投稿 をHTML形式 ($wgFlowContentFormat = 'html';
)として保存 し、パフォーマンスを改善 。 WMF(ウィキメディア財団 )のウィキの設定 がこうなっているからで、現状 ではもっともテストが行 き届 いた設定 です。 MediaWiki-Vagrantを使用 している場合 、StructuredDiscussionsを有効 にすると Parsoid が有効 になり、形式 を「html」に設定 します。
省略 可能
- Extension:BetaFeatures -
利用 者 のトークページで選択 制 のベータ機能 を利用 するため。 - Extension:CLDR -
人間 にわかりやすい「3日 前 」のようなタイムスタンプを使用 - Extension:VisualEditor - ビジュアル
編集 機能 VisualEditor への対応 - バグ? ビジュアルエディタをインストールしてある
場合 (例 :OOUIを提供 するため) は、たとえ有効 にしていなくても StructuredDiscussions が Parsoid を呼 び出 そうとする現象
- バグ? ビジュアルエディタをインストールしてある
- StructuredDiscussions はExtension:AbuseFilter 、Extension:SpamBlacklist 、Extension:ConfirmEdit と
統合 します。詳細 はExtension:StructuredDiscussions/Spam をご参照 ください - StructuredDiscussionsはExtension:CheckUser をインストールした
環境 で統合 します。 - Extension:Thanks -
投稿 した利用 者 に「感謝 」を送信
インストールの確認
StructuredDiscussions を
設定
LocalSettings.php
で
StructuredDiscussions を有効 もしくは無効 にするには
MediaWiki 1.35, all
で
mwscript populateContentModel.php --wiki=somewiki --ns=1 --table=revision
mwscript populateContentModel.php --wiki=somewiki --ns=1 --table=archive
mwscript populateContentModel.php --wiki=somewiki --ns=1 --table=page
mwscript populateContentModel.php --wiki=somewiki --ns=3 --table=revision
mwscript populateContentModel.php --wiki=somewiki --ns=3 --table=archive
mwscript populateContentModel.php --wiki=somewiki --ns=3 --table=page
mwscript がmwscript populateContentModel.php
をphp maintenance/populateContentModel.php
と
$wgNamespaceContentModels [namespace]
を
// These lines enable StructuredDiscussions on the "Talk" and "User talk" namespaces
// All the NS_* constants here: https://www.mediawiki.org/wiki/Manual:Namespace_constants
$wgNamespaceContentModels[NS_TALK] = 'flow-board';
$wgNamespacesWithSubpages[NS_TALK] = true;
$wgNamespaceContentModels[NS_USER_TALK] = 'flow-board';
$wgNamespacesWithSubpages[NS_USER_TALK] = true;
グローバルな
)。
$wgNamespaceContentModels =
$wgGroupPermissions['somegroup']['flow-create-board'] = true;
ご
Parsoid 設定
このページの |
StructuredDiscussions は Parsoid または RESTBase サービスにLocalSettings.php
で
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://localhost:8000',
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
'prefix' => 'localhost',
);
domain
$wgCanonicalServer
が
Parsoid の localsettings.js
で
parsoidConfig.setMwApi({ uri: 'http://path/to/my/wiki/api.php', domain: 'localhost', prefix: 'localhost' });
ここでも Parsoid uri
localsettings.js
にdomain
と prefix
がごLocalSettings.php
と
「入 れ子 の関数 の最大 レベル「100」に達 したため、中止 します」
このエラーが/etc/php5/apache2/php.ini
.[1] において xdebug.max_nesting_level = 200
の
「例外 を発見 :CASがXyz で実行 しない」状態
StructuredDiscussions は $cache->cas()
とCACHE_ACCEL
(APCBagOStuff)などのキャッシュした$wgMainCacheType = CACHE_MEMCACHED;
を
権限
StructuredDiscussionsでedit
StructuredDiscussions がedit-post
やdelete-topic
があります (flow-edit-post
既存 のページの移行
maintenance/convertNamespaceFromWikitext.php
というスクリプトはこのmaintenance/convertAllLqtPages.php
というスクリプトはLiquidThreadsページとスレッドをFlowのボードと
Flow はTopic:maintenance/namespaceDupes.php
を
設定
パラメーター | コメント | |
---|---|---|
$wgFlowHelpPage | //www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:Flow | Flow |
$wgFlowCluster | false | $wgFlowCluster はどの |
$wgFlowDefaultWikiDb | false | StructuredDiscussions メタデータ StructuredDiscussions データベースを |
$wgFlowExternalStore | false | コンテンツの False に $wgFlowExternalStore = array( 'DB://cluster24', 'DB://cluster25' ); |
$wgFlowContentFormat | html | しかしながら、これには Parsoid が $wgFlowParsoidURL が null の 'wikitext' |
$wgFlowParsoidURL | null | StructuredDiscussions Parsoid |
$wgFlowParsoidPrefix | null | Flow Parsoid |
$wgFlowParsoidTimeout | null | Flow Parsoid |
$wgFlowParsoidForwardCookies | false |
この
|
$wgFlowDefaultLimit | 10 | |
$wgFlowMaxLimit | 100 | ページングの |
$wgFlowMaxMentionCount | 100 | コメント1 |
$wgFlowMaxThreadingDepth | 8 | スレッドの |
$wgFlowCacheTime | 60 * 60 * 24 * 3 | StructuredDiscussions データを memcache にキャッシュする この |
$wgFlowCacheVersion | 4.9 | キャッシュのフォーマットもしくはロジックが |
$wgFlowAbuseFilterGroup | 'flow' | Custom group name for AbuseFilter
Acceptable values:
|
$wgFlowAbuseFilterEmergencyDisableThreshold | 0.10 | AbuseFilter emergency disable values for StructuredDiscussions |
$wgFlowAbuseFilterEmergencyDisableCount | 50 | AbuseFilter emergency disable values for StructuredDiscussions |
$wgFlowAbuseFilterEmergencyDisableAge | 86400 // One day. | AbuseFilter emergency disable values for StructuredDiscussions |
$wgFlowAjaxTimeout | 30 | Timeout for StructuredDiscussions's AJAX requests (only affects ones that go through flow-api.js), in seconds |
$wgFlowCoreActionWhitelist | array( 'info', 'protect', 'unprotect', 'unwatch', 'watch', 'history', 'wikilove', 'move', 'delete' ); | Actions that must pass through to MediaWiki on StructuredDiscussions-enabled pages |
$wgFlowServerCompileTemplates | false | When set to true StructuredDiscussions will compile templates into their intermediate forms on every run. When set to false Flow will use the versions already written to disk. Production should always have this set to false. |
$wgFlowSearchServers, $wgFlowSearchConnectionAttempts, $wgFlowSearchBannedPlugins, $wgFlowSearchOptimizeIndexForExperimentalHighlighter, $wgFlowSearchMaxShardsPerNode, $wgFlowSearchRefreshInterval, $wgFlowSearchMaintenanceTimeout, $wgFlowSearchReplicas, $wgFlowSearchShardCount, $wgFlowSearchCacheWarmers, $wgFlowSearchMergeSettings, $wgFlowSearchIndexAllocation, $wgFlowSearchEnabled | N/A | These former settings were removed because the code was unmaintained and broken. (You can look at the previous documentation if you want.) There is currently no code for supporting search in StructuredDiscussions. |
システムメッセージ
StructuredDiscussions のボードでソース"ウィキテキストはマークアップを
を
その
[https://www.mediawiki.org/wiki/Help:Formatting uses markup]
.のように
トラブルシューティング
Flow が
正 しく設定 されていないparsoid/VEが機能 しない
Conversion from 'html' to 'wikitext' was requested, but core's Parser only supports 'wikitext' to 'html' conversion
のようなメッセージが
- parsoidが
正 しくインストールされていることを確認 してください。 - このバグが
解決 されていない場合 、このパッチをStructuredDiscussionsコードベースに適用 してください。
Custom-Namespace 宣言 の順序 が間違 っている
Flow
define("NS_PORTAL_TALK", 3005);
$wgExtraNamespaces[NS_PORTAL_TALK] = "Portal_Talk";
$wgNamespaceContentModels[NS_PORTAL_TALK] = 'flow-board';
$wgNamespacesWithSubpages[NS_PORTAL_TALK] = true;
間 違 ったネイティブの定数
メインのNS_TALK
とNS_MAIN_TALK
ではありません。
$wgNamespaceContentModels[NS_TALK] = 'flow-board';
登録 のない拡張 機能 の定数
Extension:Page Forms PF_NS_FORM_TALK
になる
$wgNamespaceContentModels[107] = 'flow-board';
古 い名残
- Flow を
読 み込 まないトークページを閲覧 します。たとえば: Portal_Talk:Welcome 削除 タブを使 い、トークページを削除 します。- そのトークページが
付 いたコンテンツのページを開 きます。例 : Portal:Welcome - 「Discuss」をクリックします。
- すると Flow が
有効 になります。
Parsoid not working in StructuredDiscussions (Flow)
To get Parsoid to work with StructuredDiscussions (Flow):
- In
LocalSettings.php
, explicitely load Parsoid like so:wfLoadExtension( 'Parsoid', "vendor/wikimedia/parsoid/extension.json" );
- Apply the following patch.
For more details, see Topic:X8mv19b4va26u8tz.
アーキテクチャ
Flow/Architecture を
スパム
FlowFlow のスパム
モデレーション
Flowにおけるモデレーションの
エクスポートとインポート
Flow のデータをエクスポートする
php extensions/Flow/maintenance/dumpBackup.php
タスク T114703 - インポートのヒントをいくつか
この |
この |
- Unmaintained extensions/ja
- Page action extensions/ja
- Extensions supporting Composer/ja
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- AbortEmailNotification extensions/ja
- AbuseFilter-builder extensions/ja
- AbuseFilter-computeVariable extensions/ja
- AbuseFilter-deprecatedVariables extensions/ja
- AbuseFilterGenerateVarsForRecentChange extensions/ja
- ApiFeedContributions::feedItem extensions/ja
- Article::MissingArticleConditions extensions/ja
- ArticleConfirmDelete extensions/ja
- ArticleDelete extensions/ja
- ArticleDeleteComplete extensions/ja
- ArticleEditUpdateNewTalk extensions/ja
- ArticleUndelete extensions/ja
- BeforeCreateEchoEvent extensions/ja
- BeforeDisplayOrangeAlert extensions/ja
- BeforeEchoEventInsert extensions/ja
- BeforePageDisplay extensions/ja
- CategoryViewer::doCategoryQuery extensions/ja
- CategoryViewer::generateLink extensions/ja
- ChangesListInitRows extensions/ja
- ChangesListInsertArticleLink extensions/ja
- ChangesListSpecialPageQuery extensions/ja
- CheckUserFormatRow extensions/ja
- CheckUserInsertChangesRow extensions/ja
- ContribsPager::reallyDoQuery extensions/ja
- ContributionsLineEnding extensions/ja
- DeletedContribsPager::reallyDoQuery extensions/ja
- DeletedContributionsLineEnding extensions/ja
- EchoAbortEmailNotification extensions/ja
- EchoGetBundleRules extensions/ja
- EnhancedChangesList::getLogText extensions/ja
- EnhancedChangesListModifyBlockLineData extensions/ja
- EnhancedChangesListModifyLineData extensions/ja
- GetBetaFeaturePreferences extensions/ja
- GetPreferences extensions/ja
- IRCLineURL extensions/ja
- ImportHandleToplevelXMLTag extensions/ja
- InfoAction extensions/ja
- LiquidThreadsIsLqtPage extensions/ja
- LoadExtensionSchemaUpdates extensions/ja
- MergeAccountFromTo extensions/ja
- MovePageCheckPermissions extensions/ja
- MovePageIsValidMove extensions/ja
- NukeDeletePage extensions/ja
- NukeGetNewPages extensions/ja
- OldChangesListRecentChangesLine extensions/ja
- PageMoveCompleting extensions/ja
- ResourceLoaderGetConfigVars extensions/ja
- ResourceLoaderRegisterModules extensions/ja
- RevisionUndeleted extensions/ja
- SaveUserOptions extensions/ja
- SearchableNamespaces extensions/ja
- ShowMissingArticle extensions/ja
- SkinTemplateNavigation::Universal extensions/ja
- SpecialCheckUserGetLinksFromRow extensions/ja
- SpecialWatchlistGetNonRevisionTypes extensions/ja
- TitleMoveStarting extensions/ja
- TitleSquidURLs extensions/ja
- UnwatchArticle extensions/ja
- UserGetReservedNames extensions/ja
- UserMergeAccountFields extensions/ja
- WatchArticle extensions/ja
- WatchlistEditorBeforeFormRender extensions/ja
- WatchlistEditorBuildRemoveLine extensions/ja
- WhatLinksHereProps extensions/ja
- GetUserPermissionsErrors extensions/ja
- All extensions/ja
- Extensions requiring Composer with git/ja
- Outdated pages/ja
- Extensions used on Wikimedia/ja
- Extensions included in Miraheze/ja
- Extensions included in WikiForge/ja
- Structured Discussions/ja
- Discussion and forum extensions/ja
- Extensions with VisualEditor support/ja