On November 27th, 2022, the 8,000th article was added to the SuccuWiki!

Template:Template test cases notice: Difference between revisions

From SuccuWiki - The Wiki of the Succubi
Jump to navigation Jump to search
m (1 revision)
 
mNo edit summary
 
Line 1: Line 1:
{{ombox
{{ombox
| image = [[File:Gnome-applications-science.svg|42px]]
| image = [[File:Gnome-applications-science.png|42px]]
| text =  
| text =  
This is the [[Wikipedia:Template sandbox and test cases|template test case]] page for the <noinclude>[[Template:Template test cases notice/sandbox|sandbox]]</noinclude><includeonly>[[{{{sandbox link|../{{{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 "NewPP limit report" in the rendered page.
This is the template test case page for the <noinclude>sandbox</noinclude><includeonly>[[{{{sandbox link|../{{{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 limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page.
 
You can also use [[Special:ExpandTemplates]] to examine the results of template uses.


You can test how this page looks in the different skins with these links:</small>
You can test how this page looks in the different skins with these links:</small>

Latest revision as of 10:14, 11 October 2012

[edit] [history] [purge] Documentation icon Template documentation

This is the {{template test cases notice}} template.

It can be placed at the top of template /testcases pages.

To learn more about how to use template /sandbox and /testcases subpages see Wikipedia:Template test cases.

Usage

In the simplest case, this template needs no parameters.

{{template test cases notice}}

You may specify the link to the associated sandbox page using the parameter sandbox link:

{{template test cases notice|sandbox link=../AlternateSandboxName}}

You may also specify that some other text is substituted for the word 'sandbox' shown in the template using the parameter sandbox name:

{{template test cases notice|sandbox link=../sandbox2|sandbox name=second sandbox}}

All parameters

{{template test cases notice|template name|category =
 | sandbox link =
 | sandbox name =
 | subpage-name =
}}
  • 1 (unnamed 1st 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.
  • 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= without any value following it.
  • 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.
  • 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 is equivalent to sandbox link=../sandbox3 | sandbox name=sandbox3.