Difference between revisions of "Template:text"
From pathCast
Line 9: | Line 9: | ||
<br/>{{ColorText|Foo|teal|white}} | <br/>{{ColorText|Foo|teal|white}} | ||
− | {{ | + | {{text|Foo|red|blue|2}} |
− | Bolded example: '''{{ | + | Bolded example: '''{{text|Foo||red}}''' |
− | {{ | + | {{text| |
=== General === | === General === | ||
* A | * A | ||
Line 19: | Line 19: | ||
|white|teal|||div}} | |white|teal|||div}} | ||
− | {{ | + | {{text|* A |
* B | * B | ||
|white|teal|||div|fixformatting}} | |white|teal|||div|fixformatting}} | ||
− | {{ | + | {{text|{{#urldecode:%0D%0A}}* A |
* B | * B | ||
|white|teal|||div|fixformatting}} | |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> | </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)
Foo
Bolded example: Foo
=== General ===
- A
- B
- A
- B
- A
- B