සැකිල්ල:Find sources/top proj/testcases

විකිපීඩියා වෙතින්

Introduction and set-up[සංස්කරණය]

Details of how to set up and run these tests

This introductory section does not include any specific test case; it explains how to run the test cases that follow. These tests depend on using the WikiProjects listed in the Talk header template at the top of an article page, and so they cannot be tested in the normal way on this testcases page.

The test cases can be performed in two ways:

  • at Special:ExpandTemplates, populating the Context title field with the appropriate article Talk page title
  • in situ tests – in Preview Mode at the Talk pages of the appropriate article

In each case, the appropriate article means, an article Talkl page which has (or lacks, depending on the sense of the test) the appropriate WikiProject listings. The individual "test cases" below, rather than executing a test, simply provide a list of appropriate articles that may be plugged into the tests described here.

The easier method of the two is probably to use ExpandTemplates:

  1. go to Special:ExpandTemplates
  2. fill in the Context Title at the top of the form using one of the suggested Talk pages listed at the test cases below
  3. paste invocations of the live and sandbox templates, with appropriate params (same params for each)
  4. Click [OK] and observe the results.

Example: to perform test B-1, choose an article from the B-1 list, and do this:

  1. paste Talk:Illyriad into 'Context Title' (Note: this article belongs only to WP:WikiProject Video games.)
  2. paste the following text into the input wikitext box:
{{Find sources/top proj}}
----
{{Find sources/top proj/sandbox}}
3. Expected result: because this article is a member of project Medicine, the token 'medicine' is returned.

The other method is an in situ test. All of the 'tests in this section may be performed in situ after the following set-up:

  1. make the following throw-away changes to sandboxes to set up the tests:
  2. choose a Talk page from one of the test cases below, and note what flavor of find_sources links are found in the Talk_header tempiate
  3. edit the Talk page, and change the transclusion of {{talk header}} to {{talk header/sandbox}} (+ optional params; see individual test cases below)
  4. click "Preview" button and observe the "find sources" links that are generated in the Talk header and how they compare with what you noted before
  5. if the observed links match the "expected result" given in the test case, it's a "pass", otherwise, a "fail".

Any article Talk page with the correct header and projects may be used for this; the lists in the Test cases defined below contains some suggested Talk pages with the correct WikiProjects on them to perform the test case. After viewing the test case result in Preview mode on the page, cancel out and do not save the altered page.

Smoke test[සංස්කරණය]

t.b.a.

B. Medical articles[සංස්කරණය]

B-1 Articles transcluding WikiProject Medicine[සංස්කරණය]

This test may be performed using ExpandTemplates or in situ testing; see #Introduction and set-up.
  • These test cases represent articles that contain the code '{{WikiProject Medicine'.
  • Expected result: these test cases should return the token medicine.

B-2 Articles transcluding WikiProject Medicine via a redirect[සංස්කරණය]

  • These test cases represent articles that do not contain the code '{{WikiProject Medicine'; rather, they include the Medicine project via one of the redirects..
List of redirects to WP:WikiProject Medicine, and transclusions to them from Talk space
Test cases B-2a through B-2j covering ten redirects of Wikiproject Medicine
B-2a - some articles transcluding {{Wikiproject Medicine}}
B-2b - some articles transcluding {{WPMED}}
B-2c - some articles transcluding {{WP Medicine}}
B-2d - some articles transcluding {{Wikiproject Medicine}}
B-2d cases: articles transcluding {{Wikiproject Medicine}}
B-2e - some articles transcluding {{Wikiproject medicine}}
B-2e cases: articles transcluding {{Wikiproject medicine}}
B-2f - some articles transcluding {{WP Med}}
B-2f cases: articles transcluding {{WP Med}}
B-2g - some articles transcluding {{WPMed}}
B-2g cases: articles transcluding {{WPMed}}
B-2h - some articles transcluding {{wpmed}}
B-2h cases: articles transcluding {{wpmed}}
B-2i - some articles transcluding {{WPMedicine}}
B-2i cases: articles transcluding {{WPMedicine}}
B-2j - some articles transcluding {{WPMEDICINE}}
B-2j cases: articles transcluding {{WPMEDICINE}}

C. Video game articles[සංස්කරණය]

D. Other articles not transcluding an autodetected WikiProject[සංස්කරණය]

"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Find_sources/top_proj/testcases&oldid=554666" වෙතින් සම්ප්‍රවේශනය කෙරිණි