Module:Transcluder/doc/ja

{{#switch: {{languages|Module:Transcluder/doc}} {{Shared Template Warning|Module:Transcluder|Module:Transcluder}} このモジュールは、汎用の参照読み込みエンジンであり、ページの任意の部分を参照読み込みでき、通常の参照読み込みでは提供されない多くのオプションがあります.

モジュール
モジュールのメインのエントリー ポイントは  メソッドです.


 * — リクエストされたページを取得 (通常の参照読み込みとまったく同じ結果)
 * — リクエストされたページの導入節を取得
 * — リクエストされた節または タグ (下位節を含む) を取得

および タグは通常の方法で処理されますが、結果からさまざまな要素を除外する省略可能な 2 番目のパラメーターもあります:


 * — すべてのファイルを除外
 * — 最初以外のすべてのファイルを除外
 * — 2 番め以外のすべてのファイルを除外
 * — Exclude all files except the first and second
 * — Exclude all files except the first, second and third
 * — Exclude all files except the first, third, fourth and fifth
 * — Exclude the second file
 * — Exclude the second and third files
 * — Exclude the first, third, fourth and fifth files
 * — Exclude all files except A.png
 * — Exclude A.png
 * — Exclude all files except A.png, B.jpg and C.gif
 * — Exclude A.png, B.jpg and C.gif
 * — Exclude all files except the first and third
 * — Exclude the first and third files
 * — Exclude A.png and B.jpg
 * — Exclude all files except PNG files (see Lua patterns)
 * — Exclude all PNG files

The very same syntax can be used to exclude many other elements:


 * — Exclude all subsections
 * — Exclude all subsections except 'History' and 'Causes'
 * — Exclude all lists except the first
 * — Exclude all tables except the one with id 'stats'
 * — Exclude all paragraphs except the first, second and third
 * — Exclude all references
 * — Exclude all categories
 * — Exclude infobox templates
 * — Exclude all parameters from all templates except the one named 'image'

Options can be combined at will. 例:


 * — Exclude all subsections, all files except the first, and all paragraphs except the first three

You can also get only some elements like so:


 * — Get only the files
 * — Get only the first list
 * — Get only the table with id 'stats'
 * — Get only the first, third, fourth and fifth paragraph
 * — Get only the infobox
 * — Get only the first file, followed by all the lists

The output can be further modified with a few special options:


 * — Don't follow redirects
 * — Link the bold title or synonym near the start of the text
 * — Remove bold text
 * — Remove self links
 * — Remove behavior switches such as
 * — Prefix reference names with 'Title ' to avoid name conflicts when transcluding and rescue references defined outside the requested section to avoid undefined reference errors

Besides the  method, the module exposes several other methods to get specific parts of the wikitext. This allows other modules to combine elements in more advanced ways.

テンプレート
The main entry point for templates is the  method. It's essentially a wrapper of the  method to make it usable for templates.

See the documentation of the  method for more details and options.


 * — Transclude the requested page
 * — Transclude the lead section of the requested page
 * — Transclude the requested section or tag (includes any subsections)
 * — Transclude the requested section, excluding subsections
 * — Transclude only the first file of the page
 * — Transclude only the second table of the requested section
 * — Transclude only the paragraphs of the lead section and link the bold text

関連項目

 * Module:Transcluder/testcases
 * c:Data:i18n/Module:Transcluder.tab

}}
 * #default=