pathCast
Log in

Difference between revisions of "Template:text"

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

  1. text
  2. background color
  3. text color
  4. font size
  5. if present, URL encode = as %3D
  6. HTML element to use for the colored text block (default is span, use div for nested span elements)
  7. if present, add an invisible blank line at the top (this helps with certain formatting errors)


Template:ColorText

Foo

Bolded example: Foo

=== General ===
  • A
  • B
  • A
  • B


  • A
  • B