pathCast
Log in

Difference between revisions of "Template:text"

From pathCast
(Created page with "<font size={{{2}}}>{{{1}}}</font>")
 
 
(2 intermediate revisions by the same user not shown)
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/>{{text|Foo|teal|white}}
 +
 
 +
{{text|Foo|red|blue|2}}
 +
 
 +
Bolded example: '''{{text|Foo||red}}'''
 +
 
 +
{{text|
 +
=== General ===
 +
* A
 +
* B
 +
|white|teal|||div}}
 +
 
 +
{{text|* A
 +
* B
 +
|white|teal|||div|fixformatting}}
 +
 
 +
 
 +
{{text|{{#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>

Latest 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)


Foo

Foo

Bolded example: Foo

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


  • A
  • B