Module talk:Fiction redirect category handler/testcases
All 36 tests passed.
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
{{#invoke:Fiction redirect category handler|character|test=yes|restricted=yes}} | R from fictional character, R restricted, R to section, R with possibilities, R printworthy | R from fictional character, R restricted, R to section, R with possibilities, R printworthy | R from fictional character, R restricted, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|birth_name=yes}} | R from fictional character, R from birth name, R to section, R printworthy | R from fictional character, R from birth name, R to section, R printworthy | R from fictional character, R from birth name, R to section, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|alt_name=yes}} | R from fictional character, R from alternative name, R to section, R printworthy | R from fictional character, R from alternative name, R to section, R printworthy | R from fictional character, R from alternative name, R to section, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|former_name=yes}} | R from fictional character, R from former name, R to section, R printworthy | R from fictional character, R from former name, R to section, R printworthy | R from fictional character, R from former name, R to section, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|short_name=yes}} | R from fictional character, R from short name, R to section, R printworthy | R from fictional character, R from short name, R to section, R printworthy | R from fictional character, R from short name, R to section, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|long_name=yes}} | R from fictional character, R from long name, R to section, R printworthy | R from fictional character, R from long name, R to section, R printworthy | R from fictional character, R from long name, R to section, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|title_name=yes}} | R from fictional character, R from name with title, R to section, R unprintworthy | R from fictional character, R from name with title, R to section, R unprintworthy | R from fictional character, R from name with title, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|alt_spelling=yes}} | R from fictional character, R from alternative spelling, R to section, R unprintworthy | R from fictional character, R from alternative spelling, R to section, R unprintworthy | R from fictional character, R from alternative spelling, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|to_diacritic=yes}} | R from fictional character, R to diacritic, R to section, R unprintworthy | R from fictional character, R to diacritic, R to section, R unprintworthy | R from fictional character, R to diacritic, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|incorrect_name=yes}} | R from fictional character, R from incorrect name, R to section, R unprintworthy | R from fictional character, R from incorrect name, R to section, R unprintworthy | R from fictional character, R from incorrect name, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|capitalisation=yes}} | R from fictional character, R from miscapitalisation, R to section, R unprintworthy | R from fictional character, R from miscapitalisation, R to section, R unprintworthy | R from fictional character, R from miscapitalisation, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|unneeded_dab=yes}} | R from fictional character, R from unnecessary disambiguation, R to section, R unprintworthy | R from fictional character, R from unnecessary disambiguation, R to section, R unprintworthy | R from fictional character, R from unnecessary disambiguation, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|primary=yes}} | R from fictional character, R to section, R avoided double redirect, R printworthy | R from fictional character, R to section, R avoided double redirect, R printworthy | R from fictional character, R to section, R avoided double redirect, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|merge=yes}} | R from fictional character, R to section, R from merge, R with possibilities, R printworthy | R from fictional character, R to section, R from merge, R with possibilities, R printworthy | R from fictional character, R to section, R from merge, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|history=yes}} | R from fictional character, R to section, R with history, R with possibilities, R printworthy | R from fictional character, R to section, R with history, R with possibilities, R printworthy | R from fictional character, R to section, R with history, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|draft_move=yes}} | R from fictional character, R from move, R from draft namespace, R to section, R unprintworthy | R from fictional character, R from move, R from draft namespace, R to section, R unprintworthy | R from fictional character, R from move, R from draft namespace, R to section, R unprintworthy |
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
{{#invoke:Fiction redirect category handler|character|test=yes|test_title=Sawyer}} | R from fictional character, R to section, R with Wikidata item, R with possibilities, R printworthy | R from fictional character, R to section, R with Wikidata item, R with possibilities, R printworthy | R from fictional character, R to section, R with Wikidata item, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|test_title=Sawyer (characteer)}} | R from fictional character, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional character, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional character, R from incorrect disambiguation, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|test_title=Sawyer (Lost)|correct_disambiguation=Lost}} | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|test_title=Sawyer (Lost character)|correct_disambiguation=Lost}} | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy |
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
{{#invoke:Fiction redirect category handler|element|test=yes|test_title=4 8 15 16 23 42}} | R from fictional element, R to section, R with possibilities, R printworthy | R from fictional element, R to section, R with possibilities, R printworthy | R from fictional element, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|element|test=yes|test_title=4 8 15 16 23 42 (element)}} | R from fictional element, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional element, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional element, R from incorrect disambiguation, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|element|test=yes|test_title=4 8 15 16 23 42 (The Lost Numbers)}} | R from fictional element, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional element, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional element, R from incorrect disambiguation, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|element|test=yes|test_title=4 8 15 16 23 42 (Lost element)|correct_disambiguation=Lost}} | R from fictional element, R to section, R with possibilities, R printworthy | R from fictional element, R to section, R with possibilities, R printworthy | R from fictional element, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|element|test=yes|test_title=4 8 15 16 23 42 (Lost)|correct_disambiguation=Lost}} | R from fictional element, R to section, R with possibilities, R printworthy | R from fictional element, R to section, R with possibilities, R printworthy | R from fictional element, R to section, R with possibilities, R printworthy |
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
{{#invoke:Fiction redirect category handler|location|test=yes|test_title=The Swan}} | R from fictional location, R to section, R with possibilities, R printworthy | R from fictional location, R to section, R with possibilities, R printworthy | R from fictional location, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|location|test=yes|test_title=The Swan (location)}} | R from fictional location, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional location, R from incorrect disambiguation, R to section, R unprintworthy | R from fictional location, R from incorrect disambiguation, R to section, R unprintworthy | |
{{#invoke:Fiction redirect category handler|location|test=yes|test_title=The Swan (Lost)|correct_disambiguation=Lost}} | R from fictional location, R to section, R with possibilities, R printworthy | R from fictional location, R to section, R with possibilities, R printworthy | R from fictional location, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|location|test=yes|test_title=The Swan (Lost location)|correct_disambiguation=Lost}} | R from fictional location, R to section, R with possibilities, R printworthy | R from fictional location, R to section, R with possibilities, R printworthy | R from fictional location, R to section, R with possibilities, R printworthy |
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
{{#invoke:Fiction redirect category handler|character|test=yes|}} | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|anchor=yes}} | R from fictional character, R to anchor, R with possibilities, R printworthy | R from fictional character, R to anchor, R with possibilities, R printworthy | R from fictional character, R to anchor, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|section=test}} | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy | R from fictional character, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|list=test}} | R from fictional character, R to list entry, R with possibilities, R printworthy | R from fictional character, R to list entry, R with possibilities, R printworthy | R from fictional character, R to list entry, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|to_article=test}} | R from fictional character, R with possibilities, R printworthy | R from fictional character, R with possibilities, R printworthy | R from fictional character, R with possibilities, R printworthy |
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
{{#invoke:Fiction redirect category handler|character|test=yes|series_name=Arrow (TV series)|series_name2=DC Extended Universe}} | Arrow (TV series), DC Extended Universe, R from fictional character, R to section, R with possibilities, R printworthy | Arrow (TV series), DC Extended Universe, R from fictional character, R to section, R with possibilities, R printworthy | Arrow (TV series), DC Extended Universe, R from fictional character, R to section, R with possibilities, R printworthy | |
{{#invoke:Fiction redirect category handler|character|test=yes|series_name=Arrow (TV series)|series_name2=DC Extended Universe|series_name3=The Flash (TV series)}} | Arrow (TV series), DC Extended Universe, The Flash (TV series), R from fictional character, R to section, R with possibilities, R printworthy | Arrow (TV series), DC Extended Universe, The Flash (TV series), R from fictional character, R to section, R with possibilities, R printworthy | Arrow (TV series), DC Extended Universe, The Flash (TV series), R from fictional character, R to section, R with possibilities, R printworthy |