localp=require('Module:UnitTests')functionp:test_basic()self:preprocess_equals('{{#invoke:PageLinks/sandbox | main | t | page=Example }}','<span>[[:Example]] ([[Talk:Example|talk]])</span>')endfunctionp:test_category()self:preprocess_equals('{{#invoke:PageLinks/sandbox | main | t | page=Category:Example }}','[[:Category:Example|Category:Example]] ([[Category talk:Example|talk]])')endfunctionp:test_talk()self:preprocess_equals('{{#invoke:PageLinks/sandbox | single | t | page=Example }}','[[Talk:Example|talk]]')endfunctionp:test_views()self:preprocess_equals('{{#invoke:PageLinks/sandbox | single | vlm-sgs | page=Example }}','[http://stats.grok.se/en/201312/Example stats]')endfunctionp: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]')endreturnp