Module:MainPageSkin: Difference between revisions

From IxWiki
Jump to navigation Jump to search
Created page with "local p = {} function p.getSkin(frame) local skin = frame.args[1] or mw.user.options.get('skin') if skin == 'citizen' then return 'citizen' else return 'vector' end end return p"
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


function p.getSkin(frame)
function p.getSkin(frame)
   local skin = frame.args[1] or mw.user.options.get('skin')
   local skin = frame.args[1] or 'vector'
    
    
   if skin == 'citizen' then
   if skin == 'citizen' then
     return 'citizen'
     return 'citizen'
  elseif skin == 'vector-2022' then
    return 'vector-2022'
   else
   else
     return 'vector'
     return 'vector'

Latest revision as of 14:08, 1 August 2024

Documentation for this module may be created at Module:MainPageSkin/doc

local p = {}

function p.getSkin(frame)
  local skin = frame.args[1] or 'vector'
  
  if skin == 'citizen' then
    return 'citizen'
  elseif skin == 'vector-2022' then
    return 'vector-2022'
  else
    return 'vector'
  end
end

return p