Difference between revisions of "Template:text"
From pathCast
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
# HTML element to use for the colored text block (default is span, use div for nested span elements) | # 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) | # if present, add an invisible blank line at the top (this helps with certain formatting errors) | ||
− | <br/>{{ | + | <br/>{{text|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> |
Latest 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
Foo
Bolded example: Foo
=== General ===
- A
- B
- A
- B
- A
- B