模板:Para
出自星露谷物語擴展百科
更多語言
更多操作
於 2024年11月15日 (五) 05:43 由 Sizau(對話 | 貢獻) 所作的修訂 (创建页面,内容为“<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…”)
用法
建議使用行內格式。
基本用法
{{p|参数名|参数值}}
完整用法
{{para
|参数名
|参数值
|plain=1
|style=
}}
|1=:可選(字符串),指定需要顯示的參數名稱。|2=:可選(字符串),指定需要顯示的參數值。|plain=:可選(布爾值),用於取消默認的背景樣式。|style=:可選(字符串),設置自定義樣式(CSS)。
示例
另見
模板數據
顯示模板的部分內容
| 參數 | 描述 | 類型 | 狀態 | |
|---|---|---|---|---|
| 參數 | 1 | 指定需要顯示的參數名稱
| 字串 | 建議 |
| 引數 | 2 | 指定需要顯示的參數的值
| 字串 | 非必填 |
| 取消背景 | plain | 取消預設的背景樣式 | 布林值 | 非必填 |
| 自訂樣式 | style | 通過CSS設置一個自訂樣式 | 布林值 | 非必填 |