模板:Para:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
创建页面,内容为“<includeonly>{{#if:{{#varexists:Para}}||{{#vardefineecho:Para|{{#css:code.para.para-plain { border: none; background-color: inherit; } }} }}}}<code class="para {{#if: {{{plain|}}} | para-plain }} nowrap" {{#if: {{{style|}}} | style="{{{style}}}" }}>|{{#if: {{{1|}}} | {{{1}}}= }}{{{2|}}}</code></includeonly><noinclude> == 用法 == 建议使用行内格式。 === 基本用法 === <pre>{{p|参数名|参数值}}</pre> === 完整用法 === <pr…” |
m 文本替换 - 替换“#if: {{{”为“#if:{{{” |
||
| 第2行: | 第2行: | ||
border: none; | border: none; | ||
background-color: inherit; | background-color: inherit; | ||
} }} }}}}<code class="para {{#if: {{{plain|}}} | para-plain }} nowrap" {{#if: {{{style|}}} | style="{{{style}}}" }}>|{{#if: {{{1|}}} | {{{1}}}= }}{{{2|}}}</code></includeonly><noinclude> | } }} }}}}<code class="para {{#if:{{{plain|}}} | para-plain }} nowrap" {{#if:{{{style|}}} | style="{{{style}}}" }}>|{{#if:{{{1|}}} | {{{1}}}= }}{{{2|}}}</code></includeonly><noinclude> | ||
== 用法 == | == 用法 == | ||
建议使用行内格式。 | 建议使用行内格式。 | ||
2025年9月9日 (二) 10:53的版本
用法
建议使用行内格式。
基本用法
{{p|参数名|参数值}}
完整用法
{{para
|参数名
|参数值
|plain=1
|style=
}}
|1=:可选(字符串),指定需要显示的参数名称。|2=:可选(字符串),指定需要显示的参数值。|plain=:可选(布尔值),用于取消默认的背景样式。|style=:可选(字符串),设置自定义样式(CSS)。
示例
另见
模板数据
显示模板的部分内容
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 参数名 | 1 | 指定需要显示的参数名称
| 字符串 | 推荐 |
| 参数值 | 2 | 指定需要显示的参数值
| 字符串 | 可选 |
| 取消背景 | plain | 取消默认的背景样式 | 布尔 | 可选 |
| 自定义样式 | style | 通过CSS设置一个自定义样式 | 布尔 | 可选 |