Editing Module:Docbunto
From The Petit Planet Wiki
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| 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 INTERWIKI = 'w:c:dev:' | |||
local NEEDS_NEWLINE = '^[{|!};:#*=]' -- tables, dl, ul, ol, headings | local NEEDS_NEWLINE = '^[{|!};:#*=]' -- tables, dl, ul, ol, headings | ||
| Line 75: | Line 78: | ||
-- Module dependencies. | -- Module dependencies. | ||
local title = mw.title.getCurrentTitle() | local title = mw.title.getCurrentTitle() | ||
local i18n = require(' | local i18n = require('Dev:I18n').loadMessages('Module:Docbunto/i18n') | ||
local references = mw.loadData(' | local references = mw.loadData('Dev:Docbunto/references') | ||
local lexer = require(' | local lexer = require('Dev:Lexer') | ||
local unindent = require(' | local unindent = require('Dev:Unindent') | ||
local yesno = require(' | local yesno = require('Dev:Yesno') | ||
-- Module variables. | -- Module variables. | ||
| Line 189: | Line 192: | ||
if references.items[item] then | if references.items[item] then | ||
item = references.items[item] | item = INTERWIKI .. 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 581: | Line 584: | ||
if not options.noluaref and item.name == '...' then | if not options.noluaref and item.name == '...' then | ||
item.name = '[[' .. 'Lua reference manual#varargs|...]]' | item.name = '[[' .. INTERWIKI .. 'Lua reference manual#varargs|...]]' | ||
end | end | ||
| Line 604: | Line 607: | ||
if data then | if data then | ||
if not options.noluaref then | if not options.noluaref then | ||
types[i] = '[[' .. data.link .. '|' .. name .. ']]' | types[i] = '[[' .. INTERWIKI .. data.link .. '|' .. name .. ']]' | ||
end | end | ||
else | else | ||