Template:Text tile: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
== USAGE == | == USAGE == | ||
<nowiki> {{Text tile| ''text'' | w= | h= | bc= | fc= | fs=}} </nowiki> | <code><nowiki> {{Text tile| ''text'' | w= | h= | bc= | fc= | fs=}} </nowiki></code> | ||
* ''text'' is any text. | * ''text'' is any text. | ||
* w and h are dimensions in pixels; for example, <code>|w=100</code> | |||
* bc and fc are colors; background and text; for example, <code>|bc=#AA11FF|fc=White</code> | |||
* fs is font size; for example, <code>|fs=25px</code> | |||
== EXAMPLES == | == EXAMPLES == | ||
| Line 14: | Line 17: | ||
== CODE == | == CODE == | ||
</noinclude>{| style="background-color: {{{bc|#F7F7F7}}}; width: {{{w|300}}}px; height: {{{h|100}}}px; display: inline-table; margin: 0 10px 10px 0; " | </noinclude>{| style="background-color: {{{bc|#F7F7F7}}}; width: {{{w|300}}}px; height: {{{h|100}}}px; display: inline-table; margin: 0 10px 10px 0; " | ||
| style="text-align: center; color: {{{fc|Blue}}}; font-size: {{{fs|16px}}};" | '''{{{1|Lorem ipsum}}}''' | | style="text-align: center; color: {{{fc|Blue}}}; font-size: {{{fs|16px}}}; line-height: 1.2;" | '''{{{1|Lorem ipsum}}}''' | ||
|} | |} | ||
</span> | </span> | ||
Revision as of 06:30, 6 June 2024
Text tile with color.
USAGE
{{Text tile| ''text'' | w= | h= | bc= | fc= | fs=}}
- text is any text.
- w and h are dimensions in pixels; for example,
|w=100 - bc and fc are colors; background and text; for example,
|bc=#AA11FF|fc=White - fs is font size; for example,
|fs=25px
EXAMPLES
| Hello world. |
| Power Solutions |
CATEGORIZATION
This template belongs to Category:Templates.
CODE
| Lorem ipsum |