MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

模板:Font:修订间差异

跳到导航 跳到搜索
添加1,239字节 、​ 2022年7月13日 (星期三)
无编辑摘要
无编辑摘要
无编辑摘要
 
(未显示另一用户的1个中间版本)
第4行: 第4行:
       {{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}#invoke:String|sub|{{{size|o}}}|-1|-1}}|%|t|}}
       {{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}#invoke:String|sub|{{{size|o}}}|-1|-1}}|%|t|}}
       {{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}#ifexpr:{{ {{{|safesubst:}}}#invoke:String|len|{{{size|}}}}} > 3|{{ {{{|safesubst:}}}#invoke:String|sub|{{{size|}}}|1|4}}|}}|calc|t|}}
       {{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}#ifexpr:{{ {{{|safesubst:}}}#invoke:String|len|{{{size|}}}}} > 3|{{ {{{|safesubst:}}}#invoke:String|sub|{{{size|}}}|1|4}}|}}|calc|t|}}
     |font-size: {{{size|}}};|font-size: {{{size|}}}px;}}
     |font-size: {{{size|}}};|font-size: {{{size|}}};}}
|}} {{{{{|safesubst:}}}#if: {{{color|}}} |color: {{{color}}};}} {{{{{|safesubst:}}}#if: {{{bgcolor|}}} |background-color:{{{bgcolor}}};}}{{{{{|safesubst:}}}#if: {{{shadowcolor|}}} |text-shadow: {{{shadowcolor|}}} 2px 4px 4px;}}  {{{{{|safesubst:}}}#if: {{{style|{{{css|}}}}}} |{{{style|{{{css}}}}}}|}}"}}>{{ {{{|safesubst:}}}#if: {{{1|}}}|{{{1}}}|<strong class="error">警告:font 模板的参数<code>{{{1}}}</code>未赋值。</strong>}}</span></includeonly><noinclude>
|}} {{{{{|safesubst:}}}#if: {{{color|}}} |color: {{{color}}};}} {{{{{|safesubst:}}}#if: {{{bgcolor|}}} |background-color:{{{bgcolor}}};}}{{{{{|safesubst:}}}#if: {{{shadowcolor|}}} |text-shadow: {{{shadowcolor|}}} 2px 4px 4px;}}  {{{{{|safesubst:}}}#if: {{{style|{{{css|}}}}}} |{{{style|{{{css}}}}}}|}}"}}>{{ {{{|safesubst:}}}#if: {{{1|}}}|{{{1}}}|<strong class="error">警告:font 模板的参数<code>{{{1}}}</code>未赋值。</strong>}}</span></includeonly><noinclude>
{{documentation}}
{{documentation}}
[[Category:格式模板]]
[[Category:格式模板]]
</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "内容",
"description": "目标文字内容。",
"type": "content",
"required": true
},
"class": {
"label": "类名",
"description": "目标文字的 class 属性。",
"type": "string"
},
"title": {
"label": "悬停提示",
"description": "鼠标悬停在文字上时会以“悬浮提示框”的形式显示。",
"type": "string"
},
"font": {
"label": "字体",
"description": "目标文字字体。",
"type": "string",
"default": "14px"
},
"size": {
"label": "尺寸",
"description": "目标文字缩放尺寸。",
"type": "string"
},
"color": {
"label": "颜色",
"description": "目标文字文字颜色。",
"type": "string",
"default": "black"
},
"bgcolor": {
"label": "背景颜色",
"description": "目标文字背景颜色。",
"type": "string"
},
"style": {
"aliases": [
"css"
],
"label": "样式",
"description": "目标文字的 CSS 样式。",
"type": "string"
},
"shadowcolor": {
"label": "阴影颜色",
"description": "目标文字阴影颜色。",
"type": "string"
}
},
"description": "设置字体",
"format": "inline"
}
</templatedata></noinclude>
我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。

导航菜单