Use module hatnote for TS message
starcitizen>Alistair3149 Немає опису редагування |
starcitizen>Alistair3149 (Use module hatnote for TS message) |
||
| Рядок 6: | Рядок 6: | ||
local param = require( 'Module:Paramtest' ) | local param = require( 'Module:Paramtest' ) | ||
local dpl = require( 'Module:DPLlua' ) | local dpl = require( 'Module:DPLlua' ) | ||
local mHatnote = require('Module:Hatnote') | |||
local moduleIsUsed = false | local moduleIsUsed = false | ||
local COLLAPSE_LIST_LENGTH_THRESHOLD = 5 | local COLLAPSE_LIST_LENGTH_THRESHOLD = 5 | ||
| Рядок 559: | Рядок 560: | ||
for _, item in ipairs( templateStylesList ) do | for _, item in ipairs( templateStylesList ) do | ||
local msg = string.format( | |||
"'''%s''' invokes [[%s]] using [[Star Citizen:TemplateStyles|TemplateStyles]].", | |||
currentPageName, | |||
item.styleName | |||
) ) | ) | ||
table.insert( res, mHatnote._hatnote( msg, { icon='WikimediaUI-Palette.svg' } ) ) | |||
end | end | ||