Module:Section link: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Lingam
"-- This module implements {{section link}}. require('strict'); local checkType = require('libraryUtil').checkType local p = {} local function makeSectionLink(page, section, display) display = display or section page = page or '' -- MediaWiki doesn't allow these in `page`, so only need to do for `section` if type(section) == 'string' then section = string...."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது
imported>Legoktm
சி Replacing Module:No globals with require('strict') (more info) #noglobals
 
வரிசை 9:
display = display or section
page = page or ''
-- MediaWiki doesn't allow these in `page`, so only need to do for `section`
if type(section) == 'string' then
section = string.gsub(section, "{", "{")
section = string.gsub(section, "}", "}")
end
return string.format('[[%s#%s|%s]]', page, section, display)
end
வரி 114 ⟶ 109:
 
for k, v in pairs(args) do -- replace underscores in the positional parameter values
if 'number' == type(k) and not yesno (args['keep-underscores']) then -- unless |keep-underscores=yes
ifargs[k] not= yesnov:gsub (args['keep-underscores_']), then' ') -- unlessdo |keep-underscores=yesthe replacement
args[k] = mw.uri.decode (v, 'WIKI'); -- percent-decode; replace underscores with space characters
else
args[k] = mw.uri.decode (v, 'PATH'); -- percent-decode; retain underscores
end
end
end
"https://tamilar.wiki/w/Module:Section_link" இலிருந்து மீள்விக்கப்பட்டது