Template:Tpogc

{{#switch:{{lc:{{{color|cyan}}}}}
 * cyan={{Var|k|{{#expr:{{{target|0}}}/9}}}}

{{#ifexpr:{{{target|0}}}/15 = floor({{{target|0}}}/15) |{{Var|k|{{#expr:{{{target|0}}}/15}}}} {{Var|i|1}} |   {{#ifexpr:{{{target|0}}}/6 = floor({{{target|0}}}/6) |{{#expr:{{{target|0}}}/6}} {{Var|i|2}} |Q
 * magenta=

{{#ifexpr:{{{target|0}}}/5 = floor({{{target|0}}}/5) |{{#expr:{{{target|0}}}/5}} {{Var|i|1}} |{{#ifexpr:{{{target|0}}}/8 = floor({{{target|0}}}/8) |{{#expr:{{{target|0}}}/8}} {{Var|i|2}} |{{#ifexpr:{{tpogc/2|{{{target|0}}}/3-1}}=1 |{{Var|k|{{#expr:{{{target|0}}}/3-1}} {{Var|m|1}} |{{#ifexpr:{{tpogc/2|{{{target|0}}}/3-2}} |{{Var|k|{{#expr:{{{target|0}}}/3-2}} {{Var|m|2}} |{{#ifexpr:{{tpogc/2|{{{target|0}}}/3-3}} |{{Var|k|{{#expr:{{{target|0}}}/3-3}} {{Var|m|3}} |{{#ifexpr:{{tpogc/2|{{{target|0}}}/3-4}} |{{Var|k|{{#expr:{{{target|0}}}/3-4}} {{Var|m|4}} |{{#ifexpr:{{tpogc/2|{{{target|0}}}/3-5}} |{{Var|k|{{#expr:{{{target|0}}}/3-5}} {{Var|m|5}} |{{Var|k|{{#expr:{{{target|0}}}/3-6}} {{Var|m|6}} }}           }}          }}        }}      }} {{Var|i|3}} }} }} }}{{#ifeq:{{#var:k}}
 * yellow=
 * Q
 * A red triangle and an indigo square.

|cyan=A blue {{tpogc/1|{{#var:k}}}} and a green {{tpogc/1|{{#var:k}}}}.
 * {{#switch:{{lc:{{{colour|cyan}}}}}

|magenta={{#switch:{{#var:i}} |1=A red {{tpogc/1|{{#var:k}}}} and a violet {{tpogc/1|{{#expr:2*

{{#var:k}}}}}}.

|2=A red {{tpogc/1|{{#var:k}}}} and a blue {{tpogc/1|{{#var:k}}}}. }}

|yellow={{#switch:{{#var:i}} |1=A red {{tpogc/1|{{#var:k}}}} and a green {{tpogc/1|{{#var:k}}}}.

|2=A green {{tpogc/1|{{#var:k}}}} and an orange {{tpogc/1|{{#expr:2*

{{#var:k}}}}}}.

|3=A yellow {{tpogc/1|{{#var:k}}}} and a yellow {{tpogc/1|{{#var:m}}}}. }} }} {{tpogc }}
 * colour=
 * target=