Template:Transcluded section
Jump to navigation
Jump to search
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This is a hatnote template that indicates the source page of a section transclusion and provides edit and history links for the source page (but does not actually transclude the section).
Usage
{{Transcluded section|source= |part= }}
Parameter definitions
- source (or the first unnamed parameter, or may be numbered as 1) – A required parameter that lists the page name that you are transcluding from.
- part – An optional parameter. If
|part=yes
(or an other positive value supported by{{YesNo}}
), the hatnote text changes from "This section..." to "Part of this section...". Use this when the transcluded material is only part of a section on the target page. - title – An optional parameter. If
|title=
is used then the text used in the parameter will be displayed rather than the title of the article from|1=
or|source=
.
Examples
{{Transcluded section|source=Road}}
{{Transcluded section|source=Highway|part=anything other than a positive value}}
All of the following produce the same result:
{{Transcluded section|source=Highway|part=yes}}
{{Transcluded section|source=Highway|part=YES}}
{{Transcluded section|source=Highway|part=y}}
{{Transcluded section|source=Highway|part=True}}
{{Transcluded section|source=Highway|part=1}}
See also
- Help:Transclusion#Selective transclusion – how to transclude one or more sections of an article or project page into another
- Pages that link to "Template:Transcluded section" (articles) (unsorted)
- {{Transcluding article}} – transcludes one or more entire pages
- {{Excerpt}} – transcludes a lead section or section and adds an appropriate hatnote