User contributions for Selfice

A user with 2,261 edits. Account created on 19 October 2024.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

31 October 2024

  • 23:0323:03, 31 October 2024 diff hist +476 N Template:Fullurl创建页面,内容为“<includeonly>{{#vardefine: $fullurl-url | {{fullurl:{{#replace:{{{1|{{FULLPAGENAME}}}}}| |_}} | {{#if: {{{2|}}} | {{#replace:{{{2}}}| |_}} | {{#if: {{{action|}}} | action={{{action}}} }} }} }} }}{{#if: {{{nolink|}}} | {{#tag: nowiki | {{#var: $fullurl-url }} }} | [{{#var: $fullurl-url }} {{#if: {{{text|{{{3|}}}}}} | {{{text|{{{3}}}}}} | {{#var: $fullurl-url }} }}] }}</includeonly><noinclude>{{documentation}} <!-- 请将分类/语言链接放在文档页面 --><…”
  • 23:0123:01, 31 October 2024 diff hist +206 N Template:Shortcut/styles.css创建页面,内容为“→‎[[Category:模板样式]]: .shortcut-box { background-color: var(--custom-table-background); border: 1px solid var(--custom-border-gray); max-width: 400px; min-width: 70px; padding: 0.3em 0.5em; }”
  • 22:5922:59, 31 October 2024 diff hist +689 N Template:Direct link/doc创建页面,内容为“{{documentation header}} <!-- 模板文档 --> {{lua|Direct link}} {{shortcut|escaped link}} 用于创建到Wiki页面的链接,而不出现在任何维护报告中(如Special:需要的页面Special:链入页面)。这对已存档的页面十分有用,因为它们经常有指向不存在页面的链接,而这些不存在的页面并不一定是需要的。 ; 参数 * {{p|1}}:页面标题 * {{p|2}}:可选,页面名称,默认为{{p|1…”
  • 22:5822:58, 31 October 2024 diff hist +153 N Template:Direct link创建页面,内容为“<includeonly>{{ #invoke: direct link | main }}</includeonly><noinclude>{{documentation}} <!-- 请将分类/语言链接放在文档页面 --></noinclude>”
  • 22:5422:54, 31 October 2024 diff hist +1,995 N Template:STConversion/doc创建页面,内容为“{{documentation header}} {{lua|STConversion}} {{msgbox |text=关于本模板更多详情,请见中文维基百科的繁简、地区词处理。 }} {{shortcut|Tr}} 该模板用于显式指定本模板所处页面中全部或部分内容的繁简转换规则。 '''注意:'''此模板只能在繁简转换表中无内容或在特殊情况下使用,请勿滥用此模板以…”
  • 22:5322:53, 31 October 2024 diff hist +149 N Template:STConversion创建页面,内容为“<includeonly>{{#invoke: STConversion | main }}</includeonly><noinclude> {{documentation}} <!-- 在文档页放置分类/语言链接 --> </noinclude>”
  • 22:5222:52, 31 October 2024 diff hist +264 N Module:STConversion/doc创建页面,内容为“{{documentation header}} <!-- 文档页面 --> 此模块用于为{{tl|STConversion}}提供功能,具体用法见模板文档。 <includeonly> <!-- 模块分类和跨语言链接 --> </includeonly> <noinclude> <!-- 文档分类和跨语言链接 --> </noinclude>”
  • 22:5122:51, 31 October 2024 diff hist +1,278 N Module:STConversion创建页面,内容为“local p = {} function p.call( args ) local fallbackString = '<span></span>' local strings = { mode = mw.text.trim( args.mode or '' ), [ 'zh-cn' ] = args[ 'zh-cn' ] or args[ 1 ] or fallbackString, [ 'zh-tw' ] = args[ 'zh-tw' ] or args[ 2 ] or fallbackString, [ 'zh-hk' ] = args[ 'zh-hk' ] or args[ 3 ] or fallbackString, } if not args.closehkinherit and strings[ 'zh-hk' ] == fallbackString then strings[ 'zh-hk' ] = strings[ 'zh-tw' ] end local st…”
  • 22:5122:51, 31 October 2024 diff hist +2,469 N Module:Autolink/doc创建页面,内容为“{{documentation header}} <!-- 模块文档 --> Autolink,即'''自动链接''',用于给模板的参数中的英文转换为对应的中文并显示出来,正如Module:Reverselink能将中文参数转换为英文并提供给模板以显示图片。 本模块主要用于: * 将精灵模板链接模板的参数转变为中文并显示对应缩略图和名称。 == 数据模块 == 本模块采…”
  • 22:4922:49, 31 October 2024 diff hist +13,990 N Module:Autolink创建页面,内容为“local p = {} local static = require( 'Module:Static' ) if not static.Autolink then static.Autolink = {} end local commonPrefix = 'Module:Autolink/' local commonFallback = 'Other' local function getDataSource( src ) if type( static.Autolink.globalDataSource ) ~= 'table' then static.Autolink.globalDataSource = {} end if not src or src == '' then return nil end if src:find( '#' ) then local splits = mw.text.split( src, '#' ) if not static.Autolink…”
  • 22:4922:49, 31 October 2024 diff hist +2,331 N Template:Message box/styles.css创建页面,内容为“→‎[[Category:模板样式]]: .msgbox { display: grid; grid-template-columns: 1fr; gap: 0.6em; align-items: center; max-width: 80%; margin: 0.5em auto; padding: 0.3em 0.6em; border-left: 8px solid var(--custom-border-blue); background-color: var(--custom-table-background); } .msgbox + .msgbox { margin-top: -0.5em; border-top: 1px solid #bbc2c6; } .msgbox.has-image { grid-template-columns: max-content 1fr; } .msgbox.msgbox-mini { gap: 0.3em; m…”
  • 22:4822:48, 31 October 2024 diff hist +2,346 N Template:Sprite/doc创建页面,内容为“{{documentation header}} <!-- Documentation here --> {{lua}} {{Uses TemplateStyles|Template:Sprite/doc.css}} 此模板从图纸图像中创建一个Sprite。通常用于在一个页面上显示许多小图片来减少HTTP连接的总数量。 == 示例 == <pre> {{Sprite |pos=1 |align=text-top |image=BlockCSS.png |name=Block |link=Grass Block |text=草方块 |size=16 |sheetsize=256 }} </pre> 生成:{{Sprite |pos=1 |align=text-top |image=BlockCSS.png |name=Blo…”
  • 22:4722:47, 31 October 2024 diff hist +145 N Template:Sprite创建页面,内容为“<includeonly>{{#invoke:sprite|base}}</includeonly><noinclude> {{documentation}} <!-- 请将分类/语言链接放在文档页面 --> </noinclude>”
  • 22:4722:47, 31 October 2024 diff hist +1,194 N Template:Sprite/doc.css创建页面,内容为“→‎[[Category:模板样式]]: #spritedoc { clear: both; } .spritedoc-section { margin-top: 0.3em; } .spritedoc-section > h3 { padding-top: 0; margin-top: 0; } #spritedoc .spritedoc-boxes { display: flex; flex-wrap: wrap; padding: 0 0 1px 1px; margin: 0.5em 0; } .spritedoc-box { position: relative; display: flex; align-items: center; padding: 0.5em; background: #f8f9fa; border: 1px solid #a2a9b1; margin: 0 0 -1…”
  • 22:4322:43, 31 October 2024 diff hist +678 N Module:Sprite/doc创建页面,内容为“{{documentation header}} <!-- 文档 --> 此模块用于实现{{tl|sprite}}。此模块应该用于在模板页面引用,而不是用模板代码。 父参数已经和直接传递参数合并(后者覆盖前者),并且所有的参数在处理时已经标准化并去除空格,空的参数值将会被设置为<code>nil</code>。 == 依赖项 == * mw:Extension:TemplateStyles - {{dd|Sprite/doc.css}} * {{dd|Module:ProcessArgs}} * {{dd|Module:Autolink…”
  • 22:4322:43, 31 October 2024 diff hist +9,115 N Module:Sprite创建页面,内容为“local p = {} function p.base( f ) local args = f if f == mw.getCurrentFrame() then args = require( 'Module:ProcessArgs' ).merge( true ) else f = mw.getCurrentFrame() end local data = args.data and mw.loadData( 'Module:' .. args.data ) or {} local settings = data.settings local Autolink = require( 'Module:Autolink' ) -- Default settings local default = { scale = 1, sheetsize = 256, size = 16, pos = 1, align = 'text-top' } local d…”
  • 22:4222:42, 31 October 2024 diff hist +279 N Module:Direct link/docNo edit summary
  • 22:4122:41, 31 October 2024 diff hist +591 N Module:Direct link创建页面,内容为“local p = {} function p.call( inputArgs ) if not inputArgs or type( inputArgs ) ~= 'table' then return nil end local page = inputArgs[ 1 ] or '' local text = inputArgs[ 2 ] or '' if page == '' then return '' end if text == '' then text = page end return '<span class="plainlinks">[' .. mw.title.new( page ):fullUrl() .. ' ' .. text .. ']</span>' end function p.main( f ) local args = f local frame = mw.getCurrentFrame() if f == frame then…”
  • 22:4122:41, 31 October 2024 diff hist +444 N Module:Message box/doc创建页面,内容为“{{documentation header}} <!-- 文档页面 --> 此模块用于实现{{t|Message box}}。使用方法见模板文档。 == 依赖项 == * {{dd|Module:Direct link}} * {{dd|Module:ProcessArgs}} * {{dd|Module:Sprite}} * mw:extension:TemplateStyles:{{dd|Message box/styles.css}} <includeonly> <!-- 模块分类和跨语言链接 --> </includeonly> <noinclude> <!-- 文档分类和跨语言链接 --> </noinclude>”
  • 22:4122:41, 31 October 2024 diff hist +3,879 N Module:Message box创建页面,内容为“local p = {} function commentSprite( pos, link ) if not pos or mw.text.trim( pos ) == '' then return '' end return require( 'Module:Sprite' ).base{ name = 'Comment', pos = pos, image = 'CommentCSS.png', sheetsize = 48, stylesheet = 1, link = link } end function p.main( f ) local args = f local frame = mw.getCurrentFrame() if f == frame then args = require( 'Module:ProcessArgs' ).merge( true ) end local rawTitle = frame:preprocess( frame:getParent…”
  • 22:3822:38, 31 October 2024 diff hist +34 N Template:Msgbox重定向页面至Template:Message box
  • 22:3722:37, 31 October 2024 diff hist +820 N Template:Uses TemplateStyles创建页面,内容为“{{Msgbox | image = Farm-Fresh css add.svg | text = 本模板使用了模板样式{{#invoke:Array|main|d=、|format='''<includeonly>[[</includeonly>%s<includeonly>]]</includeonly>'''|{{ns:Template}}:{{BASEPAGENAME}}/styles.css}},{{#if:{{{2|}}}|这些|此}}样式表由CSS编写。<br>更多详情,请参阅Help:模板样式Extension:TemplateStyles。 }}<includeonly><!--…”
  • 22:3622:36, 31 October 2024 diff hist +105 N Template:Para/styles.css创建页面,内容为“→‎[[Category:模板样式]]: code.para.para-plain { border: none; background-color: inherit; }”
  • 22:3622:36, 31 October 2024 diff hist +146 N Module:Array/doc创建页面,内容为“{{documentation header}} <!-- 文档页面 --> 此模块可将一个Lua table或一个字符串按给定的分隔符输出语言自然的列表。”
  • 22:3522:35, 31 October 2024 diff hist +1,967 N Module:Array创建页面,内容为“local p = {} local function stringToArray(str, separator, mapper) local arr = {} local i = 1 for v in mw.text.gsplit(str, separator) do arr[i] = mapper(v) i = i + 1 end return arr end local function tableToArray(tbl, offset, mapper) local arr = {} for k, v in pairs(tbl) do if type(k) == 'number' and k > offset then arr[k - offset] = mapper(v) end end return arr end function p.main() local args = require('Module:ProcessArgs').merge() ret…”
  • 22:3522:35, 31 October 2024 diff hist +150 N Template:TSLoader创建页面,内容为“<includeonly>{{ #invoke: TSLoader | main }}</includeonly><noinclude>{{documentation}} <!-- 请将分类/语言链接放在文档页面 --></noinclude>”
  • 22:3422:34, 31 October 2024 diff hist +31 N Template:Tsl重定向页面至Template:TSLoader
  • 22:3222:32, 31 October 2024 diff hist +2,263 N Template:Para/docNo edit summary
  • 22:3122:31, 31 October 2024 diff hist +313 N Template:Para创建页面,内容为“<includeonly>{{tsl|Template:Para/styles.css}}<code class="para {{#if: {{{plain|}}} | para-plain }} nowrap" {{#if: {{{style|}}} | style="{{{style}}}" }}>|{{#if: {{{1|}}} | {{{1}}}= }}{{{2|}}}</code></includeonly><noinclude>{{documentation}} <!-- 请将分类/语言链接放在文档页面 --></noinclude>”
  • 22:3122:31, 31 October 2024 diff hist +27 N Template:P重定向页面至Template:Para
  • 22:3022:30, 31 October 2024 diff hist +935 N Template:Lua创建页面,内容为“{{Message box | image = Lua logo.svg | text = 此模板使用了'''<includeonly>[[</includeonly>{{ns:828}}:{{ucfirst: {{PAGENAME:{{{1|{{BASEPAGENAME}}}}}}} }}<includeonly>]]</includeonly>''',{{ #if: {{{data|}}} | 以及数据模块[[{{ns:828}}:{{ ucfirst: {{PAGENAME:{{{data}}}}} }}]]{{ #if: {{{data2|}}} | 和[[{{ns:828}}:{{ ucfirst: {{PAGENAME:{{{data2}}}}} }}]] }} | 此脚本使用Lua编写}}。<br>{{ #if: {{{data|}}} | 这些脚本均使用wz…”
  • 22:2922:29, 31 October 2024 diff hist +2,425 N Template:Documentation/doc创建页面,内容为“{{documentation header}} <!-- Documentation here --> {{Lua}} 对于模板,在末尾插入<code><nowiki>{{subst:doc}}</nowiki></code>,然后保存页面,这将放置<code><nowiki>{{documentation}}</nowiki></code>和一条建议编辑者在何处放置类别和interwiki链接的注释。对于其他类型的页面,文档模板应该存在。 单击页面顶部的“创建”将打开文档页面,并带有某些Template:Documentation/preload|预格…”
  • 22:2622:26, 31 October 2024 diff hist +1,287 N Module:Documentation/styles.css创建页面,内容为“.documentation { background-color: #eaf4f9; border: 1px solid #bbb; padding: 0.8em 1em 0.7em; margin-top: 1em; clear: both; } body.wgl-theme-dark .documentation { background-color: #393e3f; border-color: hsl(0, 0%, 36%); } .documentation-header-top, .documentation-header-bottom { padding: 0.8em 1em 0.7em; background-color: #eaf4f9; } body.wgl-theme-dark .documentation-header-top, body.wgl-theme-dark .documentation-header-bottom { background-color: #3…”
  • 22:2522:25, 31 October 2024 diff hist +602 N Module:TSLoader/doc创建页面,内容为“{{documentation header}} <!-- 文档页面 --> 此模块用于实现{{t|TSLoader}}。 如果要从模块调用,请使用<code>p.call( name )</code>,<code>name</code>为要引用的模板样式页面名称,如果在<code>Template:</code>命名空间下,可以省略<code>Template:</code>。 == 依赖项 == * {{dd|Module:Static}} * TemplateStyles扩展 <includeonly> <!-- 模块分类和跨语言链接 --> Category:元…”
  • 22:2422:24, 31 October 2024 diff hist +968 N Module:TSLoader创建页面,内容为“local p = {} local static = require( 'Module:Static' ) if not static.TSLoader then static.TSLoader = {} end function p.call( name ) if not name then return nil end if not static.TSLoader.loadedTS then static.TSLoader.loadedTS = {} end local pagename = mw.title.getCurrentTitle() if not static.TSLoader.loadedTS[ pagename ] then static.TSLoader.loadedTS[ pagename ] = {} end if not name:find( '^%w*:' ) then name = 'Template:' .. name:sub( 1, 1 ):…”
  • 22:2422:24, 31 October 2024 diff hist +155 N Template:DocumentationNo edit summary
  • 22:2022:20, 31 October 2024 diff hist +36 N Template:Tl重定向页面至Template:Template link
  • 22:1122:11, 31 October 2024 diff hist +1,735 N Module:Static/doc创建页面,内容为“{{documentation header}} <!-- 文档页面 --> 此模块返回一个表,此表存储的数据可在多次{{tcd|#invoke:}}调用中读取。 == 示例 == <syntaxhighlight lang='lua'> local p = {} function p.main() local static = require( 'Module:Static' ) static.x = ( static.x or 0 ) + 1 return static.x end return p </syntaxhighlight> 若<code>Module:foo</code>使用了上述代码,然后使用<code><nowiki>{{ #invoke: foo | main }} {{ #invok…”
  • 22:1122:11, 31 October 2024 diff hist +157 N Module:Static创建页面,内容为“-- Source: https://runescape.wiki/w/Module:Static local mwHtml = getmetatable( mw.html.create() ) mwHtml._static = mwHtml._static or {} return mwHtml._static”
  • 22:0922:09, 31 October 2024 diff hist +2,821 N Module:ProcessArgs/doc创建页面,内容为“{{documentation header}} <!-- 文档页面 --> 该模块将参数添加到一个表中以便模块使用。 == 用法 == 该模块通常只能在其他模块中调用,否则会出错。 === norm函数 === <syntaxhighlight lang="lua"> require('Module:ProcessArgs').norm(origArgs) </syntaxhighlight> * {{cd|origArgs}}:可选(表),用于指定{{cd|args}}表,默认值为父框架<ref group="注" name="frame">通常为{{tcd|#invoke:}}所在页面的框…”
  • 22:0922:09, 31 October 2024 diff hist +789 N Module:ProcessArgs创建页面,内容为“local p = {} function p.norm( origArgs ) if type( origArgs ) ~= 'table' then origArgs = mw.getCurrentFrame():getParent().args end local args = {} for k, v in pairs( origArgs ) do v = mw.text.trim( tostring( v ) ) if v ~= '' then args[k] = v end end return args end function p.merge( origArgs, parentArgs, norm ) if type( origArgs ) ~= 'table' then norm = origArgs local f = mw.getCurrentFrame() origArgs = f.args parentArgs = f:getPar…”
  • 22:0022:00, 31 October 2024 diff hist +348 N Module:Lan/doc创建页面,内容为“{{documentation header}} <!-- 文档页面 --> 此模块源于中文维基百科的同名模块,用于实现{{tl|Lan}},主要用于无法通过常规字词转换语法正常转换的位置。 此模块并非意在取代常规字词转换。在能够使用常规语法和{{t|STConversion}}模板时请不要滥用此模块。”
  • 21:5921:59, 31 October 2024 diff hist +936 N Module:Lan创建页面,内容为“local p = {} local merge p.fallbackList = { [ 'zh' ] = { 'zh', 'zh-hans', 'zh-hant', 'zh-cn', 'zh-tw', 'zh-hk' }, [ 'zh-hans' ] = { 'zh-hans', 'zh-cn', 'zh' }, [ 'zh-hant' ] = { 'zh-hant', 'zh-tw', 'zh-hk', 'zh' }, [ 'zh-cn' ] = { 'zh-cn', 'zh-hans', 'zh' }, [ 'zh-tw' ] = { 'zh-tw', 'zh-hant', 'zh-hk', 'zh' }, [ 'zh-hk' ] = { 'zh-hk', 'zh-hant', 'zh-tw', 'zh' } } function p.call( args ) local userLanguage = mw.getCurrentFrame():callParserFunction( 'in…”
  • 21:5521:55, 31 October 2024 diff hist +536 N Template:Dependency declaration创建页面,内容为“<includeonly>{{#if:{{{1|}}}|{{#if:{{{hidden|}}}||{{#ifeq:{{NAMESPACENUMBER:{{transclude|{{{1}}}}}}}|10|{{t|{{{1}}}}}|[[{{{1}}}]]}}{{#if:{{{2|}}}| – {{{2}}}}}}}{{#if:{{{nocat|}}}||{{#ifeq: {{SUBPAGENAME}}|doc||[[Category:{{#switch:{{NAMESPACENUMBER:{{{1}}}}}|828=模块|模板}}依赖声明/{{PAGENAME:{{{1}}}}}]]}}}}|{{error|Template:Dependency declaration错误:必须指定依赖项名称(参数1)}}}}</includeonly><noinclude>{{documenta…”
  • 21:5421:54, 31 October 2024 diff hist +45 N Template:Dd重定向页面至Template:Dependency declaration
  • 21:5321:53, 31 October 2024 diff hist +468 N Module:Documentation/doc创建页面,内容为“{{documentation header}} <!-- Documentation here --> 该模块用于实现{{tl|Documentation}}。 == 依赖项 == * {{dd|Module:Lan}} * {{dd|Module:ProcessArgs}} * {{dd|Module:Static}} * mw:Extension:TemplateStyles:{{dd|Module:Documentation/styles.css}} <includeonly> <!-- Template categories/interwiki here --> en:Module:Documentation </includeonly> <noinclude> <!-- Documentation categories/interwiki here --> en:Module:Documentation/doc </noinclude>”
  • 21:5021:50, 31 October 2024 diff hist +14,705 N Module:Documentation创建页面,内容为“local p = {} -- Load modules (language wikis exclusive) local lan = require( 'Module:Lan' ).call -- Customizable strings local i18n = { -- 默认设置,有必要时修改 defaultDocPage = 'doc', -- 文档页后缀 defaultSandboxPage = 'sandbox', -- 沙盒页后缀 defaultTestCasePage = 'testcases', -- 测试用例页后缀 defaultPreload = 'Template:Documentation/preload', -- 存储文档页标准内容的页面 defaultStyles = 'Module:Documentation/s…”

26 October 2024

25 October 2024

20 October 2024

(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)