Module:MOS intro: Difference between revisions
"...deprecated features" --> "...deprecated parameters" |
move deprecated params check to inside wrapper function |
||
| Line 53: | Line 53: | ||
if tamnams_names_list ~= "" and other_names_list ~= "" then | if tamnams_names_list ~= "" and other_names_list ~= "" then | ||
-- There are both tamnams names and alternate names | -- There are both tamnams names and alternate names | ||
sentence = sentence .. string.format(", named %s in [[TAMNAMS]] (also known as %s),", tamnams_names_list, other_names_list) | sentence = sentence .. string.format(", named %s in [[TAMNAMS]] (also known as %s),", tamnams_names_list, other_names_list) | ||
elseif tamnams_names_list ~= "" and other_names_list == "" then | elseif tamnams_names_list ~= "" and other_names_list == "" then | ||
-- There are only tamnams names | -- There are only tamnams names | ||
| Line 59: | Line 59: | ||
elseif tamnams_names_list == "" and other_names_list ~= "" then | elseif tamnams_names_list == "" and other_names_list ~= "" then | ||
-- There are no tamnams names but there are alternate names | -- There are no tamnams names but there are alternate names | ||
sentence = sentence .. string.format(", also called %s,", other_names_list) | sentence = sentence .. string.format(", also called %s,", other_names_list) | ||
end | end | ||
| Line 295: | Line 295: | ||
local other_names = frame.args["Other Names"] or "" | local other_names = frame.args["Other Names"] or "" | ||
return p._mos_intro(input_mos, other_names) | local depparams = other_names ~= "" and " [[Category:Pages with deprecated template parameters]]" or "" | ||
return p._mos_intro(input_mos, other_names) .. depparams | |||
end | end | ||
return p | return p | ||