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 = {}
local strUtils = require( "Module:StringUtils" )
function p.getCompletExpandedHonorVariants(variantsString, landingPage, langSuffix)
local t_variants = p.expandHonorVariants(variantsString)
t_variants = p.translateHonorVariants(t_variants)
t_variants = p.createHonorVariantsURLs(t_variants, landingPage, targetPage, langSuffix)
end
function p.honorVariantsExpand(variantsString)
--[[structure of variants String:
variant1;;authority1:authority2::counry1;counry2;country3;;variant3
]]
if (variantsString == nil or variantsString == "") then return {} end
local t_variants = strUtils.explode(";;", variantsString)
for key, variant in pairs(t_variants) do
t_variants[key] = {
orig = variant,
countries = strUtils.explode(";", variant)
000
1:0
Template used on this page:
Return to Module:HonorUtils.