Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 01:56, 23 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{tl|Dark mode invert}} inverts the color of the contents its given when dark mode is enabled. It uses <code>skin-invert</code> and <code>skin-invert-image</code>. == Usage == <code>{{((}}Dark mode invert|<'''''content'''''>{{))}}</code> == Parameters == * {{para|1}} - The content to invert when dark mode is enabled. * {{para|block}} - Set to yes to wrap the output with {{Tag|div}} instead of a {{Tag|span}}. * {{para|image}} - Set to yes to o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{Dark mode invert}} inverts the color of the contents its given when dark mode is enabled. It uses skin-invert and skin-invert-image.

Usage

{{Dark mode invert|<content>}}

Parameters

  • |1= - The content to invert when dark mode is enabled.
  • |block= - Set to yes to wrap the output with <div>...</div> instead of a <span>...</span>.
  • |image= - Set to yes to only invert images.

Example

Text

<span style="color:black;">{{Dark mode invert|I invert}} I do not</span>

I invert I do not

Icon

{{Dark mode invert|[[File:Rating-Christgau-dud.svg|20px]]}}

File:Rating-Christgau-dud.svg

Image with caption

{{Dark mode invert|[[File:Rating-Christgau-dud.svg|frame|Boom]]}}
File:Rating-Christgau-dud.svg
Boom
{{Dark mode invert|image=y|[[File:Rating-Christgau-dud.svg|frame|Boom]]}}
File:Rating-Christgau-dud.svg
Boom

Block

{{Dark mode invert|block=y|1=<div style="background:darkred;color:white;padding:4px;">I am block</div>}}
I am block