<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransclude_selected_excerpt%2Fdoc</id>
	<title>Template:Transclude selected excerpt/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransclude_selected_excerpt%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Transclude_selected_excerpt/doc&amp;action=history"/>
	<updated>2026-08-18T03:48:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Transclude_selected_excerpt/doc&amp;diff=171148&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Template Doc Creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Transclude_selected_excerpt/doc&amp;diff=171148&amp;oldid=prev"/>
		<updated>2023-08-12T21:02:17Z</updated>

		<summary type="html">&lt;p&gt;Template Doc Creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Lua|Module:Excerpt/portals}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Transclude selected excerpt&amp;#039;&amp;#039;&amp;#039; transcludes the lead of an article as an excerpt.  It is designed for use in [[WP:portal|portal]]s.  It returns the text of an article up to but excluding the first header, after removing:&lt;br /&gt;
*initial templates such as infoboxes, hatnotes and article improvement tags&lt;br /&gt;
*noinclude sections&lt;br /&gt;
*references and footnotes&lt;br /&gt;
*images, unless specifically retained&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
&amp;lt;pre style=&amp;quot;overflow:auto&amp;quot;&amp;gt;{{Transclude selected excerpt | 1= | 2= | selected= | paragraphs= | files= | fileargs= | more= | errors= }}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
The template accepts any number of page names as unnamed parameters.  One of them is selected using the &amp;lt;code&amp;gt;selected=&amp;lt;/code&amp;gt; parameter, and the page with that title is transcluded.  (If the selected page is invalid, the template will choose again.) Include a namespace where necessary.  There are no other positional parameters, but there is one mandatory named parameter:&lt;br /&gt;
*An integer representing the parameter number of the selected article, such as &amp;lt;code&amp;gt;selected=3&amp;lt;/code&amp;gt;.  Ideally the integer will range from 1 to the number of articles named, but the number will be normalised into that range if necessary.  {{tl|Date and time templates}} or [[mw:Help:Extension:ParserFunctions##time|time parser functions]] may be useful, for example &amp;lt;code&amp;gt;selected={&amp;lt;nowiki/&amp;gt;{#time:n}}&amp;lt;/code&amp;gt; to use the month number (1–12).&lt;br /&gt;
There are some optional named parameters:&lt;br /&gt;
*A list of paragraphs such as &amp;lt;code&amp;gt;paragraphs=1,3-5&amp;lt;/code&amp;gt;; the default is all paragraphs.&lt;br /&gt;
*A list of file (image) numbers such as &amp;lt;code&amp;gt;files=1&amp;lt;/code&amp;gt;; the default is no images.  Non-free images are removed.&lt;br /&gt;
*Arguments to pass to File: such as &amp;lt;code&amp;gt;fileargs=left&amp;lt;/code&amp;gt; to move images to the left; the default is none.&lt;br /&gt;
*&amp;lt;code&amp;gt;errors=&amp;lt;/code&amp;gt; to allow Lua error messages to appear in the output&lt;br /&gt;
*&amp;lt;code&amp;gt;showall=&amp;lt;/code&amp;gt; to show all articles simultaneously&lt;br /&gt;
*&amp;lt;code&amp;gt;list=&amp;lt;/code&amp;gt; to show a list of articles &amp;lt;small&amp;gt;{{warnsign| coding not compatible with mobile versions of Wikipedia causing display and accessibility problems}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;paragraphs=&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;files=&amp;lt;/code&amp;gt; each accept a comma-separated list containing numbers and/or number ranges in the format min-max.  Alternatively, &amp;lt;code&amp;gt;files=&amp;lt;/code&amp;gt; can accept the name of a single image, e.g. &amp;lt;code&amp;gt;files=My image file.jpg&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;showall=&amp;lt;/code&amp;gt; shows all articles simultaneously.  This option is intended for a subpage aimed at editors as well as readers.  Using this template on a subpage with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;noinclude&amp;gt;|showall=&amp;lt;/noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and transcluding the subpage on a main page will show all excerpts on the subpage but only one on the main page, without repeating the template and its arguments.&lt;br /&gt;
&lt;br /&gt;
As an alternative, the article names can be given as named parameters.  In this case, there will be no unnamed parameters.  The desired article is selected using its parameter name.  For example, &amp;lt;code&amp;gt;|selected={&amp;lt;nowiki/&amp;gt;{#time:Md}}|Jan01=New Year&amp;#039;s Day|Jan02=1971 Ibrox disaster|Jan03=...&amp;lt;/code&amp;gt; could display an appropriate anniversary, without having to calculate how many days have elapsed in a (possibly leap) year.  (#time:Md evaluates to a string representing the current date, e.g. &amp;quot;{{#time:Md}}&amp;quot;.)&lt;br /&gt;
{{#section:Template:Transclude lead excerpt/doc|Miscellaneous options}}&lt;br /&gt;
&lt;br /&gt;
===Page options===&lt;br /&gt;
{{#section-h:Template:Transclude lead excerpt/doc|Page options}}&lt;br /&gt;
===See also===&lt;br /&gt;
*{{tl|Transclude lead excerpt}}: specifies the article explicitly&lt;br /&gt;
*{{tl|Transclude linked excerpt}}: chooses the article randomly from those linked from a page&lt;br /&gt;
*{{tl|Transclude list item excerpt}}: chooses the article randomly from those listed on a page&lt;br /&gt;
*{{tl|Transclude random excerpt}}: chooses the article randomly from a list&lt;br /&gt;
&lt;br /&gt;
{{Portal templates navbox}}&lt;br /&gt;
&lt;br /&gt;
===TemplateData===&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Transclude selected excerpt transcludes the lead of an article chosen from a list as an excerpt&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;1&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The name of a page which may be transcluded&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Aviation, 1=Aviation&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The name of another page which may be transcluded.  Similarly for optional parameters 3, 4, ...&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Egypt, 2=Egypt&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;selected&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Selected&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Number of the article to be transcluded&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;selected=3&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;random article&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;paragraphs&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Paragraphs&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Numbers of the paragraphs to be transcluded, as a comma-separated list containing numbers and/or number ranges in the format min-max&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;paragraphs=1,3-5&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;all paragraphs&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;files&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Files&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Numbers of the images to be transcluded, as a comma-separated list containing numbers and/or number ranges in the format min-max&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;files=1,3-5&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no files&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;fileargs&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;FileArgs&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Arguments to pass to File:&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;fileargs=left&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no arguments&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;more&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;More&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Text for trailing link to the entire article. Note: more=no suppresses the link.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;more=Read the full article&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no arguments&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;errors&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Errors&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Allow Lua error messages to appear in the output?&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;errors=true&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;false&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;showall&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ShowAll&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Show all excerpts simultaneously?&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;showall={{clear}}{{hr}}&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no arguments&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;list&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;List&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Show a list of excerpts?&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;list=List of articles&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no list&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
[[Category:Article shared content templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>