临床试验是什么意思| 为什么指甲有竖纹| pda医学上是什么意思| 儿童胃肠型感冒吃什么药| 脑门发黑是什么原因| 梦见骑自行车是什么意思| 肾宝片是什么| 经常抠鼻子有什么危害| 什么牛奶最好| zeesea是什么牌子| 做颈动脉彩超挂什么科| 别人梦见我死了是什么意思| 积液是什么原因造成的| 吃什么能缓解孕吐| 覆盆子有什么功效| 甘薯是什么| 修成正果是什么意思| 大虾炒什么菜好吃| 一个月一个太念什么| 脚起皮是什么原因| 梦见挖红薯是什么意思| 引力的本质是什么| 手足口病什么症状| 头颅mri是什么检查| 潮起潮落是什么意思| 拉伸有什么好处| 吃什么可以流产| 胃溃疡适合吃什么食物| 会阴是什么部位| 蛋白粉什么时候吃最好| 全血粘度低切偏高是什么意思| 舌裂是什么原因造成的| 4月份是什么星座| 新生儿上户口需要什么资料| 你什么都没看见| 卵巢钙化灶是什么意思| cbs是什么意思| 好文采是什么意思| 姓黑的都是什么族| 疟疾病是什么病| 人心隔肚皮什么意思| 吃什么容易胖| 口周皮炎用什么药膏| 刺猬喜欢吃什么食物| 6月13日是什么日子| 肠镜检查挂什么科室| 以下是什么意思| 心率低有什么危害| 海灵菇是什么| 糖尿病人早餐吃什么| 物质是什么| 什么鸣什么盗| 梦见偷桃子是什么意思| 双侧瞳孔缩小见于什么| 老年人骨质疏松吃什么钙片好| 木五行属什么| 小孩子上户口需要什么证件| 吃避孕药有什么副作用| 走马观花的走什么意思| 胳肢窝痒是什么原因| 国家的实质是什么| 什么叫败血症| 腰间盘突出挂什么科室| ige是什么| 喉咙痛上火吃什么药效果最好| 1977年属蛇是什么命| 刺猬的刺有什么作用| 紫色搭配什么颜色| 什么解酒| 滇是什么意思| 男士吃什么壮阳最厉害| 为情所困是什么意思| 禾字加一笔是什么字| 后羿是一个什么样的人| 郁是什么意思| 怎么看微信好友什么时候加的| 藏红花是什么| 什么茶| 高危型hpv66阳性是什么意思| 射精什么意思| 打呼噜吃什么药最管用| 痛风都有什么症状| 2月4日什么星座| 吃什么会拉肚子| 冻顶乌龙茶属于什么茶| gfr是什么意思| 舌裂纹是什么原因| 胆的作用及功能是什么| 3.2号是什么星座| 肝郁脾虚是什么意思| 变色龙形容什么样的人| 什么情况下吃救心丸| 疏肝解郁是什么意思| 眼睛蒙蒙的是什么原因| 8月8号什么星座| 眼睛干涩用什么眼药水好| TA什么意思| 什么补血最快| 圆脸适合什么发型女| 借您吉言什么意思| 火钳刘明什么意思| 干细胞有什么作用| 头痛吃什么药| 绿色加蓝色是什么颜色| 高处不胜寒的胜是什么意思| 口腔上火是什么原因| 腮腺炎是什么原因引起的| 1994年五行属什么| 6月19日是什么日子| 什么洗衣液是中性的| 有什么好看的古装剧| 舌苔黄厚是什么原因| ug什么意思| 神经性耳鸣有什么症状| 反哺是什么意思| 内膜回声欠均匀是什么意思| 飞蚊症用什么药| 一月来两次月经是什么原因| 下野是什么意思| 子鼠是什么意思| 伤口结痂为什么会痒| 什么虫咬了起水泡| 德国用什么货币| 女无是什么字| ct和拍片有什么区别| 叶酸偏高有什么影响| 梦到狗是什么意思| 喝酒对身体有什么危害| 成人感冒挂什么科| 女朋友的妹妹叫什么| 什么花不能浇硫酸亚铁| 紫癜是什么病 严重吗| 水潴留是什么意思| 手抖是什么毛病| 10.21是什么星座| 狗能吃什么水果| 维纳斯是什么意思| 县人武部政委什么级别| 手抖是什么病的症状| 吃什么丰胸效果好又快| 血栓吃什么药最好| 紧急避孕药什么时候吃最好| 梦见头上长虱子是什么意思| 1954年出生属什么| 热得直什么| 吃人肉会得什么病| 舌苔厚白湿气重吃什么药| 嗓子干痒吃什么药| 为什么订婚后容易分手| 1月21号是什么星座| 吃什么会食物中毒| 肺与大肠相表里是什么意思| 燕窝什么季节吃最好| hpa是什么病| 辰时是什么时候| 钡餐是什么| 经期头疼吃什么药效果最好| 摸摸头是什么意思| 陀飞轮是什么意思| 阿拉伯人属于什么人种| 97年五行属什么| 肌底液是干什么用的| 智齿吃什么消炎药| 嗓子发炎吃什么消炎药| 什么是免疫力| 什么是妈妈臀| 老是腹泻是什么原因导致的| 如字五行属什么| 耳石症是什么意思| 沈阳六院主要治什么病| 黄斑病变是什么引起的| 磨牙缺什么| 豆乳是什么| 什么闪烁| 清官是什么意思| 黄精是什么| 衪是什么意思| 小肚子鼓鼓的什么原因| 扶正固本是什么意思| 怀孕查甲功是什么意思| 素毛肚是什么做的| 儿童肠胃感冒吃什么药效果好| 膝盖响是什么原因| lhrh是什么激素| 霜降是什么时候| 粘人是什么意思| 是什么结构| 变爻是什么意思| 吃什么补肾壮阳最快速| 锦纶氨纶是什么面料| 九月底是什么星座| 鸽子咕咕叫是什么意思| 房间为什么有蟑螂| 大象吃什么食物| 孕妇吃海参对胎儿有什么好处| 走路快的人是什么性格| 湦是什么意思| 小孩吐奶是什么原因| 脱发严重应该去医院挂什么科| 肺门不大是什么意思| 速度等于什么| 痛经什么感觉| 七月五号是什么星座| 2005属什么| 天蝎女跟什么星座最配| 牙杀完神经为什么还疼| 7月25日是什么星座| 柱镜度数是什么意思| 10点半是什么时辰| 童子是什么| 明天什么节| 励志是什么意思| 过奖是什么意思| 小腿前面的骨头叫什么| 红枣和什么不能一起吃| 什么牌子的洗发水好| 什么然泪下| 久站腿肿是什么原因引起的| 卤米松软膏主治什么| 舌苔厚黄是什么病| 10点是什么时辰| 扫兴是什么意思| 报仇是什么意思| 杓是什么意思| 牙疼吃什么药| 卵圆孔未闭是什么病| 脾虚湿盛吃什么中成药| 寄生虫长什么样| r13是什么牌子| 马子是什么意思| 武则天墓为什么不敢挖| 喝酸奶有什么好处| 大便粘便池是什么原因| 虚岁24岁属什么生肖| 内讧是什么意思| 小淋巴结是什么意思| 肾亏吃什么药最好| 外公的妈妈叫什么| 脚肿是什么原因引起的| 口干是什么病的前兆| 人乳头瘤病毒51型阳性是什么意思| 血脂高喝什么茶好| 为什么微信附近的人看不到我| 腿抽筋是什么原因造成的| 什么品牌的卫浴好| 喝杨梅酒对身体有什么好处| 什么使我快乐| iu什么意思| 得艾滋病的前兆是什么| 不想长胡子有什么办法| 3月23是什么星座| 气血不足吃什么中药| 中成药是什么意思| 1月11日是什么星座| 尿黄是什么原因引起的男性| 福禄寿的禄是什么意思| 冰岛说什么语言| 出虚汗是什么原因| levis是什么牌子| 九月六号是什么星座| 人大常委会副主任是什么级别| 肚脐眼红是什么原因| 黄喉是什么| 孩子睡觉流口水是什么原因| 百度Jump to content

车讯:自主轻奢第一步 广州车展Wey品牌新车图

From Wikisource
Transclusion
百度 还要指出的是,在改革开放过程中,我们既强调始终坚持党的领导,又探索党的领导方式和执政方式的创新,提出党与政府、市场、社会之间要形成新型领导关系。

Shortcut:
H:TRANS
Help:Transclude

This page helps users "transclude" proofread text from the workspace (the Index and Page namespaces) to the mainspace, where it can read by Wikisource users.

Transclusion displays the contents found on another page without having to copy-paste nor synchronize any later changes. It is most commonly used to group text into logical and reasonably sized chunks—most frequently as chapters or sections. Examine the transcluded text at The Wind in the Willows (1913)/Chapter 1 and compare with some of the source text found at Page:Wind in the Willows (1913).djvu/19. As the individual pages from Index:Wind in the Willows (1913).djvu were saved in the "Page:" namespace, they populated into the chapters of the book through transclusion. Creating readable sections from scanned pages is the most common use of transclusion on Wikisource.

This help page first examines the most common methods of transclusion, this should be enough to help you manage your first texts. Next the page discusses more advanced and uncommon uses for transclusion which can stretch the digital text beyond familiar boundaries. And finally, it examines the full functionality of the two tranclusion methods. If you still have unanswered questions or any problems using transclusion, please post at the Scriptorium or at Scriptorium (Help). Someone there will do their best to help you!

How to transclude full pages

[edit]

You will most often be transcluding many pages together from the Page: namespace into the main presentation space of the wiki—as you saw at The Wind in the Willows (1913)/Chapter 1. There are three methods which can perform full-page transclusion. The <pages/> function is preferred, while the {{Page}} template and the direct transclusion of a page from the page namespace also work but are discouraged. Most of the time, the <pages/> tag will be the best method of transcluding, but you may still run across the older template method when editing existing texts.

Where the pages to be transcluded would be placed inside another tag such as a <ref></ref> pair, then the Magic word #tag:pages should be used instead, with the relevant parameters translated accordingly.

The syntax for <pages/> is as follows:

<pages index="file name.djvu" from=x to=y />
  • "file name.djvu" is replaced with the exact name of the Index you are working with (do not include the "Index:" prefix).
  • The number after the slash (/) following the file name of the first page you wish to transclude is "x".
  • The number after the slash (/) following the file name of the final page you wish to transclude is "y".

Example

To display what is transcluded at The Wind in the Willows (1913)/Chapter 5 you would type:

<pages index="Wind in the Willows (1913).djvu" from=133 to=161 />

How to transclude a portion of a page

[edit]

Shortcut:
H:LST

Sometimes you will not want transclude a full page all together, examine 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 Popular Science Monthly/Volume 25/June 1884/Modes of Reproduction in Plants. This is accomplished using 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

[edit]

To mark sections in the scan (Page: namespace), insert the following syntax into the typed proofreading text at the start of every new section[1]:

## label ##

Alternatively you can use start <section begin="label" /> and end <section end="label" /> labels at the respective places in the text.

Note:

  • Section tags are recommended to be wrapped in quotes "label" to avoid ambiguity.
  • These are just free text labels, however, making labels contextual to the page can have advantages.
  • Use of letters and numbers is usually a recommendation, and other extended characters may cause some issues when transcluding.
  • Labels need to be unique on a page if they are referred to in a <pages/> tag, otherwise it can't be determined which of the identically-named sections should be used.
  • If you are using <poem> markers, please make sure to open and close them inside the sections, or else section transcluding will not work properly.

Transcluding to main namespace (file-based indexes)

[edit]

The following applies to "file-based" indexes (ones that use DJVU or PDF files)

When the section ends part-way through a page

[edit]

An extra parameter, tosection, is required in <pages> to end the transclusion at the anchor. The syntax is as follows:

<pages index="file name.djvu" from=x to=y tosection="label" />
  • file name.djvu is replaced with the exact name of the file you are working with. Do not include the "Index:" prefix.
  • The number after the slash (/) following the file name of the first page you wish to transclude is x
  • The number after the slash (/) following the file name of the final page you wish to transclude is y.
  • label is replaced with the name of the anchor you inserted.

Example

To display what is transcluded at Popular Science Monthly/Volume 25/June 1884/The Sins of Legislators II you would type:

<pages index="Popular Science Monthly Volume 25.djvu" from=155  to=169 tosection=E169 />

Handling spaces and punctuation in attribute values (the bit after the equals signs) is as usual for HTML:

  • If the value of any attribute contains a space, wrap the whole value in straight quotes (either single or double).
  • If the value contains a double quote, wrap the whole thing in single quotes: index='"The Mummy" Volume 1.djvu'
  • If the value contains a single quote, wrap in double quotes: index="'Tis Sixty Years Since.djvu"
  • If the value contains both single and double quotes, wrap in double quotes and escape the double quotes in the value with &quot;, like this: index="'Tis Sixty Years &quot;Since&quot;.djvu"

When the section begins part-way through a page

[edit]

To begin the first page of a chapter or section at the anchor, a fromsection parameter is needed. Follow this pattern:

<pages index="file name.djvu" from=x to=y fromsection="label" />

Example

To display what is trancluded at Popular Science Monthly/Volume 25/June 1884/Modes of Reproduction in Plants you would type:

<pages index="Popular Science Monthly Volume 25.djvu" from=169 fromsection=B169 to=180 />

When the section begins and ends part-way through a page

[edit]

If a section begins part way through one page and finishes part way through another, then both fromsection and tosection parameters may need to be used at once:

<pages index="file name.djvu" from=x to=y fromsection="label" tosection="label"/>

Note, the "from" and "to" section names do not have to be the same. It is common for them to be the same, but not required.

Example

To display the sections used at "Bibliography of Chess Periodicals":

<pages index="Notes and Queries - Series 7 - Volume 12.djvu" from=150 to=151 fromsection="ContributionChessBiblio" tosection="ContributionChessBiblio" />

When the section begins and ends on the same page

[edit]

To transclude only a single section on a single page, you can use the include and onlysection parameters:

<pages index="file name.djvu" include=X onlysection="label" />

Example

For example, just the contents on Page:Notes and Queries - Series 7 - Volume 12.djvu/149 can be transcluded with:

<pages index="Notes and Queries - Series 7 - Volume 12.djvu" include=149 onlysection=s1 />

Transcluding every other page

[edit]

To transclude every other page (e.g. for a document with single-sided leaves), you can use the step parameter:

<pages index="file name.djvu" from=X to=Y step=2 />

Example

For example, pages 6, 8, 10, 12 can be transcluded like this:

<pages index="Notes and Queries - Series 7 - Volume 12.djvu" from=6 to=12 step=2 />

Transcluding irregular sets of pages

[edit]

The include parameter can take a comma-separated list of page numbers, as well as page ranges in the format X-Y.

<pages index="file name.djvu" include="A,B,C,X-Y" />

Example

For example, pages 6, 7, 8, 9, 10 and 42 can be transcluded like this:

<pages index="Notes and Queries - Series 7 - Volume 12.djvu" include="6-10,42" />

fromsection and tosection also work with include: they apply, as normal, to the first and last pages.

Transcluding to main namespace (image-based indexes)

[edit]

For "image-based" indexes (i.e. ones constructed from a list of individual pages), only from and to are accepted by the <pages /> tag: include and exclude cannot be used (because filenames can include , and -). fromsection and tosection also work.

Also, the pages are referred to by their title, and not by their position in the index.

Example

For example, to transclude the title page of Index:Fourth Folio (position #9):

<pages index="Fourth Folio" from="Fourth Folio Miami University 009.jpg" to="Fourth Folio Miami University 009.jpg"/>

Transcluding sections without the page tag

[edit]

Use of the <pages .../> tag as above is the preferred way to transclude sections of pages. However, this tag does not work on other Page: pages or in the Index namespace. On these pages, you can use Labeled Section Transclusion (LST) directly to transclude a section:

In this case, the following format can be used:

  • {{#section:PageTitle|sectionA}}
  • PageTitle is replaced with page you wish to transclude from (including the Page: namespace and /# numeric suffix as necessary)
  • sectionA is the section you wish to transclude.

Deprecated method using {{Page}}

Another, deprecated, method is to use the {{page}} template, You may see this in some older works, but generally this template should no longer be used.

Use the {{Page}} template as follows, replacing djvu with the scan file name and # with the page number:

  • {{Page|djvu/#|section=sectionA}}

How to place images with transcluded text

[edit]

The preferred means of placing a picture or other image in the main pagespace is to upload the cropped image to Wikimedia Commons as a separate picture, for example as a png or jpeg file.

  • [[File:Title and number and subject.png|frameless|center]]

The page image could also be displayed in the book's Wikisource mainspace like at Personal Recollections of Joan of Arc/Book I/Chapter 2, using:

  • [[File:Personal_Recollections_of_Joan_of_Arc.djvu|page=27|right|thumbnail|200px|{{uc|The Fairy Tree}}]]

Advanced usage

[edit]

Transclusion can also be used to produce alternative displays of text without having to repeat the proofreading and validation. Celtic Fairy Tales/Guleesh presents the story of Guleesh as published in Celtic Fairy Tales. It shows the preceding and following stories from that publication and also has a link to the foreword and commentary by the editor. Alternatively Guleesh presents the same text as a stand-alone work. Presenting suitable titles outside of the editions they may have been collected is not a necessary task any more than it is necessary to present a famous essay as a subpage of the magazine it happened to be printed in. However, both are possible by transcluding the same validated text. The consensus has been to allow individual editors to use whichever style they like inclusively.

Using the <pages/> function

[edit]

Most of the time, the <pages/> tag will be the best method of transcluding. There is only one required parameter, which is index=. This field must always be supplied or nothing happens. The exact pattern to use is as follows: <pages index="file name.djvu"/> where the name file name.djvu is just a placeholder for whatever file you have used when proofreading.

Where the pages to be transcluded would need to be placed inside another a tag such as a <ref></ref> pair, then the Magic word #tag:pages should be used instead, with the relevant parameters translated accordingly. The parameters themselves have the same values and effects.

Try it out with a real file name: Copy

<pages index="Wind in the Willows (1913).djvu"/>

into here and save. There is one other way to type this and have the same result. Try out <pages index=Wind_in_the_Willows_(1913).djvu/>. This works just the same. The important thing to know is that <pages index=Wind in the Willows (1913).djvu/> will not work. If you use any spaces in the field, then you must also surround the field with quotation marks ("), or it will not work.

While you always must supply the index= field, if you do not add any other parameters this syntax will only transclude the index of the file. Whenever you also supply some of the optional parameters, the index will be superseded by your other commands. Some of these optional parameters must be paired together in order to work. The numbers used in these fields are the titular number after the / in the Page: namespace. The optional parameters are as follows:

  • from= (paired with to=) to supply the number of the first page to be transcluded
  • to= (paired with from=) to supply the number of the last page to be transcluded
  • fromsection= (paired with from=/to= or include= or exclude= ) to supply the initial anchor on the first page of the section.
    The named section and any subsequent sections on the first page will be transcluded, all sections will be transcluded from the other pages
  • tosection= (paired with from=/to= or include= or exclude=) to supply the final anchor on the last page of the section
    The named section and any previous sections on the last page will be transcluded, all sections will be transcluded from the other pages
  • onlysection= (paired with from=/to= or include= or exclude=) to supply the anchor used to mark off a section for transclusion
    Only the named section will be transcluded, from all pages
  • step= (paired with from=/to= or include= or exclude=) to supply a incremental number where every x page will be transcluded.
    Transclude every other page by increments of n. By example : <pages from="1" to="10" step="2" /> show the 1st, 3rd, 5th, 7th and 9th pages.
  • include provides a list of one or more pages
    This allows a more flexible list. For example : <pages include="2-5,9" /> show the 2nd, 3rd, 4th, 5th and 9th pages.
    This is often used to transclude a single page, or a single section of a single page along with onlysection
  • exclude removes pages that would otherwise be included
    For example : <pages from=1 to=10 exclude="2-5,9" /> show the 1st, 6th, 7th, 8th and 10th pages.
  • header=1
    Generates and inserts a {{header}} at the top of the page, using the information from the Index page. See mw:Help:Extension:ProofreadPage/2013_draft#Headers_and_Navigation for more details. This is an alternative to adding a manual header.

You can use all the attributes on the same tag. For example <pages from="1" to="10" include="31" exclude="2-4" step="2" /> will show 1st, 5th, 7th, 9th and 31st pages.

Note: Good practice says that attributes within the <pages> tag should be quoted. It is important to not have unquoted empty attributes within tags, so please either quote empty attributes, or remove the unneeded optional attributes.

Considerations for Transcluded content

[edit]

Certain mark-up (like table Syntax) must be entirely balanced across the Body sections of the pages transcluded. This either means that the markup or (rarer raw HTML used) must either be contained entirely within a single body or the approaches recommended at Help:Page breaks utilised.

Layout

[edit]

See Help:Layout.

A Working, though deprecated Alternative

[edit]

This is an alternative method, but should not be used unless there is a very good reason for not using the <pages/> tag.

The syntax for {{Page}} is as follows:

{{Page|file name.djvu/x|num=z}}
  • "file name.djvu" is replaced with the exact name of the file you are working with.
  • The number after the slash (/) following the file name of the page you wish to transclude is "x".
  • The original corresponding page number from the scanned volume is "z".
  • Note this can only transclude a single page at a time

Example

To display what is transcluded at The Wind in the Willows (1913)/Chapter 5 you would type:

{{Page|Wind in the Willows (1913).djvu/133|num=113}}
{{Page|Wind in the Willows (1913).djvu/134|num=114}}
{{Page|Wind in the Willows (1913).djvu/135|num=115}}
... 
{{Page|Wind in the Willows (1913).djvu/161|num=141}}

Footnotes

[edit]
  1. This syntax uses the EasyLST gadget to simplify the syntax. This gadget is enabled by default.

See also

[edit]
全会是什么意思 胡子为什么长得快 吃什么食物对头发好 sa是什么 手麻抽筋是什么原因引起的
9月9日是什么星座 长期便秘是什么原因引起的 五常是什么 8月15是什么星座 什么是墨菲定律
程五行属什么 4.22是什么星座 上嘴角有痣代表什么 静待花开的前一句是什么 下线是什么意思
蛇的贵人是什么生肖 嘴巴长疱疹是什么原因 什么是粳米 负距离接触是什么意思 甲亢是一种什么病严重吗
摩什么接什么hcv9jop2ns7r.cn 酱油和生抽有什么区别hcv8jop7ns0r.cn 梦见自己掉了两颗牙齿是什么意思hcv9jop2ns8r.cn 1978年五行属什么hcv8jop4ns3r.cn 药物流产吃什么药hcv9jop1ns9r.cn
头一直摇晃是什么病hcv7jop6ns9r.cn 喝什么缓解痛经最有效dayuxmw.com 次第花开是什么意思hcv9jop1ns2r.cn 菠萝蜜和什么不能一起吃hcv9jop3ns0r.cn 什么是性侵hcv8jop9ns2r.cn
翻墙软件是什么hcv7jop9ns7r.cn 阴囊湿疹用什么药效果最好hcv8jop5ns7r.cn 哺乳期吃避孕药对孩子有什么影响hcv8jop0ns4r.cn 第二性征是什么意思hcv7jop6ns0r.cn 8月15日是什么星座hcv8jop1ns4r.cn
未见卵黄囊是什么意思hcv7jop6ns5r.cn 窦性心律不齐是什么原因引起的hcv9jop5ns4r.cn 什么是柏拉图式的爱情hcv9jop3ns0r.cn 大条是什么意思zsyouku.com mac是什么意思啊hcv8jop3ns4r.cn
百度