This template should not be substituted. |
Transcludes a specified labelled section of the current page. This allows the same content to be used in multiple places in the page, while only needing to be maintained in one place.
Will not work on sub-pages (pages with a slash "/" in the title).
Example
editCode
edit<section begin=lorem/>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<section end=lorem/> <!--This section is transcluded elsewhere on this page-->
...
{{section transclude|lorem}} <!--Text from elsewhere on this page is transcluded here-->
Output
editLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
...
Template loop detected: Template:Section transclude
See also
edit- Help:Labeled section transclusion
- {{Excerpt}} – for transcluding sections from another article