模板:Testcases notice
外观
這是Template:Testcases notice及其沙盒的測試樣例。 以更新內容。 如果此頁有過多的複雜模板的用例,頁面末尾的用例可能會因為 MediaWiki的技術限制而出錯。參看本頁的 HTML 源碼中的注釋 "NewPP limit report"。 您還可以用特殊頁面 Special:展開模板來測試模板的使用效果。 您可以通過以下連結測試本模板在不同外觀下的效果: |
This page is not a sandbox and must not be used for test editing. To experiment, use a sandbox. |
{{Testcases notice}} is meant to be placed at the top of a /testcases page, i.e. a page where a test version (a "sandbox" version) of (usually) a template and its parameters is tested and (usually) compared with the version currently in use (the "main" version). For further information about template sandboxes and testcase pages, see Wikipedia:Template sandbox and test cases.
Usage
[编辑]{{Testcases notice}}
, i.e. the template without any parameters, produces the notice as formatted above.
Parameters
[编辑]You may specify the link to the associated sandbox page using the parameter sandbox link:
{{Testcases notice |sandbox link=../[alternate sandbox name here]}}
You may also specify that some other text is substituted for the word "sandbox" shown in the template using the parameter sandbox name:
{{Testcases notice |sandbox link=../[alternate sandbox name here] |sandbox name=[alternate to "sandbox" here]}}
{{Testcases notice | [template name] | purgelink = | sandbox link = | sandbox name = | category = | style = }}
- {{{1}}} Template:Nobold
- Full name of the template being tested on the page, including the "Template:" prefix. If omitted, the default is the base page of the test cases page. Be careful not to use any leading or trailing spaces with this parameter, as they will affect the display of the template link.
- sandbox link
- The page that the sandbox link in the message targets. Can be an absolute page name, or relative to the test cases page. The default is "../sandbox".
- sandbox name
- The text shown for the sandbox link. The default is "sandbox".
- category
- Category and sort key to use for the test cases page instead of the default of
[[Category:Template test cases|{{PAGENAME}}]]
. When using this parameter, the double square brackets and "Category:" prefix are required. To suppress the category, use|category=
(i.e. category without any value).
subpage-name- (deprecated) Sets the sandbox link and sandbox name parameters at the same time. The value is prefixed with "../" for the sandbox link, so must be a page name relative to the base page. For example,
subpage-name=sandbox3
impliessandbox link=../sandbox3 |sandbox name=sandbox3
.
See also
[编辑]- {{Documentation}}, for use at the bottom of templates and their /sandbox pages.
- {{Template sandbox notice}}, for use at the bottom of /sandbox pages if Template:Braces is not used.
上述文档嵌入自Template:Testcases notice/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |