Anonymous

Module:I18n: Difference between revisions

From Elwiki
m
no edit summary
(Add i18n.getTranslatedTitle)
mNo edit summary
 
Line 66: Line 66:
         local tp = mw.title.makeTitle('', title_full)
         local tp = mw.title.makeTitle('', title_full)
         if tp.exists then
         if tp.exists then
             display_title = string.match(tp:getContent(), "%{%{DISPLAYTITLE:([^}]-)%}%}")
             display_title = string.match(tp:getContent(), "%{%{DISPLAYTITLE:([^}]+)%}%}")
         end
         end
     end
     end