Jump to content
Main menu
Main menu
move to sidebar
hide
Nabegashon
Página prinsipal
Portal di komunidat
Kambionan resien
Kualke página
Yudansa
Páginanan spesial
Buska
Buska
Appearance
Duna
Krea kuenta
Registrá
Hèrmèntnan personal
Duna
Krea kuenta
Registrá
Pages for logged out editors
learn more
Kontribushonnan
Diskushon
Pa redaktá
Module:Check for clobbered parameters
Add languages
Module
Diskushon
English
Lesa
Editá fuente
Bista di e historia
Hèrmènt
Tools
move to sidebar
hide
Actions
Lesa
Editá fuente
Bista di e historia
General
Kiko ta link aki
E kambio relacionnan ku e
Subi fail
Informashon di e página
Get shortened URL
Download QR code
Appearance
move to sidebar
hide
Bo no a
outentiká bo mes
. Bo por kambia página libremente, pero tene kuenta ku lo nota bo
IP adrès
den e
historia
di kambionan hasí na e página aki.
Anti-spam check. Do
not
fill this in!
local p = {} local function trim(s) return s:match('^%s*(.-)%s*$') end local function isnotempty(s) return s and s:match('%S') end function p.check(frame) local args = frame.args local pargs = frame:getParent().args local checknested = isnotempty(args['nested']) local delimiter = isnotempty(args['delimiter']) and args['delimiter'] or ';' local argpairs = {} for k, v in pairs(args) do if type(k) == 'number' then local plist = mw.text.split(v, delimiter) local pfound = {} local count = 0 for ii, vv in ipairs(plist) do vv = trim(vv) if checknested and pargs[vv] or isnotempty(pargs[vv]) then count = count + 1 table.insert(pfound, vv) end end if count > 1 then table.insert(argpairs, pfound) end end end local warnmsg = {} local res = '' local cat = '' if args['cat'] and mw.ustring.match(args['cat'],'^[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:') then cat = args['cat'] end local template = args['template'] and ' in ' .. args['template'] or '' if #argpairs > 0 then for i, v in ipairs( argpairs ) do table.insert( warnmsg, mw.ustring.format( 'Using more than one of the following parameters%s: <code>%s</code>.', template, table.concat(v, '</code>, <code>') ) ) if cat ~= '' then res = res .. '[[' .. cat .. '|' .. (v[1] == '' and ' ' or '') .. v[1] .. ']]' end end end if #warnmsg > 0 then res = require('Module:If preview')._warning({ table.concat(warnmsg, '<br>') }) .. res end return res end return p
Resúmen:
Si bo warda e kambionan, bo ta bai di akuerdo ku
Terms of Use
, i bo ta aseptá, sin posibilidat di kambia esaki, pa publiká bo kontribushon segun
CC BY-SA 4.0 License
i
GFDL
. Bo ta bai di akuerdo ku un hyperlink òf URL ta sufisiente atribushon segun e lisensia Creative Commons.
Kanselá
Yudansa ku editamentu
(ta habri den un bentana nobo)
Preview page with this template
Wikidata entities used in this page
Module:Check for clobbered parameters
: Sitelink, Description: en
Malchi uzá na e página akí:
Module:Check for clobbered parameters/doc
(
editá
)
Buska
Buska
Pa redaktá
Module:Check for clobbered parameters
Add languages
Añadí un tópiko