「模板:Font」:修訂間的差異
创建页面,内容为“<includeonly>{{#if:{{{size|}}}|{{#vardefine:size<!--默认单位--> |{{#if:{{#switch: {{Str_rightc|{{{size|}}}|2}} |px |em |pt…”
*>Xiplus 小 (已更改“Template:Font”的保护等级:高风险模板([编辑=仅管理员](无限期)[移动=仅管理员](无限期))) |
*>Sliots (创建页面,内容为“<includeonly>{{#if:{{{size|}}}|{{#vardefine:size<!--默认单位--> |{{#if:{{#switch: {{Str_rightc|{{{size|}}}|2}} |px |em |pt…”) |
||
行 1: | 行 1: | ||
<includeonly>< | <includeonly>{{#if:{{{size|}}}|{{#vardefine:size<!--默认单位--> | ||
|{{#if:{{#switch: {{Str_rightc|{{{size|}}}|2}} | |||
|px | |||
|em | |||
|pt | |||
|ch | |||
= true }}{{#ifeq:{{Str_rightc|{{{size|}}}|1}}|%|true|}} | |||
|{{{size|}}} | |||
|{{#ifeq:{{Str_left|{{{size|}}}|4}}|calc|{{{size|}}}|{{{size|}}}px}} | |||
}} | |||
}}|{{#vardefine:size|}}}}<span {{#if: {{{class|}}} |class="{{{class|}}}"}} {{#if: {{{title|}}} |title="{{{title|}}}"}} {{#if: {{{font|}}}{{{size|}}}{{{color|}}}{{{bgcolor|}}}{{{style|}}}{{{css|}}} |style="{{#if: {{{font|}}} |font-family:{{{font|}}};}} {{#if: {{#var:size}} |font-size:{{#var:size}};}} {{#if: {{{color|}}} |color: {{{color}}};}} {{#if: {{{bgcolor|}}} |background-color:{{{bgcolor}}};}}{{#if: {{{shadowcolor|}}} |text-shadow: {{{shadowcolor|}}} 2px 4px 4px;}} {{#if: {{{style|{{{css|}}}}}} |{{{style|{{{css}}}}}}|}}"}}>{{#if: {{{1|}}} |{{{1}}}}}</span></includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |