Template:Theme image: Difference between revisions
Template page
More actions
Created page with "<noinclude>{{protected template}} </noinclude><span class="theme-image-light">[[File:{{{light}}}|{{{size|300px}}}]]</span><span class="theme-image-dark">[[File:{{{dark}}}|{{{size|300px}}}]]</span><noinclude> {{documentation}} </noinclude>" |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>{{protected template}} | <noinclude>{{protected template}} | ||
</noinclude><span class="theme-image-light">[[File:{{{light}}}|{{{size|300px}}}]]</span><span class="theme-image-dark">[[File:{{{dark}}}|{{{size|300px}}}]]</span><noinclude> | </noinclude><span class="theme-image theme-image-light {{{class|}}}">[[File:{{{light}}} | ||
|{{{light-size|{{{size|300px}}}}}} | |||
|alt={{{light-alt|{{{alt|}}}}}} | |||
|{{#if:{{{light-nolink|{{{nolink|}}}}}} | |||
|link= | |||
|{{#if:{{{light-link|{{{link|}}}}}} | |||
|link={{{light-link|{{{link|}}}}}} | |||
}} | |||
}} | |||
|{{{light-options|{{{options|}}}}}} | |||
|{{{light-caption|{{{caption|}}}}}} | |||
]]</span><span class="theme-image theme-image-dark {{{class|}}}">[[File:{{{dark}}} | |||
|{{{dark-size|{{{size|300px}}}}}} | |||
|alt={{{dark-alt|{{{alt|}}}}}} | |||
|{{#if:{{{dark-nolink|{{{nolink|}}}}}} | |||
|link= | |||
|{{#if:{{{dark-link|{{{link|}}}}}} | |||
|link={{{dark-link|{{{link|}}}}}} | |||
}} | |||
}} | |||
|{{{dark-options|{{{options|}}}}}} | |||
|{{{dark-caption|{{{caption|}}}}}} | |||
]]</span><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 13:21, 11 August 2026
[[File:{{{light}}} |300px |alt= | | | ]][[File:{{{dark}}} |300px |alt= | | | ]]
This documentation is transcluded from Template:Theme image/doc.
This template renders two versions of an image: one for light themes and one for dark themes. It relies on the theme-image-light and theme-image-dark CSS classes.
Usage
{{Theme image
| light = Logo light.svg
| dark = Logo dark.svg
| size = 300px
| alt = Description
}}
Parameters
light- image file shown in light mode
dark- image file shown in dark mode
size- image width (default 300px)
alt- alt text
link- link target;
link=disables the link