Module:Sprite: Difference between revisions

Jump to navigation Jump to search
m
Try again
m (Also attempt to prefix with section (hey look, an actual use for this))
m (Try again)
Line 315: Line 315:
parentDiv:wikitext(link:sub( 1,#link-1 ) .. '|')
parentDiv:wikitext(link:sub( 1,#link-1 ) .. '|')
else
else
if string.find(link,"#") == 1 then
if string.find(link,"#",1,true) == 1 then
parentDiv:wikitext('[[' .. self.__source.ids[itemName].section .. link .. '|')
else
parentDiv:wikitext('[[')
parentDiv:wikitext('[[' .. link .. '|')
local section_id = self.__source.ids[itemName].section
for index, tab in pairs(self.__source.sections) do
if tab.id == section_id then
local section_name = tab.name
parentDiv:wikitext(tab.name)
break
end
end
end
end
parentDiv:wikitext('#' .. link .. '|')
end
end
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits

Navigation menu