Template:Flag-auto: Difference between revisions
From Polcompball Wiki
Jump to navigationJump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
{{!}} {{{h1}}} |
{{!}} {{{h1}}} |
||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h1}}}}} |
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h1}}}}} |
||
}} |
|||
|- |
|||
{{#if:{{{c2|}}}| |
|||
{{!}} style="background:{{{c2}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c2}}} |
|||
{{!}} {{{h2}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h2}}}}} |
|||
}} |
|||
|- |
|||
{{#if:{{{c1|}}}| |
|||
{{!}} style="background:{{{c3}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c3}}} |
|||
{{!}} {{{h3}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h3}}}}} |
|||
}} |
|||
|- |
|||
{{#if:{{{c4|}}}| |
|||
{{!}} style="background:{{{c4}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c4}}} |
|||
{{!}} {{{h4}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h4}}}}} |
|||
}} |
|||
|- |
|||
{{#if:{{{c5|}}}| |
|||
{{!}} style="background:{{{c5}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c5}}} |
|||
{{!}} {{{h5}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h5}}}}} |
|||
}} |
|||
|- |
|||
{{#if:{{{c6|}}}| |
|||
{{!}} style="background:{{{c6}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c6}}} |
|||
{{!}} {{{h6}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h6}}}}} |
|||
}} |
|||
|- |
|||
{{#if:{{{c7|}}}| |
|||
{{!}} style="background:{{{c7}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c7}}} |
|||
{{!}} {{{h7}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h7}}}}} |
|||
}} |
|||
|- |
|||
{{#if:{{{c8|}}}| |
|||
{{!}} style="background:{{{c8}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c8}}} |
|||
{{!}} {{{h8}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h6}}}}} |
|||
}} |
|||
|- |
|||
{{#if:{{{c9|}}}| |
|||
{{!}} style="background:{{{c9}}}; width:1em" {{!}} |
|||
{{!}} align="left" {{!}} {{{c9}}} |
|||
{{!}} {{{h9}}} |
|||
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h9}}}}} |
|||
}} |
}} |
||
|}</includeonly> |
|}</includeonly> |
Revision as of 19:33, 4 January 2021
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
Description
To use this template, add the {{Flag-auto}} template and fill in the appropriate fields. Fields left blank will not appear in articles. This template uses Fandom's table syntax.
Syntax
{{Flag-auto |c1 = |h1 = |c2 = |h2 = |c3 = |h3 = |c4 = |h4 = |c5 = |h5 = |c6 = |h6 = |c7 = |h7 = |c8 = |h8 = |c9 = |h9 = |c10= |h10= }}
Sample output
Color Name | HEX | RGB | |
---|---|---|---|
Red | #FF0000 | 255, 0, 0 | |
Black | #202020 | 32, 32, 32 | |
White | #FFFFFF | 255, 255, 255 | |
Yellow | #FFFF00 | 255, 255, 0 | |
Green | #00FF00 | 0, 255, 0 | |
Blue | #0000FF | 0, 0, 255 |
{{Flag-auto |c1 = Red |h1 = #FF0000 |c2 = Black |h2 = #202020 |c3 = White |h3 = #FFFFFF |c4 = Yellow |h4 = #FFFF00 |c5 = Green |h5 = #00FF00 |c6 = Blue |h6 = #0000FF }}