དཔེ་པང་།:Gadget ཐོན་རིམ་རེ་རེའི་ཁྱད་པར།
机器人:从 minecraft 搬运页面 |
No edit summary |
||
| ཐིག་ཕྲེང་4: | ཐིག་ཕྲེང་4: | ||
}}'''{{{1}}}:'''{{{2}}}{{ | }}'''{{{1}}}:'''{{{2}}}{{ | ||
#if: {{{preview|}}} | #if: {{{preview|}}} | ||
| ([{{fullurl:{{{previewPage|{{SITENAME}}}}}|withgadget={{{withgadget|{{{3|}}}}}}}} | | ([{{fullurl:{{{previewPage|{{SITENAME}}}}}|withgadget={{{withgadget|{{{3|}}}}}}}} 预览]) | ||
}}{{ | }}{{ | ||
#if: {{{nojs<includeonly>|</includeonly>}}} | #if: {{{nojs<includeonly>|</includeonly>}}} | ||
| {{#if: {{{css|}}} | <sup>[ }} | | {{#if: {{{css|}}} | <sup>[ }} | ||
| <sup>[ [[MediaWiki:Gadget-{{{jsPage|{{{3|}}}}}}.js| | | <sup>[ [[MediaWiki:Gadget-{{{jsPage|{{{3|}}}}}}.js|源代码]] | ||
}}{{ | }}{{ | ||
#if: {{{css|}}} | #if: {{{css|}}} | ||
མཐའ་འཇུག་ཀྱི་ཞིབ་བཤེར། 10:41, 26 སྤྱི་ཟླ་བཅུ་གཅིག་པ། 2026
{{{1}}}:{{{2}}}
此模板用于格式化输入小工具(Gadgets)的描述。
示例
{{Gadget|Revision patrol|Show patrol status on history, diff, and revision pages.|revisionPatrol}}
Revision patrol:Show patrol status on history, diff, and revision pages.[ 源代码 ]
{{Gadget|Revision patrol|Show patrol status on history, diff, and revision pages.|revisionPatrol|default=1}}
(D)Revision patrol:Show patrol status on history, diff, and revision pages.[ 源代码 ]
{{Gadget|Revision patrol|Show patrol status on history, diff, and revision pages.|revisionPatrol|css=1}}
Revision patrol:Show patrol status on history, diff, and revision pages.[ 源代码 | CSS ]
{{Gadget|Revision patrol|Show patrol status on history, diff, and revision pages.|revisionPatrol|css=1|nojs=1}}
Revision patrol:Show patrol status on history, diff, and revision pages.[ CSS ]
模板数据
格式化输入小工具的描述。
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | 小工具的名称。 | Line | required |
| 2 | 2 | 小工具的描述。 | Line | required |
| 3 | 3 | 小工具的文件名。 | String | required |
| Default | default | 此小工具是否默认启用。
| Boolean | optional |
| Nojs | nojs | 此小工具是否不使用JavaScript。
| Boolean | optional |
| CSS | css | 此小工具是否使用CSS。
| Boolean | optional |
| preview | preview | 此小工具是否可供預覽。
| Boolean | optional |
| previewPage | previewPage | 預覽小工具時使用的頁面。
| Page name | optional |
| withgadget | withgadget | 預覽時withgadget URL參數的值。
| String | optional |
| jsPage | jsPage | 小工具JavaScript頁面的檔名
| String | optional |
| cssPage | cssPage | 小工具CSS頁面的檔名
| String | optional |