跳至內容

「模組:Asbox」:修訂間差異

移除 54 位元組 、​ 2024年7月15日 (星期一)
無編輯摘要
(建立內容為「--[[ This module was created by User:CodeHydro (Alexander Zhikun He). User:Jackmcbarn and User:Mr._Stradivarius provided a great deal of assistance in writting p.main() p.main() draw heavily from the following version of Template:Asbox of the English Wikipedia, authored primarily by User:Rich_Farmbrough https://en.wikipedia.org/w/index.php?title=Template:Asbox&oldid=619510287 p.templatepage() is derived from the following revision of Template:Asbox/templat…」的新頁面)
 
無編輯摘要
第119行: 第119行:
--One or more of the stub categories defined in this template do not seem to exist!
--One or more of the stub categories defined in this template do not seem to exist!
--Please double-check the parameters {{para|category}}, {{para|category1}} and {{para|category2}}.
--Please double-check the parameters {{para|category}}, {{para|category1}} and {{para|category2}}.
'设定的这些小作品类别不存在:' .. mw.text.listToText(stubCats.missing),
'設定的這些小作品類别不存在:' .. mw.text.listToText(stubCats.missing),
{k = 'N', t = page.text}
{k = 'N', t = page.text}
}
}
第126行: 第126行:
--Shows population of categories found by catStub(). Outputs demo values if none
--Shows population of categories found by catStub(). Outputs demo values if none
local function population()
local function population()
local wikitext, base = {}, '* [[:Category:%s]](页面数:%s)\n'
local wikitext, base = {}, '* [[:Category:%s]](頁面數:%s)\n'
if not args.category and stubCats[1] ~= false then
if not args.category and stubCats[1] ~= false then
table.insert(stubCats, 1, false)
table.insert(stubCats, 1, false)
第190行: 第190行:
:_(frame:expandTemplate{title = tStubDoc.text})
:_(frame:expandTemplate{title = tStubDoc.text})
:_'\n\n'(),
:_'\n\n'(),
['link box'] = Buffer'本-{zh-cn:文档; zh-tw:文件;}-由[[Module:Asbox]]自动生成。'
['link box'] = Buffer'本文件由[[Module:Asbox]]自动生成。'
:_in'通用信息嵌入自[[Template:Stub documentation]]。'
:_in'通用信息嵌入自[[Template:Stub documentation]]。'
:_(mw.html.create'span'
:_(mw.html.create'span'
:cssText'font-size:smaller;font-style:normal;line-height:130%'
:cssText'font-size:smaller;font-style:normal;line-height:130%'
:node(('([%s 编辑] | [%s 历史])'):format(
:node(('([%s 編輯] | [%s 歷史])'):format(
tStubDoc:fullUrl('action=edit', 'relative'),
tStubDoc:fullUrl('action=edit', 'relative'),
tStubDoc:fullUrl('action=history', 'relative')
tStubDoc:fullUrl('action=history', 'relative')
第230行: 第230行:
:wikitext(
:wikitext(
Buffer'这是一篇':_(args.qualifier):_(args.qualifier and '的'):_(args.subject)'',--space
Buffer'这是一篇':_(args.qualifier):_(args.qualifier and '的'):_(args.subject)'',--space
'[[Wikipedia:小作品|小作品]]。您可以-{zh-hant:透過; zh-hans:通过;}-[',
'[[Wikipedia:小作品|小作品]]。您可以透過[',
page:fullUrl('action=edit', 'relative'),
page:fullUrl('action=edit', 'relative'),
' 编辑或修订]扩充其内容。'
' 編輯或修訂]擴充其内容。'
)
)
:done()
:done()