The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 252: | Line 252: | ||
assert( param.has_content( content ), string.format( '%s does not exist', templateName ) ) | assert( param.has_content( content ), string.format( '%s does not exist', templateName ) ) | ||
for styleName in string.gmatch( content, '<templatestyles src="( | for styleName in string.gmatch( content, '<templatestyles src="(.+)"' ) do | ||
if string.find( styleName, ':', 1, true ) then | if string.find( styleName, ':', 1, true ) then | ||
styleName = mw.text.trim( styleName ) | styleName = mw.text.trim( styleName ) | ||
Line 343: | Line 343: | ||
for _, item in ipairs( invokeList ) do | for _, item in ipairs( invokeList ) do | ||
table.insert( res, string.format( | table.insert( res, string.format( | ||
"<div role='note' class='hatnote'><div class=hatnote-container navigation-not-searchable'><span class='hatnote-icon metadata'>[[File:WikimediaUI-Code.svg|14px|link=]]</span>'''%s''' invokes function '''%s''' in [[%s]] using [[ | "<div role='note' class='hatnote'><div class=hatnote-container navigation-not-searchable'><span class='hatnote-icon metadata'>[[File:WikimediaUI-Code.svg|14px|link=]]</span>'''%s''' invokes function '''%s''' in [[%s]] using [[Star Citizen:Lua|Lua]].</div></div>", | ||
templateName, | templateName, | ||
item.funcName, | item.funcName, | ||
Line 548: | Line 548: | ||
for _, item in ipairs( styleList ) do | for _, item in ipairs( styleList ) do | ||
table.insert( res, string.format( | table.insert( res, string.format( | ||
"<div role='note' class='hatnote'><div class=hatnote-container navigation-not-searchable'><span class='hatnote-icon metadata'>[[File:WikimediaUI-Code.svg|14px|link=]]</span>'''%s''' invokes [[%s]] using [[ | "<div role='note' class='hatnote'><div class=hatnote-container navigation-not-searchable'><span class='hatnote-icon metadata'>[[File:WikimediaUI-Code.svg|14px|link=]]</span>'''%s''' invokes [[%s]] using [[Star Citizen:TemplateStyles|TemplateStyles]].</div></div>", | ||
templateName, | templateName, | ||
item.styleName | item.styleName |