<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACitation_mode%2Fdoc</id>
	<title>Module:Citation mode/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACitation_mode%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Citation_mode/doc&amp;action=history"/>
	<updated>2026-10-31T20:53:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Module:Citation_mode/doc&amp;diff=111542&amp;oldid=prev</id>
		<title>Wikipedia&gt;Daask: +Category:Templates based on the Citation/CS1 Lua module</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Citation_mode/doc&amp;diff=111542&amp;oldid=prev"/>
		<updated>2025-01-18T17:59:17Z</updated>

		<summary type="html">&lt;p&gt;+&lt;a href=&quot;/w/index.php?title=Category:Templates_based_on_the_Citation/CS1_Lua_module&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Templates based on the Citation/CS1 Lua module (page does not exist)&quot;&gt;Category:Templates based on the Citation/CS1 Lua module&lt;/a&gt;&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;
{{High use}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function is intended to be used in {{para|[[Help:Citation Style 1#csdoc mode|mode]]}} for templates which wrap other citation templates. It outputs its argument unless {{tl|CS1 config}} configures a page-wide mode on the current page, in which case it outputs nothing. The effect of this is that templates invoking this module do not set a mode, allowing the parent template to obey the page-wide mode set in {{tl|CS1 config}}.&lt;br /&gt;
&lt;br /&gt;
Wrapper templates should not attempt to access {{tl|CS1 config}} directly, because this would cause them to be incorrectly added to [[:Category:CS1 maint: overridden setting]].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Citation mode|main|&amp;lt;var&amp;gt;mode&amp;lt;/var&amp;gt;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:returns empty if {{tl|CS1 config}} mode is set on page, otherwise returns mode argument.&lt;br /&gt;
&lt;br /&gt;
== Tests ==&lt;br /&gt;
Because the behavior of this module depends on global read-only state, tests are split between two files:&lt;br /&gt;
* The tests without {{tl|CS1 config}} being used are [[Module:Citation mode/testcases|here]], with results [[Module talk:Citation mode/testcases|here]].&lt;br /&gt;
* The tests with {{tl|CS1 config}} being used are [[Module:Citation mode/testcases2|here]], with results [[Module talk:Citation mode/testcases2|here]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{slink|Help:Citation Style 1#csdoc mode}}&lt;br /&gt;
* {{slink|Help talk:Citation Style 1/Archive 95#CS1 wrapper templates using &amp;quot;mode&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Templates based on the Citation/CS1 Lua module]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Daask</name></author>
	</entry>
</feed>