Toggle menu
91
205
64
19.1K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 22:02, 8 March 2025 by Prd (talk | contribs) (Created page with "-- Unit tests for Module:Redirect template handler. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. function p:test_song() self:preprocess_equals_sandbox_many('{{#invoke:Redirect template handler', 'setSongRedirect', { {"test=yes", "R from song, R to anchor, R with possibilities, R printworthy"}, {"test=yes|test_title=Bulletproof Love (song)", "R from song, R to anchor, R with possibilities, R printworthy"}, {"test=yes|t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Subpages:
Refer to
Module:Redirect template handler



-- Unit tests for [[Module:Redirect template handler]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:test_song()
	self:preprocess_equals_sandbox_many('{{#invoke:Redirect template handler', 'setSongRedirect', {
	{"test=yes", "R from song, R to anchor, R with possibilities, R printworthy"},
	{"test=yes|test_title=Bulletproof Love (song)", "R from song, R to anchor, R with possibilities, R printworthy"},
	{"test=yes|test_title=Bulletproof Love (Method Man song)", "R from song, R to anchor, R with possibilities, R printworthy"},
	{"test=yes|test_title=It's a Small World (After All)|dab_exception=yes", "R from song, R to anchor, R with Wikidata item, R with possibilities, R printworthy"},
    }, {nowiki=1})
end


return p