Template:he-lemma
[Term?]
- The following documentation is located at Template:he-lemma/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Unit tests
Unit tests (+/-)
- in the typical case, the first argument is provided, and is a valid page-name other than the current page:
- blank/missing first argument:
- first argument == {{PAGENAME}}:
- {{he-lemma|{{PAGENAME}}}}:
Expected: he-lemma Actual: he-lemma
- {{he-lemma|{{PAGENAME}}|wv=WV}}:
Expected: WV Actual: WV
- {{he-lemma|{{PAGENAME}}|dwv=DWV}}:
Expected: he-lemma / DWV Actual: he-lemma / DWV
- {{he-lemma|{{PAGENAME}}|wv=WV|dwv=DWV}}:
Expected: WV / DWV Actual: WV / DWV
- {{he-lemma|{{PAGENAME}}}}:
- first argument not-a-valid-page-name:
- test tr= (the code for that is independent of the above, so no "cross-testing" is needed):