「模板:模板文档」修訂間的差異
Apolloprofly(對話 | 貢獻) (新頁面: À{{#switch: {{SUBJECTSPACE}} | {{ns:0}} | {{ns:File}} | {{ns:MediaWiki}} | {{ns:Category}} = {{TALKSPACE}} | #default = {{SUBJECTSPACE}} }}<noinclude> {{documentation|conten...) |
Apolloprofly(對話 | 貢獻) |
||
| 行 1: | 行 1: | ||
| − | + | == 模版部份未翻譯 == | |
| − | | {{ | + | 模版中的<pre>for editors to experiment.</pre>未翻譯為中文。—[[User:Chunchun2345|Chunchun2345]] ([[User talk:Chunchun2345|留言]]) 2009年6月28日 (日) 06:37 (UTC) |
| − | | {{ | + | |
| − | | {{ | + | :{{完成}},已翻譯。—[[User:Cdip150|-{街燈電箱150號}-]] <small>[[User talk:Cdip150|開箱維修]] [[Special:Contributions/Cdip150|抄錶]] [[Wikipedia:維基榮譽與獎勵申請與變更/2009年1月-3月|檢驗證明]]</small> 2009年6月28日 (日) 06:47 (UTC) |
| − | | {{ | + | == 未翻譯 == |
| − | | | + | {{tl|editprotected}} |
| − | }}< | + | <pre> |
| − | {{documentation|content= | + | Template documentation |
| − | + | The above documentation is transcluded from Template:Documentation/doc. (edit | history) | |
| − | }}</noinclude> | + | Editors can experiment in this template's sandbox (create) and testcases (create) pages. |
| + | Please add categories and interwikis to the /doc subpage. Subpages of this template. | ||
| + | 均需翻译。</pre>--[[User:UAL55|UAL55]] ([[User talk:UAL55|留言]]) 2010年7月14日 (三) 01:26 (UTC) | ||
| + | :麻烦你把上面的内容翻译好后贴在这里,然后再由管理员复制到模板中。--[[User:用心阁|用心阁]][[User Talk:用心阁|(对话页)]] 2010年7月14日 (三) 04:27 (UTC) | ||
| + | ::我错误地从英文维基百科复制并覆盖了相同模板。已回退。<span class="signature signature_252699">[[User:Liangent|Liangent]] ([[User talk:Liangent|留言]])</span> 2010年7月14日 (三) 15:44 (UTC) | ||
| + | |||
| + | == 英文 == | ||
| + | |||
| + | {{tl|editprotected}}同上。 | ||
| + | :reverted 不知道shizhao在干什么 <span class="signature signature_252699">[[User:Liangent|Liangent]] ([[User talk:Liangent|留言]])</span> 2010年7月27日 (二) 07:50 (UTC) | ||
| + | |||
| + | == 追加“清除緩存”按鈕 == | ||
| + | {{tl|editprotected}} | ||
| + | <code style="background:#ccf"><nowiki><!--** /doc 存在** -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 編輯]]</nowiki></code> | ||
| + | |||
| + | 加上: | ||
| + | |||
| + | <code style="background:#cfc"><nowiki><!--** /doc 存在** -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=purge}} 清除緩存]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 編輯]]</nowiki></code> | ||
| + | |||
| + | 因為有時候就算是在Firefox按ctrl/shift+F5都依然未能刷新出doc頁的新版本,必須手動進行purge。-- [[User:Sameboat|同舟]]([[User talk:Sameboat|留言]]) 2012年3月27日 (二) 02:53 (UTC) | ||
| + | : {{done}} <span class="signature signature_252699">[[User:Liangent|Liangent]] ([[User talk:Liangent|留言]])</span> 2012年3月27日 (二) 09:16 (UTC) | ||
| + | : 貌似应该让用户purge后看模板页较好。<span class="signature signature_252699">[[User:Liangent|Liangent]] ([[User talk:Liangent|留言]])</span> 2012年3月27日 (二) 09:19 (UTC) | ||
| + | <s>::增加purge按鈕就是為了在模板本頁看到doc更新後的效果。還有有一點不懂的是,追加purge按鈕後其生成的地址居然額外多了版本的代碼,是mediawiki更新v1.19後修訂的?-- [[User:Sameboat|同舟]]([[User talk:Sameboat|留言]]) 2012年3月27日 (二) 09:44 (UTC)</s> | ||
| + | |||
| + | == Documentation == | ||
| + | English: I would like to add these updated codes please | ||
| + | <pre> | ||
| + | <!-- | ||
| + | Automatically add {{template sandbox notice}} when on a /sandbox page. | ||
| + | -->{{#ifeq: {{SUBPAGENAME}} | sandbox | ||
| + | | <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}} | ||
| + | }}<!-- | ||
| + | Automatically add {{pp-template}} to protected templates. | ||
| + | -->{{template other | ||
| + | | {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop | ||
| + | | {{pp-template|docusage=yes}} | ||
| + | | {{#if: {{PROTECTIONLEVEL:edit}} | ||
| + | | {{pp-template|docusage=yes}} | ||
| + | | <!--Not protected, or only semi-move-protected--> | ||
| + | }} | ||
| + | }} | ||
| + | }}<!-- | ||
| + | Start of green doc box. | ||
| + | -->{{documentation/start box2 | ||
| + | | preload = {{{preload|}}} <!--Allow custom preloads--> | ||
| + | | heading = {{{heading|¬}}} <!--Empty but defined means no header--> | ||
| + | | heading-style = {{{heading-style|}}} | ||
| + | | content = {{{content|}}} | ||
| + | |||
| + | <!--Some namespaces must have the /doc, /sandbox and /testcases | ||
| + | in talk space--> | ||
| + | | docspace = {{documentation/docspace}} | ||
| + | |||
| + | | 1 = {{{1|}}} <!--Other docname, if fed--> | ||
| + | |||
| + | <!--The namespace is added in /start box2--> | ||
| + | | template page = {{documentation/template page}} | ||
| + | |||
| + | }}<!-- Start content --><!-- | ||
| + | Start load the /doc content: | ||
| + | Note: The line breaks between this comment and the next line are necessary | ||
| + | so "=== Headings ===" at the start and end of docs are interpreted. | ||
| + | --> | ||
| + | {{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}} | ||
| + | | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | ||
| + | | 1111 = {{{content|}}} | ||
| + | | 0110 | 0111 = {{ {{{1}}} }} | ||
| + | | 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }} | ||
| + | | 0000 | 0100 | 0010 | 0101 = | ||
| + | }} | ||
| + | <!-- | ||
| + | End load the /doc content: | ||
| + | Note: The line breaks between this comment and the previous line are necessary | ||
| + | so "=== Headings ===" at the start and end of docs are interpreted. | ||
| + | -->{{documentation/end box2 | ||
| + | | preload = {{{preload|}}} <!--Allow custom preloads--> | ||
| + | | content = {{{content|}}} | ||
| + | | link box = {{{link box|}}} <!--So "link box=off" works--> | ||
| + | |||
| + | <!--Some namespaces must have the /doc, /sandbox and /testcases | ||
| + | in talk space--> | ||
| + | | docspace = {{documentation/docspace}} | ||
| + | |||
| + | | 1 = {{{1|}}} <!--Other docname, if fed--> | ||
| + | |||
| + | <!--The namespace is added in /end box2--> | ||
| + | | template page = {{documentation/template page}} | ||
| + | |||
| + | }}<!-- | ||
| + | End of green doc box | ||
| + | --><noinclude> | ||
| + | |||
| + | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
| + | </noinclude> | ||
| + | </pre> | ||
| + | [[Special:用户贡献/90.222.250.124|90.222.250.124]]([[User talk:90.222.250.124|留言]]) 2013年1月12日 (六) 00:05 (UTC) | ||
| + | |||
| + | == [-{刷新}-] == | ||
| + | |||
| + | 「[-{刷新}-]」這個字符位於何處?請求加上字詞轉換。 | ||
| + | |||
| + | 「[<nowiki>-{zh-hans:刷新; zh-hant:重新整理;}-</nowiki>]」或者「[<nowiki>-{zh-hans:刷新缓存; zh-hant:清除快取;}-</nowiki>]」。-- By [[User:LNDDYL|LNDDYL]].([[User talk:LNDDYL|留言]]) 2014年6月14日 (六) 03:01 (UTC) | ||
| + | |||
| + | == 希望能把模板/模块文档也Lua化 == | ||
| + | {{tl|editprotected}} | ||
| + | 也就是希望导入[[:en:Module:Documentation]],[[:wuu:Module:Documentation|吴语版]]刚刚导入了这一模块。--[[User:Liuxinyu970226|Liuxinyu970226]]([[User talk:Liuxinyu970226|留言]]) 2014年11月4日 (二) 08:00 (UTC) | ||
| + | :已导入,按照英文维百,应该用这种方式调用:{{pre| | ||
| + | <nowiki>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> | ||
| + | <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | ||
| + | </noinclude></nowiki> | ||
| + | }}--<span style="font-family:'Segoe UI', 'Segoe UI Symbol';">[[User_talk:Great_Brightstar|<span style="color:red;">⚞</span>]][[User:Great_Brightstar|<span style="color:red; text-shadow: 0pt 1px 4px salmon;">★</span>]][[Special:用户贡献/Great_Brightstar|<span style="color:red;">⚟</span>]]</span> 2014年11月24日 (一) 05:15 (UTC) | ||
| + | :[[Template:Documentation/sandbox|这里]]有一个示范。--<span style="font-family:'Segoe UI', 'Segoe UI Symbol';">[[User_talk:Great_Brightstar|<span style="color:red;">⚞</span>]][[User:Great_Brightstar|<span style="color:red; text-shadow: 0pt 1px 4px salmon;">★</span>]][[Special:用户贡献/Great_Brightstar|<span style="color:red;">⚟</span>]]</span> 2014年11月26日 (三) 10:59 (UTC) | ||
| + | :: 意义是?--[[User:Jimmy Xu|Jimmy Xu]] <sup>[[User talk:Jimmy Xu|论]]</sup> 2014年11月26日 (三) 14:10 (UTC) | ||
於 2016年3月10日 (四) 14:01 的修訂
模版部份未翻譯
模版中的
for editors to experiment.
未翻譯為中文。—Chunchun2345 (留言) 2009年6月28日 (日) 06:37 (UTC)
- 模板:完成,已翻譯。—-{街燈電箱150號}- 開箱維修 抄錶 檢驗證明 2009年6月28日 (日) 06:47 (UTC)
未翻譯
{{[[{{#switch:
|#default = Editprotected
| =
{{#ifeq: |
| Template:editprotected
| Editprotected
}}
}}|editprotected]]{{#if:||{{{arg}}}}}}}
Template documentation The above documentation is transcluded from Template:Documentation/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. 均需翻译。
--UAL55 (留言) 2010年7月14日 (三) 01:26 (UTC)
英文
{{[[{{#switch:
|#default = Editprotected
| =
{{#ifeq: |
| Template:editprotected
| Editprotected
}}
}}|editprotected]]{{#if:||{{{arg}}}}}}}同上。
追加“清除緩存”按鈕
{{[[{{#switch:
|#default = Editprotected
| =
{{#ifeq: |
| Template:editprotected
| Editprotected
}}
}}|editprotected]]{{#if:||{{{arg}}}}}}}
<!--** /doc 存在** -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 編輯]]
加上:
<!--** /doc 存在** -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=purge}} 清除緩存]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 編輯]]
因為有時候就算是在Firefox按ctrl/shift+F5都依然未能刷新出doc頁的新版本,必須手動進行purge。-- 同舟(留言) 2012年3月27日 (二) 02:53 (UTC)
- 模板:Done Liangent (留言) 2012年3月27日 (二) 09:16 (UTC)
- 貌似应该让用户purge后看模板页较好。Liangent (留言) 2012年3月27日 (二) 09:19 (UTC)
::增加purge按鈕就是為了在模板本頁看到doc更新後的效果。還有有一點不懂的是,追加purge按鈕後其生成的地址居然額外多了版本的代碼,是mediawiki更新v1.19後修訂的?-- 同舟(留言) 2012年3月27日 (二) 09:44 (UTC)
Documentation
English: I would like to add these updated codes please
<!--
Automatically add {{template sandbox notice}} when on a /sandbox page.
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
}}<!--
Automatically add {{pp-template}} to protected templates.
-->{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
| {{pp-template|docusage=yes}}
| {{#if: {{PROTECTIONLEVEL:edit}}
| {{pp-template|docusage=yes}}
| <!--Not protected, or only semi-move-protected-->
}}
}}
}}<!--
Start of green doc box.
-->{{documentation/start box2
| preload = {{{preload|}}} <!--Allow custom preloads-->
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
| heading-style = {{{heading-style|}}}
| content = {{{content|}}}
<!--Some namespaces must have the /doc, /sandbox and /testcases
in talk space-->
| docspace = {{documentation/docspace}}
| 1 = {{{1|}}} <!--Other docname, if fed-->
<!--The namespace is added in /start box2-->
| template page = {{documentation/template page}}
}}<!-- Start content --><!--
Start load the /doc content:
Note: The line breaks between this comment and the next line are necessary
so "=== Headings ===" at the start and end of docs are interpreted.
-->
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}}
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
| 1111 = {{{content|}}}
| 0110 | 0111 = {{ {{{1}}} }}
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }}
| 0000 | 0100 | 0010 | 0101 =
}}
<!--
End load the /doc content:
Note: The line breaks between this comment and the previous line are necessary
so "=== Headings ===" at the start and end of docs are interpreted.
-->{{documentation/end box2
| preload = {{{preload|}}} <!--Allow custom preloads-->
| content = {{{content|}}}
| link box = {{{link box|}}} <!--So "link box=off" works-->
<!--Some namespaces must have the /doc, /sandbox and /testcases
in talk space-->
| docspace = {{documentation/docspace}}
| 1 = {{{1|}}} <!--Other docname, if fed-->
<!--The namespace is added in /end box2-->
| template page = {{documentation/template page}}
}}<!--
End of green doc box
--><noinclude>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
90.222.250.124(留言) 2013年1月12日 (六) 00:05 (UTC)
[-{刷新}-]
「[-{刷新}-]」這個字符位於何處?請求加上字詞轉換。
「[-{zh-hans:刷新; zh-hant:重新整理;}-]」或者「[-{zh-hans:刷新缓存; zh-hant:清除快取;}-]」。-- By LNDDYL.(留言) 2014年6月14日 (六) 03:01 (UTC)
希望能把模板/模块文档也Lua化
{{[[{{#switch:
|#default = Editprotected
| =
{{#ifeq: |
| Template:editprotected
| Editprotected
}}
}}|editprotected]]{{#if:||{{{arg}}}}}}} 也就是希望导入en:Module:Documentation,吴语版刚刚导入了这一模块。--Liuxinyu970226(留言) 2014年11月4日 (二) 08:00 (UTC)