Module_talk:Wp/nod/translit-Thai
Add topicAppearance
Latest comment: 6 years ago by RichardW57m in topic Failure on User Pages
Text and/or other creative content from this version of Module:Wp/nod/translit-Thai was copied or moved into Module:Wp/nod/Translit2 with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists. |
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)
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)
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)