Template:Section
| This template is currently non-functional due to T39256. It is kept for the potential of use. |
This template uses <section> tags to selectively transclude labeled sections of text from one article page into another. In this context, the term section does not refer to the standard ==Section header==. Instead, section refers to the portion of the source article that will be transcluded into the destination article.
A chosen section of text in the source article is wrapped inside {{section}} and given a label that identifies that section. In the destination article, {{section}} is placed where the source text, will go. This template includes the name of the source article and the label that identifies the selected text.
Usage
To define the section, use these parameters on the page to be transcluded from:
{{section|title=title |content=content}}
- title: Title of the section; must be unique on the page
- content: Content of the section
To transclude a section or range:
{{section|page=page |title=title }}
{{section|page=page |title=title |title_end=title_end}}
- page: Name of page transcluding from
- title: Title of the section
- title_end: Title of the end section
To transclude the entire page except for a section with optional text replacing the skipped sections:
{{section|pagex=pagex |title=title}}
{{section|pagex=pagex |title=title |text=text}}
- pagex: Name of page transcluding from
- title: Title of the section to be excluded
- text: Text replacing the skipped sections
Other options:
- anchor: Adds an HTML anchor and moves the page down 3 em so that any section heading shows
- Set
|anchor=titleto set the anchor to 'title'
See also
- {{Section link}}
- {{Excerpt}}
- {{R}} (A reference/citation template optionally taking advantage of sections to define its scope/context, i.e. which article contents are supported by the reference)
- Help:Labeled section transclusion
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.