Template:format

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (moved Template:colors to Template:format: Rename for more general-purpose use.)
(add more (poorly documented?) options)
Line 1: Line 1:
-
<span style="{{#if:{{{2|}}}|background: {{{2}}};|}} {{#if:{{{1|}}}|color: {{{1}}};|}}">{{{3}}}</span><noinclude>
+
<span style="<!--
 +
-->{{#if:{{{2|}}}|background: {{{2}}};|}} <!--
 +
-->{{#if:{{{1|}}}|color: {{{1}}};|}} <!--
 +
-->{{#if:{{{size|}}}|font-size: {{{size}}};|}} <!--
 +
-->{{#if:{{{shadow|}}}}|text-shadow: {{{shadow}}};|}}<!--
 +
-->">{{{t|{{{3}}}}}}</span><noinclude>
----
----
=== Usage ===
=== Usage ===
Gives text a foreground and background color. Both are CSS values.
Gives text a foreground and background color. Both are CSS values.
 +
* Original Use:
<code><nowiki>{{colors|foreground|background|text}}</nowiki></code>
<code><nowiki>{{colors|foreground|background|text}}</nowiki></code>
 +
* Alternate use:
 +
<code><nowiki>{{format|foreground|background|t=text|size=font size|shadow=shadow settings}}</nowiki></code>
 +
 +
* Note: All parameters except the text are optional
[[Category:Simple Formatting Templates|{{PAGENAME}}]]
[[Category:Simple Formatting Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 14:57, 16 January 2023

{{{3}}}


Usage

Gives text a foreground and background color. Both are CSS values.

  • Original Use:

{{colors|foreground|background|text}}

  • Alternate use:

{{format|foreground|background|t=text|size=font size|shadow=shadow settings}}

  • Note: All parameters except the text are optional
Personal tools