Template:TextColor/doc

From DnD with Extra Tongues
Jump to navigation Jump to search

[[Category:{{#switch: Template | Template = Template | Module = Module | User = User | #default = Page }} documentation]]

Description
This template is used to color text easily.
Syntax
Type {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: TextColor | 0 | 1 }} | : || {{ #if: || Template }} }}:TextColor|{{ #ifeq: {{ #sub: TextColor | 0 | 1 }} | : | : }}{{ #ifeq: | Template | TextColor | TextColor }}]]{{ #if: color
 | |color }}{{ #if: text
 | |text }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} somewhere.
Sample output
{{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: TextColor | 0 | 1 }} | : || {{ #if: || Template }} }}:TextColor|{{ #ifeq: {{ #sub: TextColor | 0 | 1 }} | : | : }}{{ #ifeq: | Template | TextColor | TextColor }}]]{{ #if: blue
 | |blue }}{{ #if: This is blue text
 | |This is blue text }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} gives This is blue text