Module:Navbox: Difference between revisions
hmmm, not my smartest moment
m>Dragons flight (edge cases) |
m>Dragons flight (hmmm, not my smartest moment) |
||
Line 92: | Line 92: | ||
title = mw.title.new( args[1]:sub(2) ); | title = mw.title.new( args[1]:sub(2) ); | ||
else | else | ||
title = mw.title.new( 'Template:' .. args[1] ); | title = mw.title.new( args[1] ); | ||
if title.namespace == 0 then | |||
title = mw.title.new( 'Template:' .. args[1] ); | |||
end | |||
end | end | ||