Difference between revisions of "Template:Co/doc"
From EVE University Wiki
m (Fix typo. Add Parameter section.) |
m (| are no brackets.) |
||
Line 18: | Line 18: | ||
: {{co||green|This text has a green background.}}<br> | : {{co||green|This text has a green background.}}<br> | ||
− | {{Note|Note the double | + | {{Note|Note the double pipe char <nowiki>||</nowiki> which means that that section is empty. The background color parameter may be safely omitted without the use of double pipes, but double pipes must be used if only a background color is desired.}} |
: {{code|<nowiki>{{co|black|lightyellow|Text and background color.}}</nowiki>}} gives ... | : {{code|<nowiki>{{co|black|lightyellow|Text and background color.}}</nowiki>}} gives ... |
Latest revision as of 08:49, 1 July 2024
- Description
- This template is used to color some text.
- Parameters
- Sample
gives ...{{co|red|This text isn't yellow.}} - This text isn't yellow.
gives ...{{co||green|This text has a green background.}} - This text has a green background.
gives ...{{co|black|lightyellow|Text and background color.}} - Text and background color.
gives ...{{co|#0033CC|This text uses an hex color code.}} - This text uses an hex color code.
- References
- ^ inherit - The color used by the HTML parent element.
- ^ https://www.w3schools.com/colors/colors_names.asp [2022-05-29]
- ^ https://www.w3schools.com/colors/colors_hex.asp [2022-05-29]