Template:Search link/testcases
From Wikipedia, the free encyclopedia
This full test suite tests all the parameters in named and unnamed forms:
|query=
and|text=
tested explicitly per the link label|label=
and|link=
tested implicitly during the other tests|ns=
with one and two namespaces
This is the template test cases page for the sandbox of Template:Search link. Purge this page to update the examples. 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 and parsers with these links: |
It tests all possible types of values for the parameters.
- Each grouping should have the same number of hits.
- Many just search this page (prefix:{{fullpagename}}}, and so they are very fast.
- Some use a dummy prefix just to test the name and query outputs.
- For
|ns=
tests, check the URL. - The link should simply look "good". The query is
[sandbox]
so that the label can be tested to ignore brackets.