Template:format
From Homestar Runner Wiki
(Difference between revisions)
(add more (poorly documented?) options) |
(add padding) |
||
Line 4: | Line 4: | ||
-->{{#if:{{{size|}}}|font-size: {{{size}}};|}} <!-- | -->{{#if:{{{size|}}}|font-size: {{{size}}};|}} <!-- | ||
-->{{#if:{{{shadow|}}}}|text-shadow: {{{shadow}}};|}}<!-- | -->{{#if:{{{shadow|}}}}|text-shadow: {{{shadow}}};|}}<!-- | ||
+ | -->{{#if:{{{padding|}}}}|padding: {{{padding}}};|}}<!-- | ||
-->">{{{t|{{{3}}}}}}</span><noinclude> | -->">{{{t|{{{3}}}}}}</span><noinclude> | ||
---- | ---- | ||
Line 13: | Line 14: | ||
* Alternate use: | * Alternate use: | ||
- | <code><nowiki>{{format|foreground|background|t=text|size=font size|shadow=shadow settings}}</nowiki></code> | + | <code><nowiki>{{format|foreground|background|t=text|size=font size|shadow=shadow settings|padding=padding}}</nowiki></code> |
* Note: All parameters except the text are optional | * Note: All parameters except the text are optional | ||
[[Category:Simple Formatting Templates|{{PAGENAME}}]] | [[Category:Simple Formatting Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 15:09, 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|padding=padding}}
- Note: All parameters except the text are optional