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. |
This 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}}
Note the light-coloured logo is used in dark mode, and vice versa.