中医百科的用户贡献

此用户有269次编辑。账号创建于2024年8月30日 (星期五)。
搜索贡献展开折叠
⧼contribs-top⧽
⧼contribs-date⧽
最新 | 最旧) 查看(较新50条 | )(20 | 50 | 100 | 250 | 500

2024年10月1日 (星期二)

2024年9月22日 (星期日)

2024年9月21日 (星期六)

2024年9月19日 (星期四)

  • 21:182024年9月19日 (四) 21:18 差异 历史 0 File:Information Mark (Blue).svg无编辑摘要 当前
  • 20:542024年9月19日 (四) 20:54 差异 历史 +3,269 Module:Page name创建页面,内容为“local p = {} local getArgs = require 'Module:Arguments'.getArgs local yesno = require 'Module:yesno' function p.convert(variant, simplified, traditional, taiwan, transfer) -- 0允许繁简转换 -- -1强制简体 -- 1强制繁体 -- 2强制台湾繁体 if not traditional then return simplified elseif variant == 2 then return taiwan or traditional elseif variant == 1 then return traditional elseif variant == -1 then return simplified else -- if…” 当前
  • 20:542024年9月19日 (四) 20:54 差异 历史 +853 Module:Yesno创建页面,内容为“-- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default) -- If your wiki uses non-ascii characters for any of "yes", "no", etc., you -- should replace "val:lower()" with "mw.ustring.lower(val)" in the -- following line. val = type(val) == 'string' and val:lower() or val if val == nil then return nil elseif val == true or val == 'yes' or val == 'y'…” 当前
  • 20:502024年9月19日 (四) 20:50 差异 历史 +1,108 Module:Fullurl创建页面,内容为“local p = {} local yesno = require('Module:Yesno') local getArgs = require "Module:Arguments".getArgs function p._fullurl(args) local args = mw.clone(args) local onlyurl = yesno(args.onlyurl) args.onlyurl = nil local title = args['title'] or args[1] or tostring(mw.title.getCurrentTitle()) if title == '' then -- 不能讓title變空值,否則url會返回nil title = tostring(mw.title.getCurrentTitle()) end local url, text if args[3] then url = to…” 当前
  • 20:492024年9月19日 (四) 20:49 差异 历史 +317 Module:No globals创建页面,内容为“local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('尝试读取空全局变量:' .. tostring(k), 2) end return nil end function mt.__newindex(t, k, v) if k ~= 'arg' then error('尝试写入全局变量:' .. tostring(k), 2) end rawset(t, k, v) end setmetatable(_G, mt)” 当前
  • 20:482024年9月19日 (四) 20:48 差异 历史 +8,620 Module:Arguments创建页面,内容为“-- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) ==…” 当前
  • 20:472024年9月19日 (四) 20:47 差异 历史 +90 MediaWiki:Scribunto-doc-page-does-not-exist创建页面,内容为“{{#invoke:documentation|nonexistent|_content={{ {{#invoke:documentation|contentTitle}}}}}}” 当前
  • 20:392024年9月19日 (四) 20:39 差异 历史 +13,916 Module:Documentation创建页面,内容为“-- 本模块是从维基百科的相关模块简化的。 local p = {} local getArgs = require 'Module:Arguments'.getArgs require 'Module:No globals' function p._main(args, f) -- args是不含元表的表 -- f是框架,应该作为第二个参数传入 f = f or mw.getCurrentFrame() args = args or {} local content = args.content -- 关于标题对象的处理 local title=args.page and mw.title.new(args.page) or mw.title.getCurr…” 当前
  • 20:382024年9月19日 (四) 20:38 差异 历史 +107 Template:Documentation创建页面,内容为“{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> </noinclude>” 当前

2024年9月17日 (星期二)

最新 | 最旧) 查看(较新50条 | )(20 | 50 | 100 | 250 | 500