Template:ColorGallery/Color: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style=" | <includeonly><!-- | ||
// Create a span that floats left | |||
--><span style="float:left; border:1px #aaa solid; margin-right:-1px;"><!-- | |||
-->{{#ifeq:{{#var:showtext}}|yes|<!-- | |||
--><div class="color-gallery-header" style="width:{{#var:imagewidths}}px; height:{{#var:textHeights}}; display:flex; justify-content:center; align-items:center; flex-wrap:wrap;">{{#if:{{{text|}}} | {{{text}}} | Color {{{1}}} }}</div>}}<!-- | |||
--><div {{#ifeq:{{#var:forceImageHeights}}|yes|style="height:{{#var:imageheights}}px;"}}><!-- | |||
-->[[File:<!-- | |||
-->{{#if: {{{filename|}}} |<!-- | |||
// If specific filename is present, set that file as display | |||
-->{{{filename}}} |<!-- | |||
// If no file name, use variables given to create filename | |||
-->{{#var:filePrefix}}{{{1}}}{{#var:fileSuffix}}.{{{fileTypeOverride|{{#var:imageFileTypes}}}}}<!-- | |||
-->}}<!-- | |||
--> | center | {{#var:imagewidths}}x{{#var:imageheights}}px | {{{text|Color {{{1}}}}}} ]]<!-- | |||
--></div><!-- | |||
--></span></includeonly><noinclude> | |||
See [[Template:ColorGallery]] for documentation. | |||
[[Category:Universal]] | |||
[[Category:Templates]] | |||
}}</ | |||
{{ | |||
</noinclude> | </noinclude> |
Latest revision as of 23:10, 8 May 2021
See Template:ColorGallery for documentation.