Revision as of 11:39, 6 October 2024 editMatrix (talk | contribs)Extended confirmed users, Rollbackers, Template editors5,452 editsNo edit summary← Previous edit | Latest revision as of 18:43, 14 November 2024 edit undoMatrix (talk | contribs)Extended confirmed users, Rollbackers, Template editors5,452 editsNo edit summaryTags: Mobile edit Mobile web edit Advanced mobile edit | ||
Line 2: | Line 2: | ||
-->|{{Switcher<!-- | -->|{{Switcher<!-- | ||
-->|{{{1|]}}}<!-- | -->|{{{1|]}}}<!-- | ||
-->|Show dark {{{3|version of file}}}<!-- | -->|Show dark mode {{{3|version of file}}}<!-- | ||
-->|{{{2|]}}}<!-- | -->|{{{2|]}}}<!-- | ||
-->|Show light {{{3|version of file}}}<!-- | -->|Show light mode {{{3|version of file}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->|{{{2|]}}}<!-- | -->|{{{2|]}}}<!-- |
Latest revision as of 18:43, 14 November 2024
Show dark mode version of fileShow light mode version of file Template documentation[view] [edit] [history] [purge]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.
The above documentation is transcluded from Template:Dark mode switch/doc. (edit | history)Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Category: