Template:ColorGallery/Color: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><span style="text-align:left; float:left; overflow:hidden; margin:1px; border-style:ridge"><div>[[File:{{#var:filePrefix}}{{{1}}}.{{#var:imageFileTypes}} | {{{width|{{#var:imagewidths}}}}}x{{{height|{{#var:imageheights}}}}}px | {{{text|Color {{{1}}}}}}]]</div><div style="line-height:1; text-align:center; font-size:{{{textsize|{{#var:textsize}}}}}em; width:{{{textwidth|{{#var:textwidth}}}}}px; height:28px">{{{text|Color {{{1}}}}}}</div></span></includeonly><noinclude>__NOTOC__==Usage==
<includeonly><span style="text-align:left; float:left; overflow:hidden; margin:1px; border-style:double"><div>[[File:{{#var:filePrefix}}{{{1}}}.{{#var:imageFileTypes}} | {{#var:imagewidths}}x{{#var:imageheights}}px | {{{text|Color {{{1}}}}}}]]</div><div style="line-height:1; text-align:center; width:{{#var:textwidth}}px; height:28px">{{{text|Color {{{1}}}}}}</div></span></includeonly><noinclude>__NOTOC__==Usage==
To be used exclusively with [[Template:ColorGallery]].
To be used exclusively with [[Template:ColorGallery]].
===Template Parameters===
===Template Parameters===
*'''(any)''': The number this color is supposed to be.
*'''unlabeled parameter''': The number this color is supposed to be.
*'''text''': The text listed below the color. (Default:Color [number])
*'''text''': The text listed below the color. (Default:Color [number])
==Example==
==Example==

Revision as of 11:33, 21 December 2019

Usage

To be used exclusively with Template:ColorGallery.

Template Parameters

  • unlabeled parameter: The number this color is supposed to be.
  • text: The text listed below the color. (Default:Color [number])

Example

Source code:

{{ColorGallery | filePrefix=Ein| imagewidths=220 |imageheights=220 | colors=
 {{ColorGallery/Color|1}}
 {{ColorGallery/Color|2}}
 {{ColorGallery/Color|3}}
 {{ColorGallery/Color|4}}
 {{ColorGallery/Color|5}}
 {{ColorGallery/Color|6}}
 {{ColorGallery/Color|7}}
 {{ColorGallery/Color|8}}
 {{ColorGallery/Color|9}}
 {{ColorGallery/Color|10}}
 {{ColorGallery/Color|11}}
 {{ColorGallery/Color|12}}
 {{ColorGallery/Color|13}}
 {{ColorGallery/Color|14}}
 {{ColorGallery/Color|15}}
 {{ColorGallery/Color|16}}
 {{ColorGallery/Color|17}}
 {{ColorGallery/Color|18}}
 {{ColorGallery/Color|19}}
 {{ColorGallery/Color|20}}
 {{ColorGallery/Color|21}}
 {{ColorGallery/Color|22}}
 {{ColorGallery/Color|23}}
 {{ColorGallery/Color|24}}
 {{ColorGallery/Color|25}}
 {{ColorGallery/Color|26}}
 {{ColorGallery/Color|27}}
 {{ColorGallery/Color|28}}
 {{ColorGallery/Color|29}}
 {{ColorGallery/Color|30}}
}}

Output:

Color 1
Color 1
Color 2
Color 2
Color 3
Color 3
Color 4
Color 4
Color 5
Color 5
Color 6
Color 6
Color 7
Color 7
Color 8
Color 8
Color 9
Color 9
Color 10
Color 10
Color 11
Color 11
Color 12
Color 12
Color 13
Color 13
Color 14
Color 14
Color 15
Color 15
Color 16
Color 16
Color 17
Color 17
Color 18
Color 18
Color 19
Color 19
Color 20
Color 20
Color 21
Color 21