Help:参照読み込み
Jump to navigation
Jump to search
![]() |
注意: このページを編集すると、編集内容が CC0 のもとで公開されることに同意したと見なされます。詳細はパブリック・ドメインのヘルプ ページを参照してください。
|
![]() |
参照読み込み (Transclusion、トランスクルージョン) は、二重括弧「{{}}」のマークアップを使用してページをその場に読み込むことを意味する、MediaWiki で全般的に使用される用語です。 これにより、テンプレート、テンプレート以外の名前空間のページ、マジック ワード、パーサー関数の出力、特別ページ、インターウィキ ページなどを読み込めるようになります。
参照読み込み先ページの構文
基本的な使用法
To transclude a page, include both the namespace and the page name (separated with a colon) within the double-brace:
{{Help:Transclusion}}
When transcluding a template, you may omit the namespace and colon:
{{infobox}}
When transcluding an article in the Main namespace, you may omit the namespace:
{{:Transclusion}}
When transcluding a subpage of the target page, you may use the subpage name by itself:
{{/doc}}
パラメーター
Transcluded templates and 特別ページ may accept parameters:
{{note|inline|This is a note.}}
参照読み込み元ページの構文
Three tags (noinclude, includeonly, and onlyinclude) control which content appears in the target page.
- noinclude
- Content within the
<noinclude></noinclude>
tags is excluded from transclusion on the target page. This content still appears on the source page.
- includeonly
- Content within the
<includeonly></includeonly>
tags is transcluded on the target page, but does not appear on the source page.
- onlyinclude
- Content within the
<onlyinclude></onlyinclude>
tags is transcluded on the target page, and also appears on the source page.
関連項目
- Transclusion: A more in-depth explanation