“文件:Server HanamiCraft.jpg”与“MediaWiki:Common.js”:页面之间的差异

来自NebulaeWiki
(页面间差异)
无编辑摘要
 
无编辑摘要
 
第1行: 第1行:
/* 这里的任何JavaScript将为所有用户在每次页面加载时加载。 */
function addCssFile(cssUrl) {
    var link = document.createElement("link");
    link.rel = "stylesheet";
    link.href = cssUrl;
    document.head.appendChild(link);
}


function addJsFile(jsUrl) {
    var script = document.createElement("script");
    script.src = jsUrl;
    document.head.appendChild(script);
}
const pageScripts = {
    '首页': 'MediaWiki:Mainpage.js'
};
const currentPageName = mw.config.get('wgPageName');
const scriptToImport = pageScripts[currentPageName];
if (scriptToImport) {
    importScript(scriptToImport);
}

2023年9月27日 (三) 19:24的版本

/* 这里的任何JavaScript将为所有用户在每次页面加载时加载。 */
function addCssFile(cssUrl) {
    var link = document.createElement("link");
    link.rel = "stylesheet";
    link.href = cssUrl;
    document.head.appendChild(link);
}

function addJsFile(jsUrl) {
    var script = document.createElement("script");
    script.src = jsUrl;
    document.head.appendChild(script);
}

const pageScripts = {
    '首页': 'MediaWiki:Mainpage.js'
};

const currentPageName = mw.config.get('wgPageName');
const scriptToImport = pageScripts[currentPageName];

if (scriptToImport) {
    importScript(scriptToImport);
}

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2023年9月27日 (三) 00:042023年9月27日 (三) 00:04版本的缩略图3,000 × 2,000(743 KB)Kuina留言 | 贡献

以下页面使用本文件: