打开/关闭搜索
搜索
打开/关闭菜单
1K
5.2K
4
8.2K
星砂岛百科
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
本站正在进行早期测试,目前仍存在许多内容的缺失。
查看“︁模块:CSS”︁的源代码
来自星砂岛百科
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:CSS
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:已验证邮箱用户
您没有权限编辑
模块
命名空间内的页面。
该页面已受到保护,不能编辑,因为它被嵌入以下开启“连锁保护”选项的页面:*
星砂岛百科
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local p = {} local static = require('Module:Static') static.CSS = static.CSS or {} local function trim(value) if value == nil then return '' end return mw.text.trim(tostring(value)) end local function get_args(frame) if frame == mw.getCurrentFrame() and frame:getParent() then return require('Module:ProcessArgs').merge(true) end return frame end local function namespace_prefix(code) local normalized = trim(code) if normalized == '828' then return 'Module:' end if normalized == '4' then return 'Project:' end if normalized == '0' then return ':' end return 'Template:' end local function get_fullpagename() local title = mw.title.getCurrentTitle() return title and title.prefixedText or '' end local function mark_loaded(key) static.CSS[key] = true end local function is_loaded(key) return static.CSS[key] == true end function p.call(name, ns_code, file_name) local frame = mw.getCurrentFrame() local target = trim(name) if target == '' then target = get_fullpagename() end local suffix = trim(file_name) if suffix == '' then suffix = 'styles.css' else suffix = suffix .. '.css' end local ts_path = namespace_prefix(ns_code) .. target .. '/' .. suffix local loaded_key = get_fullpagename() .. '|' .. ts_path if is_loaded(loaded_key) then return '' end mark_loaded(loaded_key) return frame:extensionTag('templatestyles', '', { src = ts_path }) end function p.quickCall(name, ns_code, file_name) return p.call(name, ns_code, file_name) end function p.main(frame) local args = get_args(frame) return p.call(args[1], args[2], args[3]) end return p
该页面嵌入的页面:
模块:CSS/doc
(
查看源代码
)
返回
模块:CSS
。
查看“︁模块:CSS”︁的源代码
来自星砂岛百科