Extension:Header Footer
Appearance
リリースの状態: 安定 |
|
|---|---|
| 実装 | 自分のウィキ, 拡張構文 |
| 説明 | Allows content to be included at the top and bottom of the wiki's page content section |
| 作者 | Jean-Lou Dupont, James Montalvo, Douglas Mason, Hallo Welt! GmbH |
| 最新バージョン | 4.0 |
| 互換性の方針 | 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。 |
| MediaWiki | 1.43+ |
| データベースの変更 | いいえ |
| Composer | mediawiki/header-footer |
|
|
| ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
| ダウンロード | |
| translatewiki.net で翻訳を利用できる場合は、Header Footer 拡張機能の翻訳にご協力ください | |
The Header Footer extension allows content to be included at the top and bottom of the wiki's page content section per namespace and per page.
特徴
- 速度 - integrated with parser caching
- Secure - header and footer articles are located in the NS_MEDIAWIKI namespace
- 制御可能 - headers and/or footers can be disabled on pages which are edit protected
- カスタマイズ可能 - headers and footers are wrapped in
<div>elements
インストール
- ダウンロードして、ファイルを
extensions/フォルダー内のHeaderFooterという名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HeaderFooter
- 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'HeaderFooter' );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
使用法
Per-Namespace Header and Footer
Edit the pages:
MediaWiki:Hf-nsheader-名前空間名MediaWiki:Hf-nsfooter-名前空間名
namespace name must be in the language of the wiki (see $wgLanguageCode)
For the 'main' namespace, just use blank i.e. no string, but with the hyphen:
MediaWiki:Hf-nsheader-MediaWiki:Hf-nsfooter-
Per-Page Header and Footer
Edit the pages:
MediaWiki:Hf-header-ページ名MediaWiki:Hf-footer-ページ名
Disable commands
On edit protected pages, one can add:
__NOHEADER__- to suppress the page level header__NOFOOTER__- to suppress the page level footer__NONSHEADER__- to suppress the namespace level header__NONSFOOTER__- to suppress the namespace level footer
CSS
- Page Level Header:
<div class="hf-header"> - Namespace Level Header:
<div class="hf-nsheader"> - Page Level Footer:
<div class="hf-footer"> - Namespace Level Footer:
<div class="hf-nsfooter">
例
- Page MediaWiki:hf-nsheader-Extension would contain the wikitext to be included as header for all pages of the Extension namespace.
- In this case, to suppress the header of the page Extension:HeaderFooter one should a) edit protect it, and b) add
__NONSHEADER__in it.
- In this case, to suppress the header of the page Extension:HeaderFooter one should a) edit protect it, and b) add
- Page MediaWiki:hf-footer-Extension:HeaderFooter would contain the wikitext to be included as footer for the page Extension:HeaderFooter.
- In this case, to suppress the footer of the page Extension:HeaderFooter one should a) edit protect it, and b) add
__NOFOOTER__in it.
- In this case, to suppress the footer of the page Extension:HeaderFooter one should a) edit protect it, and b) add
関連項目
- Extension:PageNotice – provides a way for you to define fixed notice messages for the top or the bottom of a page (by individual page name), or entire namespaces (by namespace number).
| この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: |
Categories:
- Stable extensions/ja
- Personalization extensions/ja
- Extended syntax extensions/ja
- Extensions supporting Composer/ja
- OutputPageParserOutput extensions/ja
- ResourceLoaderGetConfigVars extensions/ja
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- All extensions/ja
- Extensions included in BlueSpice/ja
- Extensions included in Canasta/ja
- Extensions included in ProWiki/ja
- Extensions included in wiki.gg/ja
- View page extensions/ja
- Headers and footers extensions/ja
