Template:Font: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m en |
Павло Сарт (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<span {{#if: {{{class|}}} |class="{{{class|}}}"}} {{#if: {{{title|}}} |title="{{{title|}}}"}} {{#if: {{{font|}}}{{{size|}}}{{{color|}}}{{{bgcolor|}}}{{{css|}}} |style="{{#if: {{{font|}}} |font-family:{{{font|}}};}} {{#if: {{{size|}}} |font-size:{{{size|}}};}} {{#if: {{{color|}}} |color: {{{color}}};}} {{#if: {{{bgcolor|}}} |background-color:{{{bgcolor}}};}}{{#if: {{{shadowcolor|}}} |text-shadow: {{{shadowcolor|}}} 2px 4px 4px;}} {{#if: {{{css|}}} |{{{css}}}|}}"}}>{{#if: {{{1|}}} |{{{1}}}|{{{text}}}}}</span> |
<span {{#if: {{{class|}}} |class="{{{class|}}}"}} {{#if: {{{title|}}} |title="{{{title|}}}"}} {{#if: {{{font|}}}{{{size|}}}{{{color|}}}{{{bgcolor|}}}{{{css|}}} |style="{{#if: {{{font|}}} |font-family:{{{font|}}};}} {{#if: {{{size|}}} |font-size:{{{size|}}};}} {{#if: {{{color|}}} |color: {{{color}}};}} {{#if: {{{bgcolor|}}} |background-color:{{{bgcolor}}};}}{{#if: {{{shadowcolor|}}} |text-shadow: {{{shadowcolor|}}} 2px 4px 4px;}} {{#if: {{{css|}}} |{{{css}}}|}}"}}>{{#if: {{{1|}}} |{{{1}}}|{{{text}}}}}</span><noinclude>{{Font/doc/en}}</noinclude> |
||
<noinclude>{{Font/doc/en}}</noinclude> |
Revision as of 19:56, 7 June 2019
{{{text}}}This template can be used in Wikipedia, Pseudo Encyclopedia, Encyclopedia.
Metadata
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
font | font | no description | Unknown | suggested |
size | size | no description | Number | optional |
weight | weight | no description | String | optional |
style | style | no description | String | optional |
variant | variant | no description | String | optional |
color | color | no description | Unknown | suggested |
bgcolor | bgcolor | no description | Unknown | optional |
shadowcolor | shadowcolor | no description | Unknown | optional |
shadowx | shadowx | text shadow offset-x
| Unknown | optional |
shadowy | shadowy | text shadow offset-y
| Unknown | optional |
shadowrad | shadowrad | text shadow radius (''i.e.'' length)
| Unknown | optional |
opacity | opacity | text opacity
| Unknown | optional |
title | title | no description | String | optional |
css | css | no description | Unknown | optional |
class | class | no description | Unknown | optional |
1 | 1 text | no description | Unknown | required |
text | text | no description | Unknown | optional |
Examples
Input | Result |
---|---|
{{font|text=no change}}
|
no change |
{{font|color=#7f5620|font=script|size=20px|text=brown text}}
|
brown text |
{{font|color=#bf00bf|font=Century Gothic|size=35px|text=Hello World!}}
|
Hello World! |
{{font|color=#0F0|opacity=0.5|text=[[Wikimedia|valid link]] & [[NotExist|red link]]}}
|
valid link & red link |
{{font|weight=bold|style=italic|text=bold & italic options.}}
|
bold & italic options. |
{{font|variant=small-caps|text=small-caps option.}}
|
small-caps option. |
{{font|shadowcolor=gray|text=this is shaded.}}
|
this is shaded. |
{{font|shadowcolor=gray|shadowx=1px|shadowy=1px|shadowrad=0|text=this is shaded.}}
|
this is shaded. |
{{font|shadowcolor=gray|shadowx=1px|shadowy=1px|shadowrad=5px|text=this is shaded.}}
|
this is shaded. |
{{font|title=Like this:|bgcolor=#9f9|color=#5a7aad|opacity=0.75|shadowcolor=blue |shadowx=2px|shadowy=2px|shadowrad=2px|font=Courier |size=24px|weight=900|style=oblique|text=Use all options.}}
|
use all options. |
{{font|size=25px|You can also use only one of these options.}}
|
You can also use only one of these options. |