Transclusion

Transclusion is a way to use content from one electronic document, in another document without having to copy the content from one to the other. If the original…

Transclusion is a way to use content from one electronic document, in another document without having to copy the content from one to the other. If the original content is changed, the change will automatically show in the article that is using the transcluded content. The two documents are connected by hypertext. The word is a combination of trans, meaning across and inclusion, so it means including something that is brought across from another place.

On Wikipedia, this is usually used for putting content from a special article called a template into other articles, but the method also works for other kinds of article.

When you put the double braces {{ }} around a page name, the program reading the wiki source code and converting it to HTML so it will display on a browser. Software will see that you wish to add the content of the named page at that point, and will go read it, convert it to html and add it at that point before continuing with converting the rest of the source code of the original page to html. That is transclusion. You refer to the page to be transcluded by naming it in braces, which is called referencing.

There are ways to exclude parts of the transcluded page, and ways to transclude part of a page, like just a section, but that does not change the basic concept.

A transcluded page may also include transclusions of other pages. This is called nesting. It can be done a moderate number of times, with one page transcluding others, which may each tranclude others, again and again. There is a limit to how many levels of transclusion are allowed to prevent accidental or intentional infinite loops, which will cause the translating program to get stuck.


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.

  1. 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:
  2. 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.
  3. 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.
  4. 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.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.