<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Template%3ADark_mode_switch%2Fdoc</id>
	<title>Template:Dark mode switch/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Template%3ADark_mode_switch%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Template:Dark_mode_switch/doc&amp;action=history"/>
	<updated>2026-04-29T13:50:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Template:Dark_mode_switch/doc&amp;diff=24637383&amp;oldid=prev</id>
		<title>imported&gt;Tactica: +When to use this template.</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Template:Dark_mode_switch/doc&amp;diff=24637383&amp;oldid=prev"/>
		<updated>2025-09-20T17:44:28Z</updated>

		<summary type="html">&lt;p&gt;+When to use this template.&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;
{{Uses TemplateStyles|Template:If dark/styles.css}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
This template detects whether it is being used with dark mode, and displays different content accordingly. This is useful when using logos, and the user may want both versions of the logo in dark mode.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;amp;#123;{Dark mode switch|&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;dark mode wikitext&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;light mode wikitext&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;suffix for captions&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
===Normal usage===&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Dark mode switch|[[File:Light logo of YouTube (2015-2017).svg|100px]]|[[File:Dark logo of YouTube (2015-2017).svg|100px]]|logo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{Dark mode switch|[[File:Light logo of YouTube (2015-2017).svg|100px]]|[[File:Dark logo of YouTube (2015-2017).svg|100px]]|logo}}&lt;br /&gt;
* [https://en.wikipedia.org/wiki/{{FULLPAGENAMEE}}?vectornightmode=1 view with dark mode]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/{{FULLPAGENAMEE}}?vectornightmode=0 view with light mode]&lt;br /&gt;
Note the light-coloured logo is used in dark mode, and vice versa.&lt;br /&gt;
&lt;br /&gt;
== When to use this template==&lt;br /&gt;
When dealing with simple images consisting of a single color on a transparent background where only the invert feature is required, using the &amp;lt;code&amp;gt;skin-invert&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;skin-invert-image&amp;lt;/code&amp;gt;) class is probably enough. As an example,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:Dark logo of YouTube (2015-2017).svg|100px|logo|class=skin-invert]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
renders&lt;br /&gt;
&lt;br /&gt;
[[File:Dark logo of YouTube (2015-2017).svg|100px|logo|class=skin-invert]]&lt;br /&gt;
&lt;br /&gt;
without the added burden of a specific template. See [[mw:Recommendations for night mode compatibility on Wikimedia wikis#Apply filters to dark images with transparent background|this topic]] on mediawiki.org for more info.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia templates that change text based on client state]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Tactica</name></author>
	</entry>
</feed>