Template:Transclude list
- Exempli gratia (e.g.), usually read out in English as "for example"
- .example, reserved as a domain name that may not be installed as a top-level domain of the Internet
- example.com, example.net, example.org, and example.edu: second-level domain names reserved for use in documentation as examples
- HMS Example (P165), an Archer-class patrol and training vessel of the Royal Navy
| This template is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome. |
Transclude list transcludes one bulleted or numbered list from the source page, disregarding the rest. It is designed for cases when a list has a sublist defined on another page.
This template returns the first list on a page, or the nth with |list=n. A list is one or more adjacent lines, each beginning with * or #.
For the match (see Module:String#match):
- source is the transcluded text of the entire page, plus a trailing newline and space (to terminate any list at end of page)
- pattern is:
- start of string or a newline (see %f and %z in mw:LUAREF)
- * or # followed by any text (non-greedy, may include newlines) – this is the returned value
- newline
- any character except * or # (a second newline also matches)
For example, a list of people sharing the surname Bernier may transclude contents listed on disambiguation page Melanie Bernier. That reduces maintenance effort and facilitates consistency between pages.
Usage
{{ Transclude list | SourcePageName | list=Number }}
Parameters
The template requires one parameter: the name of the page to be transcluded. Include a namespace where necessary. It accepts one optional named parameter: list=n to return the nth list rather than the first.
TemplateData
TemplateData for Transclude list
Transclude list transcludes a list from another page
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The name of the page to be transcluded
| Page name | required |
| List | list | Serial number of the list to be transcluded
| Number | optional |
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.