Home
Random
Recent changes
Special pages
Community portal
Settings
About Irony Wiki
Disclaimers
Irony Wiki
Search
User menu
Create account
Log in
Editing
Template:Color/doc
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
The template can be used to specify the color of a span of text. The color value can be a hex code or any other color value [https://developer.mozilla.org/en-US/docs/Web/CSS/color accepted by CSS]. === Usage === <code><nowiki>{{color|COLOR|Text}}</nowiki></code> === Examples === * <code><nowiki>{{color|#0099ff|Hello world}}</nowiki></code> outputs: {{color|#0099ff|Hello world}} * <code><nowiki>{{color|red|Hello world}}</nowiki></code> outputs: {{color|red|Hello world}} If the text parameter is omitted, the color value will be displayed as the text: * <code><nowiki>{{color|#0099ff}}</nowiki></code> outputs: {{color|#0099ff}} * <code><nowiki>{{color|red}}</nowiki></code> outputs: {{color|red}} === Template data === <templatedata> { "params": { "1": { "label": "Color", "description": "The color that the text should be. Can be a hex code or any other color value accepted by CSS.", "example": "#0099ff", "type": "string", "required": true }, "2": { "label": "Text", "description": "The text that should be colored. If this field is not provided, the color value will be displayed as the text.", "type": "string", "suggested": true } }, "description": "Colors a span of text the specified color.", "format": "inline" } </templatedata>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Color
(
edit
)