Misplaced Pages

Template:Dark mode switch/doc

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Dark mode switch

This is the current revision of this page, as edited by Matrix (talk | contribs) at 18:49, 14 November 2024 (Normal usage). The present address (URL) is a permanent link to this version.

Revision as of 18:49, 14 November 2024 by Matrix (talk | contribs) (Normal usage)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Dark mode switch.
It may contain usage information, categories and other content that is not part of the original template page.
CSSThis template uses TemplateStyles:

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.

Usage

{{Dark mode switch|dark mode wikitext|light mode wikitext|suffix for captions}}

Example

Normal usage

{{Dark mode switch|]|]|logo}}

Show dark mode logoShow light mode logo


Note the light-coloured logo is used in dark mode, and vice versa.