モジュール:IsMobile
このモジュールについての説明文ページを モジュール:IsMobile/doc に作成できます
-- モジュール:モバイル判定 local p = {} function p.isMobile(frame) if not frame then return "" -- frameがない場合は空文字返すなど安全策 end local skin = frame:getSkin() -- "minerva" スキンはMobileFrontendのデフォルト if skin == "minerva" then return "1" else return "" end end return p