Template:Flag-auto: Difference between revisions

From Polcompball Wiki
Jump to navigationJump to search
Content added Content deleted
m (Fixed a typo)
(Created page with "<includeonly>{| class="wikitable" style="text-align:center" |- ! colspan="2" | Color Name ! HEX ! RGB |- {{#if:{{{c1|}}}| {{!}} style="background:{{{h1}}}; width:1em" {{!}} {{...")
 
(5 intermediate revisions by 2 users not shown)
Line 58: Line 58:
{{!}} align="left" {{!}} {{{c8}}}
{{!}} align="left" {{!}} {{{c8}}}
{{!}} {{{h8}}}
{{!}} {{{h8}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h6}}}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h8}}}}}
}}
}}
|-
|-
Line 66: Line 66:
{{!}} {{{h9}}}
{{!}} {{{h9}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h9}}}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h9}}}}}
}}
|-
{{#if:{{{c10|}}}|
{{!}} style="background:{{{h10}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c10}}}
{{!}} {{{h10}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h10}}}}}
}}
|-
{{#if:{{{c11|}}}|
{{!}} style="background:{{{h11}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c11}}}
{{!}} {{{h11}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h11}}}}}
}}
|-
{{#if:{{{c12|}}}|
{{!}} style="background:{{{h12}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c12}}}
{{!}} {{{h12}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h12}}}}}
}}
|-
{{#if:{{{c13|}}}|
{{!}} style="background:{{{h13}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c13}}}
{{!}} {{{h13}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h13}}}}}
}}
|-
{{#if:{{{c14|}}}|
{{!}} style="background:{{{h14}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c14}}}
{{!}} {{{h14}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h14}}}}}
}}
|-
{{#if:{{{c15|}}}|
{{!}} style="background:{{{h15}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c15}}}
{{!}} {{{h15}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h15}}}}}
}}
|-
{{#if:{{{c16|}}}|
{{!}} style="background:{{{h16}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c16}}}
{{!}} {{{h16}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h16}}}}}
}}
|-
{{#if:{{{c17|}}}|
{{!}} style="background:{{{h17}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c17}}}
{{!}} {{{h17}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h17}}}}}
}}
|-
{{#if:{{{c18|}}}|
{{!}} style="background:{{{h18}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c18}}}
{{!}} {{{h18}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h16}}}}}
}}
|-
{{#if:{{{c19|}}}|
{{!}} style="background:{{{h19}}}; width:1em" {{!}}
{{!}} align="left" {{!}} {{{c19}}}
{{!}} {{{h19}}}
{{!}} {{#invoke:Hex2rgb|hex2rgb|{{{h19}}}}}
}}
}}
|}</includeonly>
|}</includeonly>

Latest revision as of 02:33, 25 June 2021


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
}}