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(frame, variantsString, landingPage, targetPage, langSuffix)
local t_variants = p.expandHonorVariants(frame, variantsString)
t_variants = p.translateHonorVariants(frame, t_variants)
t_variants = p.createHonorVariantsURLs(frame, t_variants, landingPage, targetPage, langSuffix)
end
function p.honorVariantsExpand(frame, variantsString)
--[[structure of variants String:
variant1;;authority1:authority2::counry1;counry2;country3;;variant3
NAD::United States;;NAD(EUD;SPD)::Austria;Switzerland;Germany
NAD;;NAD(EUD)
]]
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] = {
000
1:0
Template used on this page:
Return to Module:HonorUtils.