Template:Fontcolor/doc
{{
#ifeq: Template | Template | {{ #ifeq: {{ #if: | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates | {{ #ifeq: Fontcolor | {{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | -1 }} | doc | Fontcolor | Fontcolor/doc }} | | :Error: {{{name}}} parameter is unused or incorrect! Please replace{{SPW{{ #if: is not on | |is not on }}{{ #ifeq: Fontcolor | ¬ | | |name=Fontcolor }}}}
with{{SPW{{ #if: is not on | |is not on }}|name=Fontcolor}}
.
}}:{{ #switch: is not on | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | -1 }} | doc | | }} }} }}
|
Error creating thumbnail: File missing | This template was copied from Template:Fontcolor on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
{{ #ifeq: {{ #titleparts: Fontcolor/doc | 1 | -1 }} | doc | | }} }}
}}
Usage
This template is used to make a simple way to change background and text color.
Examples
These are some examples of how to make them:
Changing Text Color
This shows how to change text color, follow this to see how:
{{Fontcolor|Color of text|Text}}
is how to change text color.
So,{{Fontcolor|blue|Text in blue!}}
gives...
{{ #if: | {{{3}}} | Text in blue! }}
Changing Background Color
This shows how to change background color, follow this to see how:
{{Fontcolor||Background color|text}}
is how to change background color, notice that there are 2 | after {{Fontcolor?
So, {{Fontcolor||red|Remember to put 2 | after {{Fontcolor}} }}
gives...
{{ #if: Remember to put 2 | after {{Fontcolor}} | Remember to put 2 | after {{Fontcolor}} | red }}
Changing Background And Text Color
This shows how to change background and text color together, follow this to see how:
{{Fontcolor|Color of text|Color of background}}
is how to change background and color.
So, {{Fontcolor|blue|red|WOW, the text is blue and the background is red!}}
gives..
{{ #if: WOW, the text is blue and the background is red! | WOW, the text is blue and the background is red! | red }}
Colors
These are the 16 main colors, there are all the colors in this page.
Color | Hexadecimal Code | Color | Hexadecimal Code |
---|---|---|---|
black | #000000 | silver | #c0c0c0 |
gray | #808080 | white | #ffffff |
maroon | #800000 | red | #ff0000 |
purple | #800080 | fuchsia | #ff00ff |
green | #008000 | lime | #00ff00 |
olive | #808000 | yellow | #ffff00 |
navy | #000080 | blue | #0000ff |
teal | #008080 | aqua | #00ffff |