Module:SEO: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) mNo edit summary |
RiceEmpress (talk | contribs) mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 7: | Line 7: | ||
function seo.setStatic(frame) | function seo.setStatic(frame) | ||
local thumb = '' | |||
local args = frame:getParent().args | local args = frame:getParent().args | ||
if args.image1 then thumb = args.image1 else thumb = args.image end | |||
mw.ext.seo.set{ | mw.ext.seo.set{ | ||
image = thumb | |||
} | } | ||
end | end | ||
return seo | return seo | ||
Latest revision as of 17:49, 5 July 2025
Documentation for this module may be created at Module:SEO/doc
local seo = {}
function seo.set( argTable )
mw.ext.seo.set( argTable )
end
function seo.setStatic(frame)
local thumb = ''
local args = frame:getParent().args
if args.image1 then thumb = args.image1 else thumb = args.image end
mw.ext.seo.set{
image = thumb
}
end
return seo