Module talk:Sandbox/RexxS/Blacklist

Test cases

edit

Fragment to demo exact matching for field names in blacklist:

  • {{#invoke:Sandbox/RexxS/Blacklist |isBlacklisted |name=title |suppressfields=aaa, bbb, title, ccc, ddd}} → blacklisted
  • {{#invoke:Sandbox/RexxS/Blacklist |isBlacklisted |name=title |suppressfields=aaa; bbb; title; ccc; ddd}} → blacklisted
  • {{#invoke:Sandbox/RexxS/Blacklist |isBlacklisted |name=title |suppressfields=aaa; bbb; other title 1; ccc; ddd}} → not blacklisted
  • {{#invoke:Sandbox/RexxS/Blacklist |isBlacklisted |name=title |suppressfields=aaa; bbb; other_title_1; ccc; ddd}} → not blacklisted
  • {{#invoke:Sandbox/RexxS/Blacklist |isBlacklisted |name=other title |suppressfields=aaa; bbb; other title 1; ccc; ddd}} → not blacklisted
  • {{#invoke:Sandbox/RexxS/Blacklist |isBlacklisted |name=other title 1 |suppressfields=aaa; bbb; other title 1; ccc; ddd}} → blacklisted