v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Colorramp"
Jump to navigation
Jump to search
(Initial test of color ramp for palette display - intending to extend to up to 9 colors) |
(More arguments) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#if: {{{1|}}} | <span style="color:{{{1}}}">█</span> }} | + | <includeonly>{{#if: {{{1|}}} | <span style="color:{{{1}}}">█</span> }}{{#if: {{{2|}}} | <span style="color:{{{2}}}">█</span> }}{{#if: {{{3|}}} | <span style="color:{{{3}}}">█</span> }}{{#if: {{{4|}}} | <span style="color:{{{4}}}">█</span> }}{{#if: {{{5|}}} | <span style="color:{{{5}}}">█</span> }}{{#if: {{{6|}}} | <span style="color:{{{6}}}">█</span> }}{{#if: {{{7|}}} | <span style="color:{{{7}}}">█</span> }}{{#if: {{{8|}}} | <span style="color:{{{8}}}">█</span> }}{{#if: {{{9|}}} | <span style="color:{{{9}}}">█</span> }} |
− | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Templates]][[Category:Coloring Templates]]</noinclude> | [[Category:Templates]][[Category:Coloring Templates]]</noinclude> |
Latest revision as of 02:16, 10 February 2025
(view - edit - history - purge) Documentation
Takes up to nine colors and creates a row of █ (block) characters in the specified order.
Examples:
{{Colorramp|{{fgcolor|4:0}}|{{fgcolor|4:1}}|{{fgcolor|6:1}}|{{fgcolor|2:1}}|{{fgcolor|3:1}}|{{fgcolor|1:0}}|{{fgcolor|1:1}}|{{fgcolor|5:0}}}} {{Colorramp|mediumvioletred|mediumvioletred|mediumpurple|midnightblue|midnightblue}} {{Colorramp|#02f908|#009e75|#e45bd9|#3f55c6|#635589}}
Output:
████████
█████
█████