429
回編集
細編集の要約なし |
|||
35行目: | 35行目: | ||
strpos($wgParser->mTitle->mPrefixedText, 'Special:') === false && | strpos($wgParser->mTitle->mPrefixedText, 'Special:') === false && | ||
$wgParser->mTitle->mNamespace !== 8) { | $wgParser->mTitle->mNamespace !== 8) { | ||
// Mediawiki:Keywords | |||
$title = Title::MakeTitle(NS_MEDIAWIKI, 'Keywords'); | $title = Title::MakeTitle(NS_MEDIAWIKI, 'Keywords'); | ||
$article = new Article($title); | $article = new Article($title); | ||
$keywords = explode(',', $article->getRawText()); | $keywords = explode(',', $article->getRawText()); | ||
foreach ($keywords as $keyword) | foreach ($keywords as $keyword) | ||
$out->addKeyword($keyword); | $out->addKeyword($keyword); | ||
// Mediawiki::Keywords-0 | |||
if ($wgParser->mTitle->mNamespace == NS_MAIN) { | |||
$title = Title::MakeTitle(NS_MEDIAWIKI, 'Keywords-0'); | |||
$article = new Article($title); | |||
$keywords = explode(',', $article->getRawText()); | |||
foreach ($keywords as $keyword) | |||
$out->addKeyword($keyword); | |||
} | |||
// Mediawiki::Keywords-2 | |||
if ($wgParser->mTitle->mNamespace == NS_USER) { | |||
$title = Title::MakeTitle(NS_MEDIAWIKI, 'Keywords-2'); | |||
$article = new Article($title); | |||
$keywords = explode(',', $article->getRawText()); | |||
foreach ($keywords as $keyword) | |||
$out->addKeyword($keyword); | |||
} | |||
} | } | ||
return true; | return true; |