Module:Docbunto: Difference between revisions
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 54: | Line 54: | ||
local TAGGROUP_TAG_CLASS = 'docbunto-taggroup-tag' | local TAGGROUP_TAG_CLASS = 'docbunto-taggroup-tag' | ||
local TAG_KEYS_CLASS = 'docbunto-tag-keys' | local TAG_KEYS_CLASS = 'docbunto-tag-keys' | ||
local NEEDS_NEWLINE = '^[{|!};:#*=]' -- tables, dl, ul, ol, headings | local NEEDS_NEWLINE = '^[{|!};:#*=]' -- tables, dl, ul, ol, headings | ||
| Line 192: | Line 189: | ||
if references.items[item] then | if references.items[item] then | ||
item = | item = references.items[item] | ||
elseif item:find('#', 1, true) then | elseif item:find('#', 1, true) then | ||
item = mw.site.namespaces[828].name .. ':' .. item | item = mw.site.namespaces[828].name .. ':' .. item | ||
| Line 584: | Line 581: | ||
if not options.noluaref and item.name == '...' then | if not options.noluaref and item.name == '...' then | ||
item.name = '[[' | item.name = '[[' .. 'Lua reference manual#varargs|...]]' | ||
end | end | ||
| Line 607: | Line 604: | ||
if data then | if data then | ||
if not options.noluaref then | if not options.noluaref then | ||
types[i] = '[[' | types[i] = '[[' .. data.link .. '|' .. name .. ']]' | ||
end | end | ||
else | else | ||