وحدة:Other people
المظهر
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
-- Define title and target page
local title = args[1] or mw.title.getCurrentTitle().text
local targetPage = args[2] or title .. " (توضيح)"
-- Create the custom text with a leading non-breaking space and italic formatting
local otherText = string.format("''لشخصية أخرى تحمل اسم'' [[%s|%s]]، ''طالع'' [[%s]].", title, title, targetPage)
return otherText
end
return p