Template:ColorGallery/Color: Difference between revisions
Jump to navigation
Jump to search
m (Added categories) |
m (Reformatting for readability and used class "color-gallery-header") |
||
Line 1: | Line 1: | ||
<includeonly><span style="float:left; border:1px #aaa solid; margin-right:-1px;">{{#ifeq:{{#var:showtext}}|yes|<div | <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;">{{{text|Color {{{1}}}}}}</div>}}<!-- | |||
--><div><!-- | |||
-->[[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}}.{{#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> |
Revision as of 12:18, 14 June 2020
See Template:ColorGallery for documentation.