Toggle menu
15
236
70
27.5K
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 02:07, 9 March 2025 by Prd (talk | contribs) (Created page with "local p = require('Module:UnitTests') function p:test_basic() self:preprocess_equals('{{#invoke:PageLinks/sandbox | main | t | page=Example }}', '<span>Example (talk)</span>') end function p:test_category() self:preprocess_equals('{{#invoke:PageLinks/sandbox | main | t | page=Category:Example }}', 'Category:Example (talk)') end function p:test_talk() self:preprocess_equals('{{#...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Refer to
Module:PageLinks
Specialized Lua module, please take note of this not being a template.



local p = require('Module:UnitTests')

function p:test_basic()
    self:preprocess_equals('{{#invoke:PageLinks/sandbox | main | t | page=Example }}', '<span>[[:Example]]&nbsp;([[Talk:Example|talk]])</span>')
end

function p:test_category()
    self:preprocess_equals('{{#invoke:PageLinks/sandbox | main | t | page=Category:Example }}', '[[:Category:Example|Category:Example]]&nbsp;([[Category talk:Example|talk]])')
end

function p:test_talk()
    self:preprocess_equals('{{#invoke:PageLinks/sandbox | single | t | page=Example }}', '[[Talk:Example|talk]]')
end

function p:test_views()
    self:preprocess_equals('{{#invoke:PageLinks/sandbox | single | vlm-sgs | page=Example }}', '[http://stats.grok.se/en/201312/Example stats]')
end

function p:test_logs()
    self:preprocess_equals('{{#invoke:PageLinks/sandbox | single | tl | page=Sylven Landesberg }}', '[//en.wikipedia.org/w/index.php?title=Special%3ALog&page=Sylven+Landesberg logs]')
end

return p