Module:UserLinks: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
update links to XTools, add link to autoedits tool; rm misleading comment; convert spaces to tabs
m (Changed protection level of Module:UserLinks: Allow template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
MusikAnimal (talk | contribs) (update links to XTools, add link to autoedits tool; rm misleading comment; convert spaces to tabs) |
||
Line 48:
-- data snippets. New link functions should be added below the existing
-- functions.
----------------------------------------------------------------------------
Line 87 ⟶ 84:
return makeUrlLink(
{
host = '
path = '/
query = {
project = snippets.toolLang .. '.' .. snippets.projectLong .. '.org'
}
Line 115 ⟶ 112:
'Log/' .. snippets.username,
message('display-logs')
)
end
function linkFunctions.ae(snippets)
-- Automated edits (and non-automated contributions).
return makeUrlLink(
{
host = 'xtools.wmflabs.org',
path = '/autoedits/',
query = {
project = snippets.toolLang .. '.' .. snippets.projectLong .. '.org'
}
},
message('display-autoedits')
)
end
Line 183 ⟶ 195:
return makeUrlLink(
{
host = '
path = '
query = {
▲ wiki = snippets.projectLong
}
},
Line 615 ⟶ 626:
return snippets
end
function p.validateProjectCode(s)
Line 623 ⟶ 634:
-- returns nil for both.
interwikiTable = interwikiTable or mw.loadData('Module:InterwikiTable')
end
end
Line 813 ⟶ 824:
ret[#ret + 1] = '|}'
return table.concat(ret, '\n')
end
return p
|