You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
function p.getHonorVariants( landingPage )
if ( landingPage == nil or landingPage == "" ) then
landingPage = 'LOLOLOLOLOLOL'
end
return landingPage
end
function p.getExpandedHonorVariants(frame, variantsString, landingPage, targetPage)
-- check the input variables
if (frame == nil or landingPage == nil or landingPage == "" or targetPage == nil or targetPage == "") then
return "fatal error"
end
if (variantsString == nil or variantsString == "") then
local linkTitle = frame:expandTemplate{ title = 'Localize', args = { targetPage } }
return {
{
url = "[[" .. landingPage .. "/" .. targetPage .. frame:expandTemplate{title='GetLangSuffix'} .. "|" .. linkTitle .. "]]"
}
}
000
1:0
Template used on this page:
Return to Module:HonorUtils.