Module:Dochead: Difference between revisions
for corr_module and corr_template, do not append Module: or Template: (bugfix ongoing) |
bugfix |
||
| Line 82: | Line 82: | ||
else | else | ||
result = string.format( | result = string.format( | ||
"This module has a template that is currently missing or does not use this module. ([[Special:EditPage/%s|edit template]])", | "This module has a template that is currently missing or does not use this module. ([[Special:EditPage/Template:%s|edit template]])", | ||
corr_template | corr_template | ||
) | ) | ||
| Line 154: | Line 154: | ||
"This template is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/Template:%s|edit template]])", | "This template is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/Template:%s|edit template]])", | ||
corr_module, | corr_module, | ||
pagename | |||
) | ) | ||
else | else | ||
| Line 171: | Line 171: | ||
elseif has_module and not is_module_invoked then | elseif has_module and not is_module_invoked then | ||
result = string.format( | result = string.format( | ||
"This metatemplate is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/%s|edit template]])", | "This metatemplate is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/Template:%s|edit template]])", | ||
corr_module, | corr_module, | ||
pagename | |||
) | ) | ||
else | else | ||
| Line 191: | Line 191: | ||
elseif has_module and header ~= "" and not is_module_invoked then | elseif has_module and header ~= "" and not is_module_invoked then | ||
result = string.format( | result = string.format( | ||
"%s. This template is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/%s|edit template]])", | "%s. This template is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/Template:%s|edit template]])", | ||
header, | header, | ||
corr_module, | corr_module, | ||
pagename | |||
) | ) | ||
elseif has_module and header == "" and is_module_invoked then | elseif has_module and header == "" and is_module_invoked then | ||
| Line 203: | Line 203: | ||
elseif has_module and header == "" and not is_module_invoked then | elseif has_module and header == "" and not is_module_invoked then | ||
result = string.format( | result = string.format( | ||
"This template is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/%s|edit template]])", | "This template is implemented by the Lua module [[Module:%s]] but does not use it. ([[Special:EditPage/Template:%s|edit template]])", | ||
corr_module, | corr_module, | ||
pagename | |||
) | ) | ||
else | else | ||