「ヘルプ:トランスクルージョン」の版間の差分

削除された内容 追加された内容
Sat.d.h. (トーク | 投稿記録)
Sat.d.h. (トーク | 投稿記録)
44行目:
</pre>
 
== ページの一部をトランスクルージョンする方法 ==
==How to transclude a portion of a page==
Sometimes you will not want transclude a full page all together, examine ページ全体をトランスクルージョンしたくないときがときにはあるでしょう。[[:en:Page:Popular Science Monthly Volume 25.djvu/169]]. When two chapters or logical sections appear on the same page, instead of the entire page you need a way to transclude only the relevant parts of the page into the main presentation space. The example page from above presents as をご覧ください。2つの章または論理的節が同じページに現れるときは、標準プレゼンテーション空間にページ全体ではなく関連箇所のみをトランクルージョンする必要があります。上の例示ページは[[:en:Popular Science Monthly/Volume 25/June 1884/Modes of Reproduction in Plants]]. This is accomplished using のようになります。これは[[:mw:Extension:Labeled Section Transclusion|Labeled Section Transclusion]] (LST、ラベル付き段落の参照読み込み). The section breaks are marked with anchors in the によって実現されます。節の区切りは''Page:'' namespace. Then only the relevant part of the page, rather than the entire page, is called for during transclusion.名前空間内のアンカーによって印づけられます。それによりページの関連箇所がトランスクルージョン時に呼び出されます。
 
===Adding section labels===
To mark sections in the scan (''Page:'' namespace), insert the following syntax into the typed proofreading text at the start of every new section:
 
=== 節にラベルを付ける ===
スキャン(''Page:'' 名前空間)内の節に印を付けるには、校正中の文章において以下の構文を各々の新しい節の開始部分に挿入してください:
<code><nowiki>## label ##</nowiki></code>
 
Alternatively you can use start あるいは、文章の個々の箇所を<code>&lt;section begin="label" /></code> and end <code>&lt;section end="label" /></code> labels at the respective places in the text.で始めることもできます。
 
'''Note''':