Модуль:Предмет: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 47: | Строка 47: | ||
local prefix = args[2] or "" | local prefix = args[2] or "" | ||
local vertical = argsRaw.vertical | local vertical = argsRaw.vertical | ||
-- Режим репозитория: дополнительные данные только при необходимости | -- Режим репозитория: дополнительные данные только при необходимости | ||
| Строка 104: | Строка 101: | ||
image, labelOutput | image, labelOutput | ||
) | ) | ||
result = table.concat({ imagerepository | result = table.concat({ imagerepository, prefix }, " ") | ||
else | else | ||
-- Горизонтальное отображение | -- Горизонтальное отображение | ||
imagerepository = string.format("<span style='display:inline-block;'>%s%s</span>", image, repository) | imagerepository = string.format("<span style='display:inline-block;'>%s%s</span>", image, repository) | ||
result = table.concat({ imagerepository, labelOutput | result = table.concat({ imagerepository, labelOutput, prefix }, " ") | ||
end | end | ||
| Строка 119: | Строка 116: | ||
return frame:preprocess(string.format( | return frame:preprocess(string.format( | ||
"{{LinkCard|name=%s %s %s|pin=%s|image-full=%s|pixel=%s|link=%s%s}}", | "{{LinkCard|name=%s %s %s|pin=%s|image-full=%s|pixel=%s|link=%s%s}}", | ||
labelOutput | labelOutput, prefix, repository, image, pixel, linkParam, sideStyle | ||
)) | )) | ||
end | end | ||