Difference between revisions of "Template:text"
From pathCast
(Created page with "<font size={{{2}}}>{{{1}}}</font>") |
|||
Line 1: | Line 1: | ||
− | <font size={{{2}}}>{{{1}}}</font> | + | <noinclude>{{CTRADMIN}}Color text template function: |
+ | # text | ||
+ | # background color | ||
+ | # text color | ||
+ | # font size | ||
+ | # if present, URL encode = as %3D | ||
+ | # HTML element to use for the colored text block (default is span, use div for nested span elements) | ||
+ | # if present, add an invisible blank line at the top (this helps with certain formatting errors) | ||
+ | <br/>{{ColorText|Foo|teal|white}} | ||
+ | |||
+ | {{ColorText|Foo|red|blue|2}} | ||
+ | |||
+ | Bolded example: '''{{ColorText|Foo||red}}''' | ||
+ | |||
+ | {{ColorText| | ||
+ | === General === | ||
+ | * A | ||
+ | * B | ||
+ | |white|teal|||div}} | ||
+ | |||
+ | {{ColorText|* A | ||
+ | * B | ||
+ | |white|teal|||div|fixformatting}} | ||
+ | |||
+ | |||
+ | {{ColorText|{{#urldecode:%0D%0A}}* A | ||
+ | * B | ||
+ | |white|teal|||div|fixformatting}} | ||
+ | |||
+ | </noinclude><includeonly>{{#if:{{{4|}}}|<font size={{{4|}}}>}}<{{{6|span}}} style{{#if:{{{5|}}}|%3D|{{#urldecode:%3D}} }}"background-color:{{{2|}}}; color:{{{3|}}}">{{#if:{{{7|}}}|{{#urldecode:%0D%0A}}{{{1|}}}|{{{1|}}} }}</{{{6|span}}}>{{#if:{{{4|}}}|</font>}}</includeonly> |
Revision as of 06:48, 6 September 2020
Template:CTRADMINColor text template function:
- text
- background color
- text color
- font size
- if present, URL encode = as %3D
- HTML element to use for the colored text block (default is span, use div for nested span elements)
- if present, add an invisible blank line at the top (this helps with certain formatting errors)
Bolded example: Template:ColorText