Modul:If preview/configuration
Bu modul uchun Modul:If preview/configuration/doc nomli hujjat sahifasini yaratishingiz mumkin
local frame = mw.getCurrentFrame()
local function is_preview()
local revision_id = frame:preprocess('{{REVISIONID}}')
return revision_id == nil or revision_id == ''
end
local function templatestyles()
return frame:extensionTag{
name = 'templatestyles', args = { src = 'Module:If preview/styles.css' }
}
end
return {
preview = is_preview(),
templatestyles = templatestyles(),
warning_infrastructure = '%s<div class="preview-warning"><strong>Ogohlantirish:</strong> %s</div>',
missing_warning = 'Andoza ogohlantirish matniga ega emas. Iltimos, uni qoʻshing.'
}