Template:TextColor/doc: Difference between revisions
Jump to navigation
Jump to search
dnd5efandom>Foxwells m (1 revision) |
m (1 revision imported) |
||
(No difference)
| |||
Latest revision as of 20:49, 9 June 2019
| File:Edit-copy green.svg | This is a {{#switch: Template | Template = template | Module = module | user = user page | #default = page }} documentation subpage for Template:TextColor. It contains usage information, categories, and other content that is not part of the original {{#if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template | template page|article}}}}}}}}. |
[[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