<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Help%3ALabeled_section_transclusion</id>
	<title>Help:Labeled section transclusion - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Help%3ALabeled_section_transclusion"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Help:Labeled_section_transclusion&amp;action=history"/>
	<updated>2026-05-04T15:19:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Help:Labeled_section_transclusion&amp;diff=22753&amp;oldid=prev</id>
		<title>Richardpruen: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Help:Labeled_section_transclusion&amp;diff=22753&amp;oldid=prev"/>
		<updated>2022-01-02T17:23:00Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:23, 2 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key uk_vapewiki:diff:1.41:old-22752:rev-22753 --&gt;
&lt;/table&gt;</summary>
		<author><name>Richardpruen</name></author>
	</entry>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Help:Labeled_section_transclusion&amp;diff=22752&amp;oldid=prev</id>
		<title>Wikipedia&gt;Matthiaspaul: /* See also */ +link</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Help:Labeled_section_transclusion&amp;diff=22752&amp;oldid=prev"/>
		<updated>2021-09-21T08:41:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; +link&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wikipedia how-to|Help:LST}} &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Labeled Section Transclusion&amp;#039;&amp;#039;&amp;#039; ([[mw:Extension:Labeled Section Transclusion|LST]]) offers two basic ways to specify a &amp;quot;section&amp;quot; of a [[help:page|page]] for [[Wikipedia:transclusion|transclusion]]. One way uses the page name and a &amp;#039;&amp;#039;&amp;#039;heading&amp;#039;&amp;#039;&amp;#039; (section title, as seen on the rendered page). The other way enables an arbitrary &amp;quot;section&amp;quot; for transclusion, but it requires markup first in order to add the &amp;#039;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Three functions can transclude a section from a given [[wp:pagename|page name]].&lt;br /&gt;
* &amp;lt;kbd&amp;gt;{&amp;lt;nowiki /&amp;gt;{#section&amp;#039;&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;page&amp;amp;nbsp;name&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/kbd&amp;gt; (a labeled section)&lt;br /&gt;
* &amp;lt;kbd&amp;gt;{&amp;lt;nowiki /&amp;gt;{#section&amp;#039;&amp;#039;&amp;#039;-x:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;page&amp;amp;nbsp;name&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/kbd&amp;gt; (all except that labeled section)&lt;br /&gt;
* &amp;lt;kbd&amp;gt;{&amp;lt;nowiki /&amp;gt;{#section&amp;#039;&amp;#039;&amp;#039;-h:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;page&amp;amp;nbsp;name&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;heading&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/kbd&amp;gt; (a normal section)&lt;br /&gt;
&lt;br /&gt;
Note that there are also equivalent names for these functions, the base names being &amp;lt;code&amp;gt;#lst&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;#lstx&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;#lsth&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To prepare an arbitrary &amp;quot;section&amp;quot; for a labeled section transclusion, mark it with &amp;#039;&amp;#039;begin&amp;#039;&amp;#039; and &amp;#039;&amp;#039;end&amp;#039;&amp;#039; attributes inside {{tag|section|s}} tags that contain your &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
:{{xtag|section|single|params=begin=&amp;#039;&amp;#039;label&amp;#039;&amp;#039;}} and {{xtag|section|single|params=end=&amp;#039;&amp;#039;label&amp;#039;&amp;#039;}} &lt;br /&gt;
&lt;br /&gt;
Compared to LST transclusion, [[WP:Transclusion#Partial transclusion|partial transclusion]] markup cannot be &amp;#039;&amp;#039;labeled&amp;#039;&amp;#039;, and thus the source page cannot have one set of its sections transcluded to one page while having also a different set for another page.  A page marked up with partial transclusion tags only, will always transclude the same.  But LST and partial transclusion can work together on the same page.&lt;br /&gt;
&lt;br /&gt;
These LST functions take additional parameters as explained below. {{section link||Example pages}} provides search links for the articles that currently employ LST so you can see how they are using it.&lt;br /&gt;
&lt;br /&gt;
== Functions summary ==&lt;br /&gt;
&lt;br /&gt;
This section summarizes the three parser functions in the Labeled Section Transclusion extension.&lt;br /&gt;
&lt;br /&gt;
{{break}}&lt;br /&gt;
Syntax: {&amp;lt;nowiki /&amp;gt;{&amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039;: &amp;#039;&amp;#039;fullpagename&amp;#039;&amp;#039; | &amp;#039;&amp;#039;section&amp;#039;&amp;#039; | &amp;#039;&amp;#039;range&amp;#039;&amp;#039;/&amp;#039;&amp;#039;change&amp;#039;&amp;#039;}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=2| Parameter!!Parsing entity it identifies&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|[[wp:Fullpagename|Fullpagename]]&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Source page&amp;#039;&amp;#039;&amp;#039;. The only required argument. Type it in, or use [[help:magic words#Variables|variables like {&amp;lt;nowiki /&amp;gt;{FULLPAGENAME}}]], (but not [[help:link#Subpage links|subpage linking with &amp;lt;kbd&amp;gt;../&amp;lt;/kbd&amp;gt;]]).&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| Section&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Label&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; (&amp;quot;labeled section&amp;quot;), or &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;heading&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; (section title), to transclude. Optional parameter. If a label, it must have been added and saved first.  &lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Range|| &amp;#039;&amp;#039;&amp;#039;Final section&amp;#039;&amp;#039;&amp;#039; in a contiguous series of headings or labels to transclude. Optional. &lt;br /&gt;
* &amp;lt;kbd&amp;gt;#section&amp;lt;/kbd&amp;gt; transcludes the final section.  &lt;br /&gt;
* &amp;lt;kbd&amp;gt;#section-h&amp;lt;/kbd&amp;gt; does not transclude the final section. &lt;br /&gt;
* &amp;lt;kbd&amp;gt;#section-x&amp;lt;/kbd&amp;gt; does not take a range.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|Change|| &amp;#039;&amp;#039;&amp;#039;Replacement wikitext.&amp;#039;&amp;#039;&amp;#039; Only &amp;lt;kbd&amp;gt;#lstx&amp;lt;/kbd&amp;gt; can rewrite a labeled section during transclusion. Optional.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It is not possible to pass [[Help:Template#Parameters|template parameters]] to the transcluded section or page but the code of the page can use [[Help:Magic words|magic words]] like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{PAGENAME}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to test where it is and behave differently.&lt;br /&gt;
&lt;br /&gt;
{{break}}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ style=&amp;quot;text-align: left;&amp;quot; |Behaviors&lt;br /&gt;
|-&lt;br /&gt;
! width=6em| Parser Function !! Alias !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#lst&amp;lt;/kbd&amp;gt; || &amp;lt;kbd&amp;gt;#section&amp;lt;/kbd&amp;gt; || Transclude a &amp;#039;&amp;#039;label&amp;#039;&amp;#039; found inside {{tag|section|s}} tags. Honors transclusion tags. Default is entire page. If the label is not found, transclude nothing.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#lstx&amp;lt;/kbd&amp;gt; || &amp;lt;kbd&amp;gt;#section-x&amp;lt;/kbd&amp;gt; || Transclude entire page, but &amp;#039;&amp;#039;exclude&amp;#039;&amp;#039; a label. Blind to headings.  Honors transclusion tags. Default is entire page.  If the label is not found, transclude entire page.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;kbd&amp;gt;#lsth&amp;lt;/kbd&amp;gt; || &amp;lt;kbd&amp;gt;#section-h&amp;lt;/kbd&amp;gt; || Transclude a &amp;#039;&amp;#039;heading&amp;#039;&amp;#039; (section title).  Blind to labels. &amp;#039;&amp;#039;Does not&amp;#039;&amp;#039; honor transclusion tags.{{sup|&amp;amp;dagger;}} Defaults to the lead section.   If the heading is not found, transclude nothing.&lt;br /&gt;
|}&lt;br /&gt;
:&amp;amp;dagger;{{spaces|2}}&amp;lt;kbd&amp;gt;#section-h&amp;lt;/kbd&amp;gt; makes its target look the same as its source. On the &amp;#039;&amp;#039;source&amp;#039;&amp;#039; page &lt;br /&gt;
:*&amp;amp;lt;noinclude&amp;gt; displays its content&lt;br /&gt;
:*&amp;amp;lt;onlyinclude&amp;gt; displays its content&lt;br /&gt;
:*&amp;amp;lt;[[wp:transclusion#Markup|includeonly]]&amp;lt;nowiki /&amp;gt;&amp;gt; &amp;#039;&amp;#039;does not&amp;#039;&amp;#039; display its content&lt;br /&gt;
:So &amp;lt;kbd&amp;gt;#section-h&amp;lt;/kbd&amp;gt; must not render {{tag|includeonly|o}} content on the &amp;#039;&amp;#039;target&amp;#039;&amp;#039; page.&lt;br /&gt;
&lt;br /&gt;
{{break}}&lt;br /&gt;
&lt;br /&gt;
LST {{xtag|section|s}} tags behavior:&lt;br /&gt;
* The &amp;#039;&amp;#039;end&amp;#039;&amp;#039; tag is not required.  When only a &amp;#039;&amp;#039;begin&amp;#039;&amp;#039; tag is found, it goes to the end of the page.&lt;br /&gt;
* The same label can mark several &amp;#039;&amp;#039;begin/end&amp;#039;&amp;#039; sections. A range is then everything from the first &amp;#039;&amp;#039;begin&amp;#039;&amp;#039; to last &amp;#039;&amp;#039;end&amp;#039;&amp;#039;. &lt;br /&gt;
* Different labels can overlap.  They can also nest.&lt;br /&gt;
* Cannot be placed by a transclusion, but instead must be present on the page as saved in the database. See {{section link||No template}} below. &lt;br /&gt;
&lt;br /&gt;
LST transclusion options:&lt;br /&gt;
* It can be [[help:preview|preview]]ed. &lt;br /&gt;
* The target page can be the source page &amp;#039;&amp;#039;itself&amp;#039;&amp;#039;.&lt;br /&gt;
* It can be substituted.  See {{section link||Substitution}} below.&lt;br /&gt;
&lt;br /&gt;
Standard syntax applies:&lt;br /&gt;
* Generous whitespace is allowed: &amp;lt;kbd&amp;gt;{{nowrap|{&amp;lt;nowiki /&amp;gt;{ {{spaces|1}}#lst:{{spaces|2}}&amp;#039;&amp;#039;namespace&amp;#039;&amp;#039;:{{spaces|2}}&amp;#039;&amp;#039;pagename&amp;#039;&amp;#039;{{spaces|2}}{{!}}{{spaces|2}}&amp;#039;&amp;#039;section&amp;#039;&amp;#039;{{spaces|2}}}}}}&amp;lt;/kbd&amp;gt;&lt;br /&gt;
* An unspaced : colon follows the parser function name.&lt;br /&gt;
* In tags no spaces around the = sign of the label (attribute): &amp;lt;kbd&amp;gt;begin=&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;lt;/kbd&amp;gt; &lt;br /&gt;
* In tags space is optional before the / slash: &amp;lt;kbd&amp;gt;&amp;amp;lt;section end=&amp;#039;&amp;#039;label&amp;#039;&amp;#039; /&amp;gt;&amp;lt;/kbd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Common usage errors.&lt;br /&gt;
* {{font color|red|Template loop detected:}} preview transcluding a transclusion in the saved version?&lt;br /&gt;
* Cite errors.  You must have the full definition of a [[WP:REFNAME|named reference]] on any page that this &amp;quot;multiply-cited-reference shortcut&amp;quot; is needed.&lt;br /&gt;
* To render transcluding footnotes, you must [[WP:Citing sources#How to create the list of citations|tag where they go on the page]].&lt;br /&gt;
&lt;br /&gt;
==Markup==&lt;br /&gt;
No markup of the source page is needed if only section titles are used to specify the transclusion.  This is the case with &amp;lt;kbd&amp;gt;#section-h&amp;lt;/kbd&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
For labeling a section for LST transclusion use the following markup. &lt;br /&gt;
&lt;br /&gt;
===Section marking===&lt;br /&gt;
Markup your section boundaries in the source page using two, singular, {{xtag|section|s}} tags; for example, to label a section &amp;quot;chapter1&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 {{tag|section|s|params=begin=chapter1}}this is a chapter{{tag|section|s|params=end=chapter1}}&lt;br /&gt;
&lt;br /&gt;
Note this is not normal opening-tag, closing-tag HTML. In HTML {{tag|section}} is invalid. This parser tag, {{tag|section|s}}, is incompatible with an HTML element because MediaWiki markup employs a unique parser tag, added just for the Labeled Section Transclusion extension. &lt;br /&gt;
&lt;br /&gt;
===Section transclusion===&lt;br /&gt;
Use the parser function &amp;lt;code&amp;gt;#section&amp;lt;/code&amp;gt; to transclude the section. For example, to transclude section labeled &amp;#039;&amp;#039;chapter1&amp;#039;&amp;#039; from a page called &amp;#039;&amp;#039;articleX&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#section:ArticleX|chapter1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transclude the page but exclude the section===&lt;br /&gt;
To transclude a page, but exclude a specified section, use the &amp;lt;code&amp;gt;#section-x&amp;lt;/code&amp;gt; parser function:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{#&amp;lt;/nowiki&amp;gt;section-x:&amp;#039;&amp;#039;fullpagename&amp;#039;&amp;#039;|&amp;#039;&amp;#039;label&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{#&amp;lt;/nowiki&amp;gt;section-x:&amp;#039;&amp;#039;fullpagename&amp;#039;&amp;#039;|&amp;#039;&amp;#039;heading&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
Optionally, you may add replacement text to the excluded section.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{#&amp;lt;/nowiki&amp;gt;section-x:&amp;#039;&amp;#039;fullpagename&amp;#039;&amp;#039;|&amp;#039;&amp;#039;label&amp;#039;&amp;#039;|&amp;#039;&amp;#039;replacement text&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{#section-x:articleX|chapter1|See chapter 1 in [[articleX]].}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The replacement text will appear in the area where the section is skipped (excluded).&lt;br /&gt;
&lt;br /&gt;
===Dealing with stray whitespace===&lt;br /&gt;
By default, &amp;lt;code&amp;gt;#section&amp;lt;/code&amp;gt; will include all the whitespace in the section, which can lead to issues if you&amp;#039;re trying to transclude the section into a different article. To solve this, make use of the fact that the {{pf|if}} parser function trims its inputs, e.g.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:1|{{#section:ArticleX|chapter1}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will get rid of both leading and trailing whitespace, and the article will render as intended. Because you are nesting templates, it will double the [[WP:PEIS|post-expand include size]] of the excerpt, which can present a problem on longer pages, so you may wish to edit the source page to wrap the content you want to include, without the whitespace, in {{tag|onlyinclude}} tags instead. You can also use the {{tl|trim}} template instead of {{pf|if|1}}, but because it is just a wrapper for the {{pf|if|1}} technique above, it results in a tripling of the post-expand include size.&lt;br /&gt;
&lt;br /&gt;
==Other functions==&lt;br /&gt;
===Discontiguous sections===&lt;br /&gt;
It is possible to have multiple sections with the same name; in this case, every section with that name will be included/excluded. This is especially useful to mark various discussions.&lt;br /&gt;
&lt;br /&gt;
===Section ranges===&lt;br /&gt;
These functions can transclude the whole page, so they have the two, optional argument to specify behaviours: 1) a name-tagged section or heading-title, 2) a range of such named section-tags or section titles, and 3) replacement content for a named section. &lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#section:articleX|chapter1|chapter3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; includes everything from the beginning of chapter 1 to the end of chapter 3. This allows using empty marker pairs to mark one end of the section, possibly in a template.&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#section-h:articleX|chapter1|chapter3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; includes content of chapter1, heading and content of chapter 2.&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#section-x:articleX|chapter1|chapter3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; replaces chapter1 heading and content with the word &amp;quot;chapter3&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Substitution===&lt;br /&gt;
Instead of transcluding every time, to &amp;quot;transclude&amp;quot; once (to copy), use [[help:substitution|substitution]]:&lt;br /&gt;
: &amp;lt;kbd&amp;gt;{&amp;lt;nowiki /&amp;gt;{subst:{&amp;lt;nowiki /&amp;gt;{#section...}}}}&amp;lt;/kbd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example to archive old [[Help:talk|talk]] on your talk page, you can copy it to an archive page, then delete it, all using LST:&lt;br /&gt;
# Put {{tag|section|s|params=begin=archive}} at the beginning of the section you want to archive and {{tag|section|s|params=end=archive}} at the end. (We use &amp;quot;archive&amp;quot; for the label, but any label will do.).  This section can be anywhere, and it can be multiple sections.&lt;br /&gt;
# Save those change to your talk page.&lt;br /&gt;
# Create a new archive page.  Put &amp;lt;kbd&amp;gt;{&amp;lt;nowiki /&amp;gt;{subst:#section:User talk:&amp;#039;&amp;#039;pagename&amp;#039;&amp;#039;|archive}}&amp;lt;/kbd&amp;gt;.&lt;br /&gt;
# Save that archive page.  The old talk is copied over to it. The transclusion disappears because it was substituted.&lt;br /&gt;
# Edit your talk page again.  Replace all the wikitext on the entire page with &amp;lt;kbd&amp;gt;{&amp;lt;nowiki /&amp;gt;{subst:#section-x:User talk:&amp;#039;&amp;#039;username&amp;#039;&amp;#039;|archive}}&amp;lt;/kbd&amp;gt;.  The &amp;#039;&amp;#039;database page&amp;#039;&amp;#039; will be transcluded, minus the exact same wikitext in the saved archive, and minus the section tags (which we had labeled &amp;quot;archive&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
When using substitution to transclude content on Wikipedia, please use the edit summary to apply [[Wikipedia:Copyrights#Reusers.27_rights_and_obligations|reusers&amp;#039; rights and obligations]].  This applies to any substantial content, and not just article contents.&lt;br /&gt;
&lt;br /&gt;
==No template==&lt;br /&gt;
&lt;br /&gt;
Currently, no template can facilitate this LST markup because it is necessary to use #tag in order to [[mw:Manual:Tag extensions#How do I render wikitext in my extension? | &amp;quot;preSaveTransform&amp;quot;]] magic words inside a tag of any kind.  For the proper attempt see (the non-functioning) {{tl|section}}.&lt;br /&gt;
&lt;br /&gt;
The only way to [[eval|evaluate]] template arguments &amp;#039;&amp;#039;inside a tag&amp;#039;&amp;#039; (because of the parsing order) is [[help:magic words#Formatting|#tag]]. LST would need (template) evaluation of the label as the section tag is generated: &amp;lt;code&amp;gt;{{&amp;amp;nbsp;#tag: section | {{{1}}} }&amp;lt;nowiki /&amp;gt;}&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
But #tag only produces [[XML]]-like (balanced, open-closed, start-end, pairs of) tags, while LST will use a singular, explicitly self closing, tag. So LST tags cannot be generated by any template. Compare actual (only in effect) output:&lt;br /&gt;
 &lt;br /&gt;
 {{#tag:section|&amp;#039;&amp;#039;content&amp;#039;&amp;#039;|begin=&amp;#039;&amp;#039;label&amp;#039;&amp;#039;}&amp;lt;nowiki /&amp;gt;} &amp;amp;rarr; &lt;br /&gt;
 {{ font color || yellow | &amp;amp;lt; }}section begin=&amp;#039;&amp;#039;label&amp;#039;&amp;#039;&amp;gt; &amp;#039;&amp;#039;content&amp;#039;&amp;#039; {{ font color || yellow | &amp;amp;lt;/}}section&amp;gt;  {{cross}}&lt;br /&gt;
&lt;br /&gt;
{{tracked|37256}}&lt;br /&gt;
with the requested output: &lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;section begin=&amp;#039;&amp;#039;label&amp;#039;&amp;#039; {{ font color || yellow | /&amp;gt; }} &amp;#039;&amp;#039;content&amp;#039;&amp;#039; &amp;amp;lt;section end=&amp;#039;&amp;#039;label&amp;#039;&amp;#039; {{ font color || yellow | /&amp;gt; }}&lt;br /&gt;
&lt;br /&gt;
== Example pages ==&lt;br /&gt;
&lt;br /&gt;
These are [[H:S|searches]] stored in a link:&lt;br /&gt;
* {{sl|insource:&amp;quot;section h&amp;quot; insource:/\#&amp;quot;section-h&amp;quot;/}} (Articles)&lt;br /&gt;
* {{sl|insource:section insource:/\{\{\#section/}} (Articles)&lt;br /&gt;
* {{sl|all: insource:&amp;quot;section x&amp;quot; insource:/\#&amp;quot;section-x&amp;quot;/}} (entire wiki)&lt;br /&gt;
* {{sl|insource:lst insource:/\#lst/}} (Articles)&lt;br /&gt;
* {{sl|insource:lsth insource:/\{\{\#lsth/}} (Articles)&lt;br /&gt;
* {{sl|all: insource:lstx insource:/\#lstx/}} (entire wiki)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Help:TRANSSECTION]]&lt;br /&gt;
* [[:mw:Extension:Labeled Section Transclusion]]&lt;br /&gt;
* [[Wikipedia:Cascading content]]&lt;br /&gt;
* {{tl|R}} - a referencing/citation template optionally taking advange of labeled section transclusion to mark context sections&lt;br /&gt;
&lt;br /&gt;
{{Wikipedia technical help|collapsed}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Wikipedia sections]]&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Matthiaspaul</name></author>
	</entry>
</feed>