Template:format
From Homestar Runner Wiki
(Difference between revisions)
(add fantastic floating action) |
It's dot com (Talk | contribs) (tbd) |
||
(includes 1 intermediate revision) | |||
Line 1: | Line 1: | ||
- | <span style="<!-- | + | <noinclude>{{tbd}}</noinclude><span style="<!-- |
-->{{#if:{{{2|}}}|background: {{{2}}};|}} <!-- | -->{{#if:{{{2|}}}|background: {{{2}}};|}} <!-- | ||
-->{{#if:{{{1|}}}|color: {{{1}}};|}} <!-- | -->{{#if:{{{1|}}}|color: {{{1}}};|}} <!-- | ||
Line 6: | Line 6: | ||
-->{{#if:{{{padding|}}}}|padding: {{{padding}}};|}}<!-- | -->{{#if:{{{padding|}}}}|padding: {{{padding}}};|}}<!-- | ||
-->{{#if:{{{float|}}}}|float: {{{float}}};|}}<!-- | -->{{#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> | -->">{{{t|{{{3}}}}}}</span><noinclude> | ||
---- | ---- | ||
Line 15: | Line 17: | ||
* Alternate use: | * Alternate use: | ||
- | <code><nowiki>{{format|foreground|background|t=text|size=font size|shadow=shadow settings|padding=padding|float=float value}}</nowiki></code> | + | <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 | * Note: All parameters except the text are optional | ||
[[Category:Simple Formatting Templates|{{PAGENAME}}]] | [[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