Jump to content


Add topic
From Wikimedia Incubator
Latest comment: 5 years ago by RichardW57m in topic Failure on User Pages

Failure on User Pages

[edit source]

The template Wp/nod/translit fails when applied to user pages (e.g. User:RichardW57/translit-nil-choke). This makes it more difficult to hide messy in-work pages. The problem seems to be that Lua function mw.title.new [1] does not consider user pages to have valid names, and therefore returns nil! -- RichardW57 (talk) 20:43, 4 March 2018 (UTC)Reply

The problems is that one should have

local PAGENAME = mw.title.getCurrentTitle().prefixedText

instead of

local PAGENAME = mw.title.getCurrentTitle().text

The fix was verified in Module:Wp/nod/Translit2 using a 'Template:' prefix; correction not yet implemented here. -- RichardW57 (talk) 23:52, 1 August 2018 (UTC)Reply

Fix applied, tested using User:RichardW57/translit-nil-choke, and test passed. Apologise for forgetting to log in to make the change. --RichardW57m (talk) 13:44, 2 August 2018 (UTC)Reply


[edit source]