Jump to content

Template:Testcases notice: Difference between revisions

From Elite Dangerous Wiki
Content deleted Content added
mNo edit summary
 
m Localise imported template guidance and policy links; preserve index layout and licence information
 
Line 2: Line 2:
| image = [[File:Gnome-applications-science.svg|42px|alt=icon]]
| image = [[File:Gnome-applications-science.svg|42px|alt=icon]]
| text =
| text =
This is the [[Wikipedia:Template sandbox and test cases|template test cases]] page for the <noinclude>[[Template:Template test cases notice/sandbox|sandbox]]</noinclude><includeonly>[[{{{sandbox link|{{#if:{{{1|}}}|{{{1|}}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}/{{{subpage-name|sandbox}}}}}}|{{{sandbox name|{{{subpage-name|sandbox}}}}}}]]</includeonly> of [[:{{#if:{{{1|}}}|{{{1|}}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}]]. {{Purge|Purge this page}} to update the examples. <br /> <small>If there are many examples of a complicated template, later ones may break due to [[Wikipedia:Template limits|limits in MediaWiki]]; see the HTML comment "[[Help:Template limits#How can you find out?|NewPP limit report]]" in the rendered page. <br /> You can also use [[Special:ExpandTemplates]] to examine the results of template uses. <br /> You can test how this page looks in the different skins and parsers with these links:</small>
This is the [[Project:Template documentation|template test cases]] page for the <noinclude>[[Template:Template test cases notice/sandbox|sandbox]]</noinclude><includeonly>[[{{{sandbox link|{{#if:{{{1|}}}|{{{1|}}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}/{{{subpage-name|sandbox}}}}}}|{{{sandbox name|{{{subpage-name|sandbox}}}}}}]]</includeonly> of [[:{{#if:{{{1|}}}|{{{1|}}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}]]. {{Purge|Purge this page}} to update the examples. <br /> <small>If there are many examples of a complicated template, later ones may break due to [[Project:Template documentation|limits in MediaWiki]]; see the HTML comment "[[Help:Template limits#How can you find out?|NewPP limit report]]" in the rendered page. <br /> You can also use [[Special:ExpandTemplates]] to examine the results of template uses. <br /> You can test how this page looks in the different skins and parsers with these links:</small>
<div style="text-align:center;font-size:90%;">{{select skin}}<br />
<div style="text-align:center;font-size:90%;">{{select skin}}<br />
{{horizontal list|class=inline plainlinks nowraplinks
{{horizontal list|class=inline plainlinks nowraplinks

Latest revision as of 09:59, 31 October 2026

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Testcases notice/doc" to edit its documentation if it is available. (How does this work?)

{{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:

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]
  | sandbox link =
  | sandbox name =
  | category =
}}
|1=  (i.e. first unnamed parameter)
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 implies sandbox 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 {{Documentation}} is not used.