Template:Font: Difference between revisions
Jump to navigation
Jump to search
Basic font parser |
Documentation |
||
Line 1: | Line 1: | ||
<noinclude>Call by using: | |||
<pre>{{font | |||
|text= | |||
|font= | |||
|size= (px/em/pt/%) | |||
|color= | |||
|bgcolor= | |||
|css= | |||
}}</pre> | |||
or | |||
<pre>{{font|TEXT(or「text=TEXT」)|font=FONT|size=SIZE(px/em/pt/%)|color=COLOR|bgcolor=BACKGROUND COLOR|css=CSS}}</pre> | |||
</noinclude> | |||
<includeonly><span style="font-family:{{ {{{|safesubst:}}}#if: {{{font|}}} |{{{font}}}|sans-serif}};font-size:{{ {{{|safesubst:}}}#if: {{{size|}}} |{{{size}}}|100%}};{{ {{{|safesubst:}}}#if: {{{color|}}} |color:{{{color}}}|color:black}};{{ {{{|safesubst:}}}#if: {{{bgcolor|}}} |background-color:{{{bgcolor}}}|background-color:transparent}};{{ {{{|safesubst:}}}#if: {{{title|}}} |title:{{{title}}}|}};{{ {{{|safesubst:}}}#if: {{{css|}}} |{{{css}}}|}}">{{ {{{|safesubst:}}}#if: {{{1|}}} |{{{1}}}|{{{text}}}}}</span></includeonly> | <includeonly><span style="font-family:{{ {{{|safesubst:}}}#if: {{{font|}}} |{{{font}}}|sans-serif}};font-size:{{ {{{|safesubst:}}}#if: {{{size|}}} |{{{size}}}|100%}};{{ {{{|safesubst:}}}#if: {{{color|}}} |color:{{{color}}}|color:black}};{{ {{{|safesubst:}}}#if: {{{bgcolor|}}} |background-color:{{{bgcolor}}}|background-color:transparent}};{{ {{{|safesubst:}}}#if: {{{title|}}} |title:{{{title}}}|}};{{ {{{|safesubst:}}}#if: {{{css|}}} |{{{css}}}|}}">{{ {{{|safesubst:}}}#if: {{{1|}}} |{{{1}}}|{{{text}}}}}</span></includeonly> |
Latest revision as of 21:26, 31 January 2021
Call by using:
{{font |text= |font= |size= (px/em/pt/%) |color= |bgcolor= |css= }}
or
{{font|TEXT(or「text=TEXT」)|font=FONT|size=SIZE(px/em/pt/%)|color=COLOR|bgcolor=BACKGROUND COLOR|css=CSS}}