٦٤
تعديل
(أنشأ الصفحة ب'-------------------------------------------------------------------------------- -- 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 = {' | prefixes = {'التسمية', 'التسمية ', 'ت'}, | ||
template = ' | template = 'وحدة:Labelled list hatnote' | ||
} | } | ||
| سطر ٣٥: | سطر ٣٥: | ||
end | end | ||
local page = display and | local page = display and | ||
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 = | local text = string.format( | ||
options.labelForm or defaults.labelForm, | options.labelForm or defaults.labelForm, | ||
label, | label, | ||