Template:format

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Soiled Bargains: Now with KISS and anti-copy-n'-paste action!)
(tbd)
 
(includes 7 intermediate revisions)
Line 1: Line 1:
-
<span style="background: {{{2}}}; color: {{{1}}}">{{{3}}}</span><noinclude>
+
<noinclude>{{tbd}}</noinclude><span style="<!--
 +
-->{{#if:{{{2|}}}|background: {{{2}}};|}} <!--
 +
-->{{#if:{{{1|}}}|color: {{{1}}};|}} <!--
 +
-->{{#if:{{{size|}}}|font-size: {{{size}}};|}} <!--
 +
-->{{#if:{{{shadow|}}}}|text-shadow: {{{shadow}}};|}}<!--
 +
-->{{#if:{{{padding|}}}}|padding: {{{padding}}};|}}<!--
 +
-->{{#if:{{{float|}}}}|float: {{{float}}};|}}<!--
 +
-->{{#if:{{{top|}}}}|position: relative;|}}<!-- /* position used in top/bottom/left/right relative parameters */
 +
-->{{#if:{{{top|}}}}|top: {{{top}}};|}}<!--
 +
-->">{{{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>
-
[[Category:Formatting Templates|{{PAGENAME}}]]
+
* Alternate use:
 +
<code><nowiki>{{format|foreground|background|t=text|size=font size|shadow=shadow settings|padding=padding|float=float value|top=relative top position}}</nowiki></code>
 +
 
 +
* Note: All parameters except the text are optional
 +
[[Category:Simple Formatting Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Current revision as of 03:59, 3 February 2023

{{{3}}}


[edit] 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|padding=padding|float=float value|top=relative top position}}

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