Template:TitleTextColor/doc

From Brickipedia, the LEGO Wiki

This template is a critical component in the process of allocating alternative colors for set infoboxes.

Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the template sandbox or your user space.


This template is used to change the color of the title text in {{Set}} from black to white if the respective theme is listed in Brickipedia:Themes with white title text.

At a given time, this template can only handle a limited number of themes. If the the number of themes listed in Brickipedia:Themes with white title text exceeds the number of slots in the code of this template here, you have to expand it by adding new slots.

How to add new slots[edit source]

Replace the text "black" in the template code with this string:

{{#if:{{#pos:{{CamelCase|{{{Theme}}}}}| {{CamelCase|{{#explode:{{Brickipedia:Themes with white title text}}|/|new number}} }}}}|white|black}}

Be sure to enter the right number!

If you are not sure about this procedure, use the sandbox to conduct any experiments.