Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 

















Module:Other people








فارسی
ि
Ilokano
Bahasa Melayu



Simple English
سنڌي
Српски / srpski
ி


 

Edit links
 









Module
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 

















Permanently protected module

From Wikipedia, the free encyclopedia
 


local mOtheruses = require('Module:Other uses')
local mArguments = require('Module:Arguments')
local compressArray = require('Module:TableTools').compressSparseArray
local p = {}

function p.otherPeople (frame)
 --Get arguments
 local origArgs = mArguments.getArgs(frame)
 local named = origArgs.named
 local args = compressArray(origArgs)
 if not origArgs[1] then table.insert(args, 1, nil) end
 -- Assemble arguments and return
 local title = args[1] or mw.title.getCurrentTitle().text
 local options = {
  title = title,
  defaultPage = args[2],
  otherText = (args[2] and not args[1] and 'people with the same name') or
   string.format('people %s %s', named or 'named', title)
 }
 -- Don't pass args[1] through as a target page. Manual downshift because Lua
 -- expectation of sequences means table.remove() doesn't necessarily work
 for i = 2, math.max(table.maxn(args), 2) do
  args[i - 1] = args[i]
  args[i] = nil
 end
 return mOtheruses._otheruses(args, options)
end

return p

Retrieved from "https://en.wikipedia.org/w/index.php?title=Module:Other_people&oldid=804708742"

Category: 
Hatnote modules
Hidden category: 
Wikipedia template-protected modules
 



This page was last edited on 10 October 2017, at 17:19 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki