<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mineinabyss.com/w/Module:Transcluder/doc/history?feed=atom</id>
	<title>Module:Transcluder/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mineinabyss.com/w/Module:Transcluder/doc/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.mineinabyss.com/w/Module:Transcluder/doc/history"/>
	<updated>2026-05-22T00:56:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.mineinabyss.com/index.php?title=Module:Transcluder/doc&amp;diff=2651&amp;oldid=prev</id>
		<title>NIK220V: Created page with &quot;The main entry point for modules is the get method.  get( &#039;Title&#039; ) – Get the requested page (exact same result as normal transclusion) get( &#039;Title#&#039; ) – Get the lead section of the requested page get( &#039;Title#Section&#039; ) – Get the requested section or ‎&lt;section&gt; tag (includes any subsections) ‎&lt;noinclude&gt; and ‎&lt;onlyinclude&gt; tags are handled the usual way and there&#039;s also an optional second parameter to exclude various elements from the result:  get( &#039;Title#Sec...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.mineinabyss.com/index.php?title=Module:Transcluder/doc&amp;diff=2651&amp;oldid=prev"/>
		<updated>2026-03-09T20:47:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The main entry point for modules is the get method.  get( &amp;#039;Title&amp;#039; ) – Get the requested page (exact same result as normal transclusion) get( &amp;#039;Title#&amp;#039; ) – Get the lead section of the requested page get( &amp;#039;Title#Section&amp;#039; ) – Get the requested section or ‎&amp;lt;section&amp;gt; tag (includes any subsections) ‎&amp;lt;noinclude&amp;gt; and ‎&amp;lt;onlyinclude&amp;gt; tags are handled the usual way and there&amp;#039;s also an optional second parameter to exclude various elements from the result:  get( &amp;#039;Title#Sec...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The main entry point for modules is the get method.&lt;br /&gt;
&lt;br /&gt;
get( &amp;#039;Title&amp;#039; ) – Get the requested page (exact same result as normal transclusion)&lt;br /&gt;
get( &amp;#039;Title#&amp;#039; ) – Get the lead section of the requested page&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039; ) – Get the requested section or ‎&amp;lt;section&amp;gt; tag (includes any subsections)&lt;br /&gt;
‎&amp;lt;noinclude&amp;gt; and ‎&amp;lt;onlyinclude&amp;gt; tags are handled the usual way and there&amp;#039;s also an optional second parameter to exclude various elements from the result:&lt;br /&gt;
&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = 0 } ) – Exclude all files&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = 1 } ) – Exclude all files except the first&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = 2 } ) – Exclude all files except the second&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;1,2&amp;#039; } ) – Exclude all files except the first and second&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;1-3&amp;#039; } ) – Exclude all files except the first, second and third&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;1,3-5&amp;#039; } ) – Exclude all files except the first, third, fourth and fifth&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = -2 } ) – Exclude the second file&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;-2,3&amp;#039; } ) – Exclude the second and third files&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;-1,3-5&amp;#039; } ) – Exclude the first, third, fourth and fifth files&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;A.png&amp;#039; } ) – Exclude all files except A.png&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;-A.png&amp;#039; } ) – Exclude A.png&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;A.png, B.jpg, C.gif&amp;#039; } ) – Exclude all files except A.png, B.jpg and C.gif&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;-A.png, B.jpg, C.gif&amp;#039; } ) – Exclude A.png, B.jpg and C.gif&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = { [1] = true, [3] = true } } ) – Exclude all files except the first and third&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = { [1] = false, [3] = false } } ) – Exclude the first and third files&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = { [&amp;#039;A.png&amp;#039;] = false, [&amp;#039;B.jpg&amp;#039;] = false } } ) – Exclude A.png and B.jpg&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;.+%.png&amp;#039; } ) – Exclude all files except PNG files (see Lua patterns)&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { files = &amp;#039;-.+%.png&amp;#039; } ) – Exclude all PNG files&lt;br /&gt;
The very same syntax can be used to exclude many other elements:&lt;br /&gt;
&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { sections = 0 } ) – Exclude all subsections&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { sections = &amp;#039;History, Causes&amp;#039; } ) – Exclude all subsections except &amp;#039;History&amp;#039; and &amp;#039;Causes&amp;#039;&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { lists = 1 } ) – Exclude all lists except the first&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { tables = &amp;#039;stats&amp;#039; } ) – Exclude all tables except the one with id &amp;#039;stats&amp;#039;&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { paragraphs = &amp;#039;1-3&amp;#039; } ) – Exclude all paragraphs except the first, second and third&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { references = 0 } ) – Exclude all references&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { categories = &amp;#039;0&amp;#039; } ) – Exclude all categories&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { templates = &amp;#039;-.+infobox&amp;#039; } ) – Exclude infobox templates&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { parameters = &amp;#039;image&amp;#039; } ) – Exclude all parameters from all templates except the one named &amp;#039;image&amp;#039;&lt;br /&gt;
Options can be combined at will. For example:&lt;br /&gt;
&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { sections = 0, files = 1, paragraphs = &amp;#039;1-3&amp;#039; } ) – Exclude all subsections, all files except the first, and all paragraphs except the first three&lt;br /&gt;
You can also get only some elements like so:&lt;br /&gt;
&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { only = &amp;#039;files&amp;#039; } ) – Get only the files&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { only = &amp;#039;lists&amp;#039;, lists = 1 } ) – Get only the first list&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { only = &amp;#039;tables&amp;#039;, tables = &amp;#039;stats&amp;#039; } ) – Get only the table with id &amp;#039;stats&amp;#039;&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { only = &amp;#039;paragraphs&amp;#039;, paragraphs = &amp;#039;1,3-5&amp;#039; } ) – Get only the first, third, fourth and fifth paragraph&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { only = &amp;#039;templates&amp;#039;, templates = &amp;#039;Infobox&amp;#039; } ) – Get only the infobox&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { only = &amp;#039;parameters&amp;#039;, parameters = &amp;#039;abstract&amp;#039;, references = 0 } ) – Get only the parameter called &amp;#039;abstract&amp;#039; and remove all the references from it&lt;br /&gt;
The output can be further modified with a few special options:&lt;br /&gt;
&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { noFollow = true } ) – Don&amp;#039;t follow redirects&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { linkBold = true } ) – Link the bold title or synonym near the start of the text&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { noBold = true } ) – Remove bold text&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { noComments = true } ) – Remove comments&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { noLinks = true } ) – Remove all links&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { noSelfLinks = true } ) – Remove self links&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { noNonFreeFiles = true } ) – Remove non-free files (currently identified by having the words &amp;#039;non-free&amp;#039; in their local description or at Commons)&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { noBehaviorSwitches = true } ) – Remove behavior switches such as __NOTOC__&lt;br /&gt;
get( &amp;#039;Title#Section&amp;#039;, { fixReferences = true } ) – Prefix reference names with &amp;#039;Title &amp;#039; to avoid name conflicts when transcluding and rescue references defined outside the requested section to avoid undefined reference errors&lt;br /&gt;
Besides the get method, the module exposes several other methods to get specific parts of the wikitext. This allows other modules to combine elements in more advanced ways.&lt;/div&gt;</summary>
		<author><name>NIK220V</name></author>
	</entry>
</feed>