انتقل إلى المحتوى

الفرق بين المراجعتين لصفحة: «وحدة:Labelled list hatnote»

لا يوجد ملخص تحرير
(أنشأ الصفحة ب'-------------------------------------------------------------------------------- -- Labelled list -- -- -- -- This module does the core work of creating a hatnote composed of a list -- -- prefixed by a colon-terminated label, i.e. "LABEL: [andList of pages]", -- -- for {{see also}} and similar templates....')
 
لا ملخص تعديل
سطر ١٦: سطر ١٦:
label = 'انظر أيضًا', --Final fallback for label argument
label = 'انظر أيضًا', --Final fallback for label argument
labelForm = '%s: %s',
labelForm = '%s: %s',
prefixes = {'label', 'label ', 'l'},
prefixes = {'التسمية', 'التسمية  ', 'ت'},
template = 'Module:Labelled list hatnote'
template = 'وحدة:Labelled list hatnote'
}
}


سطر ٣٥: سطر ٣٥:
end
end
local page = display and
local page = display and
mw.ustring.format('%s|%s', mw.ustring.gsub(v, '|.*$', ''), display) or v
string.format('%s|%s', string.gsub(v, '|.*$', ''), display) or v
pages[#pages + 1] = page
pages[#pages + 1] = page
end
end
سطر ٨٥: سطر ٨٥:
end
end
end
end
local text = mw.ustring.format(
local text = string.format(
options.labelForm or defaults.labelForm,
options.labelForm or defaults.labelForm,
label,
label,